@markuplint/ml-core 3.0.0-dev.25 → 3.0.0-dev.300
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/configs.browser.js +1 -5
- package/lib/configs.js +33 -31
- package/lib/convert-ruleset.d.ts +1 -1
- package/lib/convert-ruleset.js +3 -8
- package/lib/debug.js +9 -14
- package/lib/index.d.ts +13 -12
- package/lib/index.js +13 -29
- package/lib/ml-core.d.ts +7 -7
- package/lib/ml-core.js +60 -66
- package/lib/ml-dom/helper/accname.d.ts +1 -1
- package/lib/ml-dom/helper/accname.js +23 -19
- package/lib/ml-dom/helper/create-node.d.ts +4 -4
- package/lib/ml-dom/helper/create-node.js +13 -15
- package/lib/ml-dom/helper/debug.d.ts +1 -1
- package/lib/ml-dom/helper/debug.js +8 -8
- package/lib/ml-dom/helper/getIndent.d.ts +2 -2
- package/lib/ml-dom/helper/getIndent.js +30 -28
- package/lib/ml-dom/helper/walkers.d.ts +6 -6
- package/lib/ml-dom/helper/walkers.js +23 -22
- package/lib/ml-dom/index.d.ts +9 -9
- package/lib/ml-dom/index.js +1 -5
- package/lib/ml-dom/manipulations/child-node-methods.d.ts +9 -9
- package/lib/ml-dom/manipulations/child-node-methods.js +31 -25
- package/lib/ml-dom/manipulations/get-children.d.ts +4 -4
- package/lib/ml-dom/manipulations/get-children.js +5 -7
- package/lib/ml-dom/node/attr.d.ts +7 -7
- package/lib/ml-dom/node/attr.js +33 -34
- package/lib/ml-dom/node/block.d.ts +6 -6
- package/lib/ml-dom/node/block.js +21 -15
- package/lib/ml-dom/node/character-data.d.ts +4 -4
- package/lib/ml-dom/node/character-data.js +20 -19
- package/lib/ml-dom/node/child-node.d.ts +9 -9
- package/lib/ml-dom/node/child-node.js +3 -5
- package/lib/ml-dom/node/comment.d.ts +4 -4
- package/lib/ml-dom/node/comment.js +2 -6
- package/lib/ml-dom/node/document-fragment.d.ts +4 -4
- package/lib/ml-dom/node/document-fragment.js +4 -9
- package/lib/ml-dom/node/document-type.d.ts +6 -6
- package/lib/ml-dom/node/document-type.js +21 -15
- package/lib/ml-dom/node/document.d.ts +32 -29
- package/lib/ml-dom/node/document.js +329 -246
- package/lib/ml-dom/node/dom-token-list.d.ts +3 -3
- package/lib/ml-dom/node/dom-token-list.js +29 -33
- package/lib/ml-dom/node/element.d.ts +65 -16
- package/lib/ml-dom/node/element.js +396 -306
- package/lib/ml-dom/node/named-node-map.d.ts +4 -4
- package/lib/ml-dom/node/named-node-map.js +18 -18
- package/lib/ml-dom/node/node-list.d.ts +6 -6
- package/lib/ml-dom/node/node-list.js +25 -13
- package/lib/ml-dom/node/node-store.d.ts +5 -5
- package/lib/ml-dom/node/node-store.js +25 -10
- package/lib/ml-dom/node/node.d.ts +12 -12
- package/lib/ml-dom/node/node.js +101 -76
- package/lib/ml-dom/node/parent-node.d.ts +6 -6
- package/lib/ml-dom/node/parent-node.js +31 -29
- package/lib/ml-dom/node/rule-mapper.d.ts +5 -5
- package/lib/ml-dom/node/rule-mapper.js +20 -17
- package/lib/ml-dom/node/text.d.ts +4 -4
- package/lib/ml-dom/node/text.js +6 -11
- package/lib/ml-dom/node/types.d.ts +30 -16
- package/lib/ml-dom/node/types.js +1 -2
- package/lib/ml-dom/node/unexpected-call-error.js +1 -4
- package/lib/ml-dom/token/token.js +19 -23
- package/lib/ml-rule/create-rule.d.ts +3 -3
- package/lib/ml-rule/create-rule.js +1 -5
- package/lib/ml-rule/create-test-rule.d.ts +5 -5
- package/lib/ml-rule/create-test-rule.js +3 -7
- package/lib/ml-rule/index.d.ts +3 -3
- package/lib/ml-rule/index.js +3 -6
- package/lib/ml-rule/ml-rule-context.d.ts +4 -4
- package/lib/ml-rule/ml-rule-context.js +11 -13
- package/lib/ml-rule/ml-rule.d.ts +9 -9
- package/lib/ml-rule/ml-rule.js +48 -45
- package/lib/ml-rule/types.d.ts +12 -12
- package/lib/ml-rule/types.js +1 -2
- package/lib/plugin/index.d.ts +2 -2
- package/lib/plugin/index.js +2 -5
- package/lib/plugin/plugin.d.ts +2 -2
- package/lib/plugin/plugin.js +1 -5
- package/lib/plugin/types.d.ts +6 -6
- package/lib/plugin/types.js +1 -2
- package/lib/ruleset/index.d.ts +3 -3
- package/lib/ruleset/index.js +4 -8
- package/lib/test/index.d.ts +9 -9
- package/lib/test/index.js +14 -24
- package/lib/types.d.ts +11 -10
- package/lib/types.js +1 -2
- package/lib/utils/get-location-from-chars.d.ts +1 -1
- package/lib/utils/get-location-from-chars.js +1 -5
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +1 -5
- package/lib/utils/string-splice.js +1 -5
- package/package.json +25 -16
- package/tsconfig.test.json +0 -3
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
/* global StylePropertyMap, StylePropertyMapReadOnly */
|
|
2
2
|
var _MLElement_attributes, _MLElement_fixedNodeName, _MLElement_getChildElementsAndTextNodeWithoutWhitespacesCache, _MLElement_localName, _MLElement_normalizedAttrs, _MLElement_normalizedString, _MLElement_tagOpenChar;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const parent_node_1 = require("./parent-node");
|
|
17
|
-
const unexpected_call_error_1 = tslib_1.__importDefault(require("./unexpected-call-error"));
|
|
3
|
+
import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
|
|
4
|
+
import { resolveNamespace } from '@markuplint/ml-spec';
|
|
5
|
+
import { createSelector } from '@markuplint/selector';
|
|
6
|
+
import { stringSplice } from '../../utils/string-splice.js';
|
|
7
|
+
import { getAccname } from '../helper/accname.js';
|
|
8
|
+
import { after, before, nextElementSibling, previousElementSibling, remove, replaceWith, } from '../manipulations/child-node-methods.js';
|
|
9
|
+
import { MLToken } from '../token/token.js';
|
|
10
|
+
import { MLAttr } from './attr.js';
|
|
11
|
+
import { MLDomTokenList } from './dom-token-list.js';
|
|
12
|
+
import { toNamedNodeMap } from './named-node-map.js';
|
|
13
|
+
import { toHTMLCollection } from './node-list.js';
|
|
14
|
+
import { MLParentNode } from './parent-node.js';
|
|
15
|
+
import UnexpectedCallError from './unexpected-call-error.js';
|
|
18
16
|
const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
|
|
19
|
-
class MLElement extends
|
|
20
|
-
constructor(
|
|
17
|
+
export class MLElement extends MLParentNode {
|
|
18
|
+
constructor(
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
20
|
+
astNode,
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
22
|
+
document) {
|
|
21
23
|
super(astNode, document);
|
|
22
24
|
_MLElement_attributes.set(this, void 0);
|
|
23
25
|
_MLElement_fixedNodeName.set(this, void 0);
|
|
@@ -27,19 +29,19 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
27
29
|
_MLElement_normalizedString.set(this, null);
|
|
28
30
|
this.pretenderContext = null;
|
|
29
31
|
_MLElement_tagOpenChar.set(this, void 0);
|
|
30
|
-
|
|
32
|
+
__classPrivateFieldSet(this, _MLElement_attributes, astNode.attributes.map(attr => new MLAttr(attr, this)), "f");
|
|
31
33
|
this.hasSpreadAttr = astNode.hasSpreadAttr;
|
|
32
|
-
this.selfClosingSolidus = astNode.selfClosingSolidus ? new
|
|
33
|
-
this.endSpace = astNode.endSpace ? new
|
|
34
|
-
this.closeTag = astNode.pearNode ? new
|
|
35
|
-
const ns =
|
|
34
|
+
this.selfClosingSolidus = astNode.selfClosingSolidus ? new MLToken(astNode.selfClosingSolidus) : null;
|
|
35
|
+
this.endSpace = astNode.endSpace ? new MLToken(astNode.endSpace) : null;
|
|
36
|
+
this.closeTag = astNode.pearNode ? new MLToken(astNode.pearNode) : null;
|
|
37
|
+
const ns = resolveNamespace(astNode.nodeName, astNode.namespace);
|
|
36
38
|
this.namespaceURI = ns.namespaceURI;
|
|
37
39
|
this.elementType = astNode.elementType;
|
|
38
|
-
|
|
40
|
+
__classPrivateFieldSet(this, _MLElement_localName, ns.localName, "f");
|
|
39
41
|
this.isForeignElement = this.namespaceURI !== HTML_NAMESPACE;
|
|
40
|
-
|
|
42
|
+
__classPrivateFieldSet(this, _MLElement_fixedNodeName, astNode.nodeName, "f");
|
|
41
43
|
this.isOmitted = astNode.isGhost;
|
|
42
|
-
|
|
44
|
+
__classPrivateFieldSet(this, _MLElement_tagOpenChar, astNode.tagOpenChar, "f");
|
|
43
45
|
}
|
|
44
46
|
/**
|
|
45
47
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -49,7 +51,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
49
51
|
* @implements DOM API: `Element`
|
|
50
52
|
*/
|
|
51
53
|
get accessKey() {
|
|
52
|
-
throw new
|
|
54
|
+
throw new UnexpectedCallError('Not supported "accessKey" property');
|
|
53
55
|
}
|
|
54
56
|
/**
|
|
55
57
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -59,7 +61,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
59
61
|
* @implements DOM API: `Element`
|
|
60
62
|
*/
|
|
61
63
|
get accessKeyLabel() {
|
|
62
|
-
throw new
|
|
64
|
+
throw new UnexpectedCallError('Not supported "accessKeyLabel" property');
|
|
63
65
|
}
|
|
64
66
|
/**
|
|
65
67
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -69,7 +71,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
69
71
|
* @implements DOM API: `Element`
|
|
70
72
|
*/
|
|
71
73
|
get ariaAtomic() {
|
|
72
|
-
throw new
|
|
74
|
+
throw new UnexpectedCallError('Not supported "ariaAtomic" property');
|
|
73
75
|
}
|
|
74
76
|
/**
|
|
75
77
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -79,7 +81,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
79
81
|
* @implements DOM API: `Element`
|
|
80
82
|
*/
|
|
81
83
|
get ariaAutoComplete() {
|
|
82
|
-
throw new
|
|
84
|
+
throw new UnexpectedCallError('Not supported "ariaAutoComplete" property');
|
|
83
85
|
}
|
|
84
86
|
/**
|
|
85
87
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -89,7 +91,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
89
91
|
* @implements DOM API: `Element`
|
|
90
92
|
*/
|
|
91
93
|
get ariaBusy() {
|
|
92
|
-
throw new
|
|
94
|
+
throw new UnexpectedCallError('Not supported "ariaBusy" property');
|
|
93
95
|
}
|
|
94
96
|
/**
|
|
95
97
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -99,7 +101,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
99
101
|
* @implements DOM API: `Element`
|
|
100
102
|
*/
|
|
101
103
|
get ariaChecked() {
|
|
102
|
-
throw new
|
|
104
|
+
throw new UnexpectedCallError('Not supported "ariaChecked" property');
|
|
103
105
|
}
|
|
104
106
|
/**
|
|
105
107
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -109,7 +111,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
109
111
|
* @implements DOM API: `Element`
|
|
110
112
|
*/
|
|
111
113
|
get ariaColCount() {
|
|
112
|
-
throw new
|
|
114
|
+
throw new UnexpectedCallError('Not supported "ariaColCount" property');
|
|
113
115
|
}
|
|
114
116
|
/**
|
|
115
117
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -119,7 +121,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
119
121
|
* @implements DOM API: `Element`
|
|
120
122
|
*/
|
|
121
123
|
get ariaColIndex() {
|
|
122
|
-
throw new
|
|
124
|
+
throw new UnexpectedCallError('Not supported "ariaColIndex" property');
|
|
123
125
|
}
|
|
124
126
|
/**
|
|
125
127
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -129,7 +131,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
129
131
|
* @implements DOM API: `Element`
|
|
130
132
|
*/
|
|
131
133
|
get ariaColIndexText() {
|
|
132
|
-
throw new
|
|
134
|
+
throw new UnexpectedCallError('Not supported "ariaColIndexText" property');
|
|
133
135
|
}
|
|
134
136
|
/**
|
|
135
137
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -139,7 +141,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
139
141
|
* @implements DOM API: `Element`
|
|
140
142
|
*/
|
|
141
143
|
get ariaColSpan() {
|
|
142
|
-
throw new
|
|
144
|
+
throw new UnexpectedCallError('Not supported "ariaColSpan" property');
|
|
143
145
|
}
|
|
144
146
|
/**
|
|
145
147
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -149,7 +151,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
149
151
|
* @implements DOM API: `Element`
|
|
150
152
|
*/
|
|
151
153
|
get ariaCurrent() {
|
|
152
|
-
throw new
|
|
154
|
+
throw new UnexpectedCallError('Not supported "ariaCurrent" property');
|
|
153
155
|
}
|
|
154
156
|
/**
|
|
155
157
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -159,7 +161,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
159
161
|
* @implements DOM API: `Element`
|
|
160
162
|
*/
|
|
161
163
|
get ariaDisabled() {
|
|
162
|
-
throw new
|
|
164
|
+
throw new UnexpectedCallError('Not supported "ariaDisabled" property');
|
|
163
165
|
}
|
|
164
166
|
/**
|
|
165
167
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -169,7 +171,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
169
171
|
* @implements DOM API: `Element`
|
|
170
172
|
*/
|
|
171
173
|
get ariaExpanded() {
|
|
172
|
-
throw new
|
|
174
|
+
throw new UnexpectedCallError('Not supported "ariaExpanded" property');
|
|
173
175
|
}
|
|
174
176
|
/**
|
|
175
177
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -179,7 +181,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
179
181
|
* @implements DOM API: `Element`
|
|
180
182
|
*/
|
|
181
183
|
get ariaHasPopup() {
|
|
182
|
-
throw new
|
|
184
|
+
throw new UnexpectedCallError('Not supported "ariaHasPopup" property');
|
|
183
185
|
}
|
|
184
186
|
/**
|
|
185
187
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -189,7 +191,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
189
191
|
* @implements DOM API: `Element`
|
|
190
192
|
*/
|
|
191
193
|
get ariaHidden() {
|
|
192
|
-
throw new
|
|
194
|
+
throw new UnexpectedCallError('Not supported "ariaHidden" property');
|
|
193
195
|
}
|
|
194
196
|
/**
|
|
195
197
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -199,7 +201,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
199
201
|
* @implements DOM API: `Element`
|
|
200
202
|
*/
|
|
201
203
|
get ariaInvalid() {
|
|
202
|
-
throw new
|
|
204
|
+
throw new UnexpectedCallError('Not supported "ariaInvalid" property');
|
|
203
205
|
}
|
|
204
206
|
/**
|
|
205
207
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -209,7 +211,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
209
211
|
* @implements DOM API: `Element`
|
|
210
212
|
*/
|
|
211
213
|
get ariaKeyShortcuts() {
|
|
212
|
-
throw new
|
|
214
|
+
throw new UnexpectedCallError('Not supported "ariaKeyShortcuts" property');
|
|
213
215
|
}
|
|
214
216
|
/**
|
|
215
217
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -219,7 +221,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
219
221
|
* @implements DOM API: `Element`
|
|
220
222
|
*/
|
|
221
223
|
get ariaLabel() {
|
|
222
|
-
throw new
|
|
224
|
+
throw new UnexpectedCallError('Not supported "ariaLabel" property');
|
|
223
225
|
}
|
|
224
226
|
/**
|
|
225
227
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -229,7 +231,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
229
231
|
* @implements DOM API: `Element`
|
|
230
232
|
*/
|
|
231
233
|
get ariaLevel() {
|
|
232
|
-
throw new
|
|
234
|
+
throw new UnexpectedCallError('Not supported "ariaLevel" property');
|
|
233
235
|
}
|
|
234
236
|
/**
|
|
235
237
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -239,7 +241,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
239
241
|
* @implements DOM API: `Element`
|
|
240
242
|
*/
|
|
241
243
|
get ariaLive() {
|
|
242
|
-
throw new
|
|
244
|
+
throw new UnexpectedCallError('Not supported "ariaLive" property');
|
|
243
245
|
}
|
|
244
246
|
/**
|
|
245
247
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -249,7 +251,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
249
251
|
* @implements DOM API: `Element`
|
|
250
252
|
*/
|
|
251
253
|
get ariaModal() {
|
|
252
|
-
throw new
|
|
254
|
+
throw new UnexpectedCallError('Not supported "ariaModal" property');
|
|
253
255
|
}
|
|
254
256
|
/**
|
|
255
257
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -259,7 +261,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
259
261
|
* @implements DOM API: `Element`
|
|
260
262
|
*/
|
|
261
263
|
get ariaMultiLine() {
|
|
262
|
-
throw new
|
|
264
|
+
throw new UnexpectedCallError('Not supported "ariaMultiLine" property');
|
|
263
265
|
}
|
|
264
266
|
/**
|
|
265
267
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -269,7 +271,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
269
271
|
* @implements DOM API: `Element`
|
|
270
272
|
*/
|
|
271
273
|
get ariaMultiSelectable() {
|
|
272
|
-
throw new
|
|
274
|
+
throw new UnexpectedCallError('Not supported "ariaMultiSelectable" property');
|
|
273
275
|
}
|
|
274
276
|
/**
|
|
275
277
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -279,7 +281,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
279
281
|
* @implements DOM API: `Element`
|
|
280
282
|
*/
|
|
281
283
|
get ariaOrientation() {
|
|
282
|
-
throw new
|
|
284
|
+
throw new UnexpectedCallError('Not supported "ariaOrientation" property');
|
|
283
285
|
}
|
|
284
286
|
/**
|
|
285
287
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -289,7 +291,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
289
291
|
* @implements DOM API: `Element`
|
|
290
292
|
*/
|
|
291
293
|
get ariaPlaceholder() {
|
|
292
|
-
throw new
|
|
294
|
+
throw new UnexpectedCallError('Not supported "ariaPlaceholder" property');
|
|
293
295
|
}
|
|
294
296
|
/**
|
|
295
297
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -299,7 +301,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
299
301
|
* @implements DOM API: `Element`
|
|
300
302
|
*/
|
|
301
303
|
get ariaPosInSet() {
|
|
302
|
-
throw new
|
|
304
|
+
throw new UnexpectedCallError('Not supported "ariaPosInSet" property');
|
|
303
305
|
}
|
|
304
306
|
/**
|
|
305
307
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -309,7 +311,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
309
311
|
* @implements DOM API: `Element`
|
|
310
312
|
*/
|
|
311
313
|
get ariaPressed() {
|
|
312
|
-
throw new
|
|
314
|
+
throw new UnexpectedCallError('Not supported "ariaPressed" property');
|
|
313
315
|
}
|
|
314
316
|
/**
|
|
315
317
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -319,7 +321,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
319
321
|
* @implements DOM API: `Element`
|
|
320
322
|
*/
|
|
321
323
|
get ariaReadOnly() {
|
|
322
|
-
throw new
|
|
324
|
+
throw new UnexpectedCallError('Not supported "ariaReadOnly" property');
|
|
323
325
|
}
|
|
324
326
|
/**
|
|
325
327
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -329,7 +331,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
329
331
|
* @implements DOM API: `Element`
|
|
330
332
|
*/
|
|
331
333
|
get ariaRequired() {
|
|
332
|
-
throw new
|
|
334
|
+
throw new UnexpectedCallError('Not supported "ariaRequired" property');
|
|
333
335
|
}
|
|
334
336
|
/**
|
|
335
337
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -339,7 +341,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
339
341
|
* @implements DOM API: `Element`
|
|
340
342
|
*/
|
|
341
343
|
get ariaRoleDescription() {
|
|
342
|
-
throw new
|
|
344
|
+
throw new UnexpectedCallError('Not supported "ariaRoleDescription" property');
|
|
343
345
|
}
|
|
344
346
|
/**
|
|
345
347
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -349,7 +351,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
349
351
|
* @implements DOM API: `Element`
|
|
350
352
|
*/
|
|
351
353
|
get ariaRowCount() {
|
|
352
|
-
throw new
|
|
354
|
+
throw new UnexpectedCallError('Not supported "ariaRowCount" property');
|
|
353
355
|
}
|
|
354
356
|
/**
|
|
355
357
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -359,7 +361,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
359
361
|
* @implements DOM API: `Element`
|
|
360
362
|
*/
|
|
361
363
|
get ariaRowIndex() {
|
|
362
|
-
throw new
|
|
364
|
+
throw new UnexpectedCallError('Not supported "ariaRowIndex" property');
|
|
363
365
|
}
|
|
364
366
|
/**
|
|
365
367
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -369,7 +371,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
369
371
|
* @implements DOM API: `Element`
|
|
370
372
|
*/
|
|
371
373
|
get ariaRowIndexText() {
|
|
372
|
-
throw new
|
|
374
|
+
throw new UnexpectedCallError('Not supported "ariaRowIndexText" property');
|
|
373
375
|
}
|
|
374
376
|
/**
|
|
375
377
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -379,7 +381,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
379
381
|
* @implements DOM API: `Element`
|
|
380
382
|
*/
|
|
381
383
|
get ariaRowSpan() {
|
|
382
|
-
throw new
|
|
384
|
+
throw new UnexpectedCallError('Not supported "ariaRowSpan" property');
|
|
383
385
|
}
|
|
384
386
|
/**
|
|
385
387
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -389,7 +391,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
389
391
|
* @implements DOM API: `Element`
|
|
390
392
|
*/
|
|
391
393
|
get ariaSelected() {
|
|
392
|
-
throw new
|
|
394
|
+
throw new UnexpectedCallError('Not supported "ariaSelected" property');
|
|
393
395
|
}
|
|
394
396
|
/**
|
|
395
397
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -399,7 +401,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
399
401
|
* @implements DOM API: `Element`
|
|
400
402
|
*/
|
|
401
403
|
get ariaSetSize() {
|
|
402
|
-
throw new
|
|
404
|
+
throw new UnexpectedCallError('Not supported "ariaSetSize" property');
|
|
403
405
|
}
|
|
404
406
|
/**
|
|
405
407
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -409,7 +411,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
409
411
|
* @implements DOM API: `Element`
|
|
410
412
|
*/
|
|
411
413
|
get ariaSort() {
|
|
412
|
-
throw new
|
|
414
|
+
throw new UnexpectedCallError('Not supported "ariaSort" property');
|
|
413
415
|
}
|
|
414
416
|
/**
|
|
415
417
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -419,7 +421,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
419
421
|
* @implements DOM API: `Element`
|
|
420
422
|
*/
|
|
421
423
|
get ariaValueMax() {
|
|
422
|
-
throw new
|
|
424
|
+
throw new UnexpectedCallError('Not supported "ariaValueMax" property');
|
|
423
425
|
}
|
|
424
426
|
/**
|
|
425
427
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -429,7 +431,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
429
431
|
* @implements DOM API: `Element`
|
|
430
432
|
*/
|
|
431
433
|
get ariaValueMin() {
|
|
432
|
-
throw new
|
|
434
|
+
throw new UnexpectedCallError('Not supported "ariaValueMin" property');
|
|
433
435
|
}
|
|
434
436
|
/**
|
|
435
437
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -439,7 +441,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
439
441
|
* @implements DOM API: `Element`
|
|
440
442
|
*/
|
|
441
443
|
get ariaValueNow() {
|
|
442
|
-
throw new
|
|
444
|
+
throw new UnexpectedCallError('Not supported "ariaValueNow" property');
|
|
443
445
|
}
|
|
444
446
|
/**
|
|
445
447
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -449,7 +451,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
449
451
|
* @implements DOM API: `Element`
|
|
450
452
|
*/
|
|
451
453
|
get ariaValueText() {
|
|
452
|
-
throw new
|
|
454
|
+
throw new UnexpectedCallError('Not supported "ariaValueText" property');
|
|
453
455
|
}
|
|
454
456
|
/**
|
|
455
457
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -459,17 +461,19 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
459
461
|
* @see https://dom.spec.whatwg.org/#dom-slotable-assignedslot
|
|
460
462
|
*/
|
|
461
463
|
get assignedSlot() {
|
|
462
|
-
throw new
|
|
464
|
+
throw new UnexpectedCallError('Not supported "assignedSlot" property');
|
|
465
|
+
}
|
|
466
|
+
get attributeStyleMap() {
|
|
467
|
+
throw new UnexpectedCallError('Not supported "attributeStyleMap" property');
|
|
463
468
|
}
|
|
464
469
|
/**
|
|
465
470
|
* @implements DOM API: `Element`
|
|
466
471
|
* @see https://dom.spec.whatwg.org/#dom-element-attributes
|
|
467
472
|
*/
|
|
468
473
|
get attributes() {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
return tslib_1.__classPrivateFieldGet(this, _MLElement_normalizedAttrs, "f").get(origin);
|
|
474
|
+
const origin = this.pretenderContext?.type === 'pretender' ? __classPrivateFieldGet(this.pretenderContext.as, _MLElement_attributes, "f") : __classPrivateFieldGet(this, _MLElement_attributes, "f");
|
|
475
|
+
if (__classPrivateFieldGet(this, _MLElement_normalizedAttrs, "f").has(origin)) {
|
|
476
|
+
return __classPrivateFieldGet(this, _MLElement_normalizedAttrs, "f").get(origin);
|
|
473
477
|
}
|
|
474
478
|
const names = new Set();
|
|
475
479
|
const attrs = [];
|
|
@@ -484,8 +488,8 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
484
488
|
}
|
|
485
489
|
attrs.push(attr);
|
|
486
490
|
}
|
|
487
|
-
const map =
|
|
488
|
-
|
|
491
|
+
const map = toNamedNodeMap(attrs);
|
|
492
|
+
__classPrivateFieldGet(this, _MLElement_normalizedAttrs, "f").set(origin, map);
|
|
489
493
|
return map;
|
|
490
494
|
}
|
|
491
495
|
/**
|
|
@@ -496,7 +500,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
496
500
|
* @implements DOM API: `Element`
|
|
497
501
|
*/
|
|
498
502
|
get autocapitalize() {
|
|
499
|
-
throw new
|
|
503
|
+
throw new UnexpectedCallError('Not supported "autocapitalize" property');
|
|
500
504
|
}
|
|
501
505
|
/**
|
|
502
506
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -506,7 +510,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
506
510
|
* @implements DOM API: `Element`
|
|
507
511
|
*/
|
|
508
512
|
get autofocus() {
|
|
509
|
-
throw new
|
|
513
|
+
throw new UnexpectedCallError('Not supported "autofocus" property');
|
|
510
514
|
}
|
|
511
515
|
/**
|
|
512
516
|
* @implements DOM API: `Element`
|
|
@@ -515,7 +519,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
515
519
|
get classList() {
|
|
516
520
|
const classAttrs = this.getAttributeToken('class');
|
|
517
521
|
const value = classAttrs.map(c => c.value).join(' ');
|
|
518
|
-
return new
|
|
522
|
+
return new MLDomTokenList(value, classAttrs);
|
|
519
523
|
}
|
|
520
524
|
/**
|
|
521
525
|
* @implements DOM API: `Element`
|
|
@@ -532,7 +536,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
532
536
|
* @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-clientheight-1
|
|
533
537
|
*/
|
|
534
538
|
get clientHeight() {
|
|
535
|
-
throw new
|
|
539
|
+
throw new UnexpectedCallError('Not supported "clientHeight" property');
|
|
536
540
|
}
|
|
537
541
|
/**
|
|
538
542
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -542,7 +546,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
542
546
|
* @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-clientleft-1
|
|
543
547
|
*/
|
|
544
548
|
get clientLeft() {
|
|
545
|
-
throw new
|
|
549
|
+
throw new UnexpectedCallError('Not supported "clientLeft" property');
|
|
546
550
|
}
|
|
547
551
|
/**
|
|
548
552
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -552,7 +556,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
552
556
|
* @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-clienttop-1
|
|
553
557
|
*/
|
|
554
558
|
get clientTop() {
|
|
555
|
-
throw new
|
|
559
|
+
throw new UnexpectedCallError('Not supported "clientTop" property');
|
|
556
560
|
}
|
|
557
561
|
/**
|
|
558
562
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -562,7 +566,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
562
566
|
* @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-clientwidth-1
|
|
563
567
|
*/
|
|
564
568
|
get clientWidth() {
|
|
565
|
-
throw new
|
|
569
|
+
throw new UnexpectedCallError('Not supported "clientWidth" property');
|
|
566
570
|
}
|
|
567
571
|
/**
|
|
568
572
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -572,7 +576,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
572
576
|
* @implements DOM API: `Element`
|
|
573
577
|
*/
|
|
574
578
|
get contentEditable() {
|
|
575
|
-
throw new
|
|
579
|
+
throw new UnexpectedCallError('Not supported "contentEditable" property');
|
|
576
580
|
}
|
|
577
581
|
/**
|
|
578
582
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -582,7 +586,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
582
586
|
* @implements DOM API: `Element`
|
|
583
587
|
*/
|
|
584
588
|
get dataset() {
|
|
585
|
-
throw new
|
|
589
|
+
throw new UnexpectedCallError('Not supported "dataset" property');
|
|
586
590
|
}
|
|
587
591
|
/**
|
|
588
592
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -592,7 +596,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
592
596
|
* @implements DOM API: `Element`
|
|
593
597
|
*/
|
|
594
598
|
get dir() {
|
|
595
|
-
throw new
|
|
599
|
+
throw new UnexpectedCallError('Not supported "dir" property');
|
|
596
600
|
}
|
|
597
601
|
/**
|
|
598
602
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -602,7 +606,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
602
606
|
* @implements DOM API: `Element`
|
|
603
607
|
*/
|
|
604
608
|
get draggable() {
|
|
605
|
-
throw new
|
|
609
|
+
throw new UnexpectedCallError('Not supported "draggable" property');
|
|
606
610
|
}
|
|
607
611
|
/**
|
|
608
612
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -612,13 +616,13 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
612
616
|
* @implements DOM API: `Element`
|
|
613
617
|
*/
|
|
614
618
|
get enterKeyHint() {
|
|
615
|
-
throw new
|
|
619
|
+
throw new UnexpectedCallError('Not supported "enterKeyHint" property');
|
|
616
620
|
}
|
|
617
621
|
/**
|
|
618
622
|
* @implements `@markuplint/ml-core` API: `MLElement`
|
|
619
623
|
*/
|
|
620
624
|
get fixedNodeName() {
|
|
621
|
-
return
|
|
625
|
+
return __classPrivateFieldGet(this, _MLElement_fixedNodeName, "f");
|
|
622
626
|
}
|
|
623
627
|
/**
|
|
624
628
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -628,14 +632,14 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
628
632
|
* @implements DOM API: `Element`
|
|
629
633
|
*/
|
|
630
634
|
get hidden() {
|
|
631
|
-
throw new
|
|
635
|
+
throw new UnexpectedCallError('Not supported "hidden" property');
|
|
632
636
|
}
|
|
633
637
|
/**
|
|
634
638
|
* @implements DOM API: `Element`
|
|
635
639
|
* @see https://dom.spec.whatwg.org/#ref-for-dom-element-id%E2%91%A0
|
|
636
640
|
*/
|
|
637
641
|
get id() {
|
|
638
|
-
return this.getAttribute('id')
|
|
642
|
+
return this.getAttribute('id') ?? '';
|
|
639
643
|
}
|
|
640
644
|
/**
|
|
641
645
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -646,7 +650,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
646
650
|
* @see https://html.spec.whatwg.org/multipage/interaction.html#dom-inert
|
|
647
651
|
*/
|
|
648
652
|
get inert() {
|
|
649
|
-
throw new
|
|
653
|
+
throw new UnexpectedCallError('Not supported "inert" property');
|
|
650
654
|
}
|
|
651
655
|
/**
|
|
652
656
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -656,7 +660,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
656
660
|
* @see https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
|
|
657
661
|
*/
|
|
658
662
|
get innerHTML() {
|
|
659
|
-
throw new
|
|
663
|
+
throw new UnexpectedCallError('Not supported "innerHTML" property');
|
|
660
664
|
}
|
|
661
665
|
/**
|
|
662
666
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -666,7 +670,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
666
670
|
* @implements DOM API: `Element`
|
|
667
671
|
*/
|
|
668
672
|
get innerText() {
|
|
669
|
-
throw new
|
|
673
|
+
throw new UnexpectedCallError('Not supported "innerText" property');
|
|
670
674
|
}
|
|
671
675
|
/**
|
|
672
676
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -676,7 +680,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
676
680
|
* @implements DOM API: `Element`
|
|
677
681
|
*/
|
|
678
682
|
get inputMode() {
|
|
679
|
-
throw new
|
|
683
|
+
throw new UnexpectedCallError('Not supported "inputMode" property');
|
|
680
684
|
}
|
|
681
685
|
/**
|
|
682
686
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -686,7 +690,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
686
690
|
* @implements DOM API: `Element`
|
|
687
691
|
*/
|
|
688
692
|
get isContentEditable() {
|
|
689
|
-
throw new
|
|
693
|
+
throw new UnexpectedCallError('Not supported "isContentEditable" property');
|
|
690
694
|
}
|
|
691
695
|
/**
|
|
692
696
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -696,7 +700,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
696
700
|
* @implements DOM API: `Element`
|
|
697
701
|
*/
|
|
698
702
|
get lang() {
|
|
699
|
-
throw new
|
|
703
|
+
throw new UnexpectedCallError('Not supported "lang" property');
|
|
700
704
|
}
|
|
701
705
|
/**
|
|
702
706
|
* Returns a lowercase name if it is an HTML element.
|
|
@@ -714,14 +718,13 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
714
718
|
* @see https://dom.spec.whatwg.org/#ref-for-dom-element-localname%E2%91%A0
|
|
715
719
|
*/
|
|
716
720
|
get localName() {
|
|
717
|
-
|
|
718
|
-
if (((_a = this.pretenderContext) === null || _a === void 0 ? void 0 : _a.type) === 'pretender') {
|
|
721
|
+
if (this.pretenderContext?.type === 'pretender') {
|
|
719
722
|
return this.pretenderContext.as.localName;
|
|
720
723
|
}
|
|
721
724
|
if (this.isForeignElement || this.elementType !== 'html') {
|
|
722
|
-
return
|
|
725
|
+
return __classPrivateFieldGet(this, _MLElement_localName, "f");
|
|
723
726
|
}
|
|
724
|
-
return
|
|
727
|
+
return __classPrivateFieldGet(this, _MLElement_localName, "f").toLowerCase();
|
|
725
728
|
}
|
|
726
729
|
/**
|
|
727
730
|
* The element immediately following the specified one in its parent's children list.
|
|
@@ -731,7 +734,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
731
734
|
* @see https://dom.spec.whatwg.org/#ref-for-dom-nondocumenttypechildnode-nextelementsibling%E2%91%A1
|
|
732
735
|
*/
|
|
733
736
|
get nextElementSibling() {
|
|
734
|
-
return
|
|
737
|
+
return nextElementSibling(this);
|
|
735
738
|
}
|
|
736
739
|
/**
|
|
737
740
|
* Returns a string appropriate for the type of node as `Element`
|
|
@@ -739,8 +742,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
739
742
|
* @see https://dom.spec.whatwg.org/#ref-for-element%E2%91%A2%E2%93%AA
|
|
740
743
|
*/
|
|
741
744
|
get nodeName() {
|
|
742
|
-
|
|
743
|
-
if (((_a = this.pretenderContext) === null || _a === void 0 ? void 0 : _a.type) === 'pretender') {
|
|
745
|
+
if (this.pretenderContext?.type === 'pretender') {
|
|
744
746
|
return this.pretenderContext.as.nodeName;
|
|
745
747
|
}
|
|
746
748
|
if (this.isForeignElement || this.elementType !== 'html') {
|
|
@@ -762,7 +764,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
762
764
|
* @implements DOM API: `Element`
|
|
763
765
|
*/
|
|
764
766
|
get nonce() {
|
|
765
|
-
throw new
|
|
767
|
+
throw new UnexpectedCallError('Not supported "nonce" property');
|
|
766
768
|
}
|
|
767
769
|
/**
|
|
768
770
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -772,7 +774,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
772
774
|
* @implements DOM API: `Element`
|
|
773
775
|
*/
|
|
774
776
|
get offsetHeight() {
|
|
775
|
-
throw new
|
|
777
|
+
throw new UnexpectedCallError('Not supported "offsetHeight" property');
|
|
776
778
|
}
|
|
777
779
|
/**
|
|
778
780
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -782,7 +784,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
782
784
|
* @implements DOM API: `Element`
|
|
783
785
|
*/
|
|
784
786
|
get offsetLeft() {
|
|
785
|
-
throw new
|
|
787
|
+
throw new UnexpectedCallError('Not supported "offsetLeft" property');
|
|
786
788
|
}
|
|
787
789
|
/**
|
|
788
790
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -792,7 +794,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
792
794
|
* @implements DOM API: `Element`
|
|
793
795
|
*/
|
|
794
796
|
get offsetParent() {
|
|
795
|
-
throw new
|
|
797
|
+
throw new UnexpectedCallError('Not supported "offsetParent" property');
|
|
796
798
|
}
|
|
797
799
|
/**
|
|
798
800
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -802,7 +804,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
802
804
|
* @implements DOM API: `Element`
|
|
803
805
|
*/
|
|
804
806
|
get offsetTop() {
|
|
805
|
-
throw new
|
|
807
|
+
throw new UnexpectedCallError('Not supported "offsetTop" property');
|
|
806
808
|
}
|
|
807
809
|
/**
|
|
808
810
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -812,7 +814,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
812
814
|
* @implements DOM API: `Element`
|
|
813
815
|
*/
|
|
814
816
|
get offsetWidth() {
|
|
815
|
-
throw new
|
|
817
|
+
throw new UnexpectedCallError('Not supported "offsetWidth" property');
|
|
816
818
|
}
|
|
817
819
|
/**
|
|
818
820
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -822,7 +824,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
822
824
|
* @implements DOM API: `Element`
|
|
823
825
|
*/
|
|
824
826
|
get onabort() {
|
|
825
|
-
throw new
|
|
827
|
+
throw new UnexpectedCallError('Not supported "onabort" property');
|
|
826
828
|
}
|
|
827
829
|
/**
|
|
828
830
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -832,7 +834,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
832
834
|
* @implements DOM API: `Element`
|
|
833
835
|
*/
|
|
834
836
|
get onanimationcancel() {
|
|
835
|
-
throw new
|
|
837
|
+
throw new UnexpectedCallError('Not supported "onanimationcancel" property');
|
|
836
838
|
}
|
|
837
839
|
/**
|
|
838
840
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -842,7 +844,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
842
844
|
* @implements DOM API: `Element`
|
|
843
845
|
*/
|
|
844
846
|
get onanimationend() {
|
|
845
|
-
throw new
|
|
847
|
+
throw new UnexpectedCallError('Not supported "onanimationend" property');
|
|
846
848
|
}
|
|
847
849
|
/**
|
|
848
850
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -852,7 +854,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
852
854
|
* @implements DOM API: `Element`
|
|
853
855
|
*/
|
|
854
856
|
get onanimationiteration() {
|
|
855
|
-
throw new
|
|
857
|
+
throw new UnexpectedCallError('Not supported "onanimationiteration" property');
|
|
856
858
|
}
|
|
857
859
|
/**
|
|
858
860
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -862,7 +864,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
862
864
|
* @implements DOM API: `Element`
|
|
863
865
|
*/
|
|
864
866
|
get onanimationstart() {
|
|
865
|
-
throw new
|
|
867
|
+
throw new UnexpectedCallError('Not supported "onanimationstart" property');
|
|
866
868
|
}
|
|
867
869
|
/**
|
|
868
870
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -872,7 +874,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
872
874
|
* @implements DOM API: `Element`
|
|
873
875
|
*/
|
|
874
876
|
get onauxclick() {
|
|
875
|
-
throw new
|
|
877
|
+
throw new UnexpectedCallError('Not supported "onauxclick" property');
|
|
876
878
|
}
|
|
877
879
|
/**
|
|
878
880
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -882,7 +884,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
882
884
|
* @implements DOM API: `Element`
|
|
883
885
|
*/
|
|
884
886
|
get onbeforeinput() {
|
|
885
|
-
throw new
|
|
887
|
+
throw new UnexpectedCallError('Not supported "onbeforeinput" property');
|
|
886
888
|
}
|
|
887
889
|
/**
|
|
888
890
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -892,7 +894,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
892
894
|
* @implements DOM API: `Element`
|
|
893
895
|
*/
|
|
894
896
|
get onblur() {
|
|
895
|
-
throw new
|
|
897
|
+
throw new UnexpectedCallError('Not supported "onblur" property');
|
|
896
898
|
}
|
|
897
899
|
/**
|
|
898
900
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -902,7 +904,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
902
904
|
* @implements DOM API: `Element`
|
|
903
905
|
*/
|
|
904
906
|
get oncancel() {
|
|
905
|
-
throw new
|
|
907
|
+
throw new UnexpectedCallError('Not supported "oncanplay" property');
|
|
906
908
|
}
|
|
907
909
|
/**
|
|
908
910
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -912,7 +914,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
912
914
|
* @implements DOM API: `Element`
|
|
913
915
|
*/
|
|
914
916
|
get oncanplay() {
|
|
915
|
-
throw new
|
|
917
|
+
throw new UnexpectedCallError('Not supported "oncanplay" property');
|
|
916
918
|
}
|
|
917
919
|
/**
|
|
918
920
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -922,7 +924,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
922
924
|
* @implements DOM API: `Element`
|
|
923
925
|
*/
|
|
924
926
|
get oncanplaythrough() {
|
|
925
|
-
throw new
|
|
927
|
+
throw new UnexpectedCallError('Not supported "oncanplaythrough" property');
|
|
926
928
|
}
|
|
927
929
|
/**
|
|
928
930
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -932,7 +934,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
932
934
|
* @implements DOM API: `Element`
|
|
933
935
|
*/
|
|
934
936
|
get onchange() {
|
|
935
|
-
throw new
|
|
937
|
+
throw new UnexpectedCallError('Not supported "onchange" property');
|
|
936
938
|
}
|
|
937
939
|
/**
|
|
938
940
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -942,7 +944,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
942
944
|
* @implements DOM API: `Element`
|
|
943
945
|
*/
|
|
944
946
|
get onclick() {
|
|
945
|
-
throw new
|
|
947
|
+
throw new UnexpectedCallError('Not supported "onclick" property');
|
|
946
948
|
}
|
|
947
949
|
/**
|
|
948
950
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -952,7 +954,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
952
954
|
* @implements DOM API: `Element`
|
|
953
955
|
*/
|
|
954
956
|
get onclose() {
|
|
955
|
-
throw new
|
|
957
|
+
throw new UnexpectedCallError('Not supported "onclose" property');
|
|
956
958
|
}
|
|
957
959
|
/**
|
|
958
960
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -962,7 +964,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
962
964
|
* @implements DOM API: `Element`
|
|
963
965
|
*/
|
|
964
966
|
get oncontextmenu() {
|
|
965
|
-
throw new
|
|
967
|
+
throw new UnexpectedCallError('Not supported "oncontextmenu" property');
|
|
966
968
|
}
|
|
967
969
|
/**
|
|
968
970
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -972,7 +974,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
972
974
|
* @implements DOM API: `Element`
|
|
973
975
|
*/
|
|
974
976
|
get oncopy() {
|
|
975
|
-
throw new
|
|
977
|
+
throw new UnexpectedCallError('Not supported "oncopy" property');
|
|
976
978
|
}
|
|
977
979
|
/**
|
|
978
980
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -982,7 +984,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
982
984
|
* @implements DOM API: `Element`
|
|
983
985
|
*/
|
|
984
986
|
get oncuechange() {
|
|
985
|
-
throw new
|
|
987
|
+
throw new UnexpectedCallError('Not supported "onpointerleave" property');
|
|
986
988
|
}
|
|
987
989
|
/**
|
|
988
990
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -992,7 +994,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
992
994
|
* @implements DOM API: `Element`
|
|
993
995
|
*/
|
|
994
996
|
get oncut() {
|
|
995
|
-
throw new
|
|
997
|
+
throw new UnexpectedCallError('Not supported "onpointerleave" property');
|
|
996
998
|
}
|
|
997
999
|
/**
|
|
998
1000
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1002,7 +1004,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1002
1004
|
* @implements DOM API: `Element`
|
|
1003
1005
|
*/
|
|
1004
1006
|
get ondblclick() {
|
|
1005
|
-
throw new
|
|
1007
|
+
throw new UnexpectedCallError('Not supported "ondblclick" property');
|
|
1006
1008
|
}
|
|
1007
1009
|
/**
|
|
1008
1010
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1012,7 +1014,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1012
1014
|
* @implements DOM API: `Element`
|
|
1013
1015
|
*/
|
|
1014
1016
|
get ondrag() {
|
|
1015
|
-
throw new
|
|
1017
|
+
throw new UnexpectedCallError('Not supported "ondrag" property');
|
|
1016
1018
|
}
|
|
1017
1019
|
/**
|
|
1018
1020
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1022,7 +1024,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1022
1024
|
* @implements DOM API: `Element`
|
|
1023
1025
|
*/
|
|
1024
1026
|
get ondragend() {
|
|
1025
|
-
throw new
|
|
1027
|
+
throw new UnexpectedCallError('Not supported "ondragend" property');
|
|
1026
1028
|
}
|
|
1027
1029
|
/**
|
|
1028
1030
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1032,7 +1034,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1032
1034
|
* @implements DOM API: `Element`
|
|
1033
1035
|
*/
|
|
1034
1036
|
get ondragenter() {
|
|
1035
|
-
throw new
|
|
1037
|
+
throw new UnexpectedCallError('Not supported "ondragenter" property');
|
|
1036
1038
|
}
|
|
1037
1039
|
/**
|
|
1038
1040
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1042,7 +1044,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1042
1044
|
* @implements DOM API: `Element`
|
|
1043
1045
|
*/
|
|
1044
1046
|
get ondragleave() {
|
|
1045
|
-
throw new
|
|
1047
|
+
throw new UnexpectedCallError('Not supported "ondragleave" property');
|
|
1046
1048
|
}
|
|
1047
1049
|
/**
|
|
1048
1050
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1052,7 +1054,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1052
1054
|
* @implements DOM API: `Element`
|
|
1053
1055
|
*/
|
|
1054
1056
|
get ondragover() {
|
|
1055
|
-
throw new
|
|
1057
|
+
throw new UnexpectedCallError('Not supported "ondragover" property');
|
|
1056
1058
|
}
|
|
1057
1059
|
/**
|
|
1058
1060
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1062,7 +1064,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1062
1064
|
* @implements DOM API: `Element`
|
|
1063
1065
|
*/
|
|
1064
1066
|
get ondragstart() {
|
|
1065
|
-
throw new
|
|
1067
|
+
throw new UnexpectedCallError('Not supported "ondragstart" property');
|
|
1066
1068
|
}
|
|
1067
1069
|
/**
|
|
1068
1070
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1072,7 +1074,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1072
1074
|
* @implements DOM API: `Element`
|
|
1073
1075
|
*/
|
|
1074
1076
|
get ondrop() {
|
|
1075
|
-
throw new
|
|
1077
|
+
throw new UnexpectedCallError('Not supported "ondrop" property');
|
|
1076
1078
|
}
|
|
1077
1079
|
/**
|
|
1078
1080
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1082,7 +1084,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1082
1084
|
* @implements DOM API: `Element`
|
|
1083
1085
|
*/
|
|
1084
1086
|
get ondurationchange() {
|
|
1085
|
-
throw new
|
|
1087
|
+
throw new UnexpectedCallError('Not supported "ondurationchange" property');
|
|
1086
1088
|
}
|
|
1087
1089
|
/**
|
|
1088
1090
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1092,7 +1094,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1092
1094
|
* @implements DOM API: `Element`
|
|
1093
1095
|
*/
|
|
1094
1096
|
get onemptied() {
|
|
1095
|
-
throw new
|
|
1097
|
+
throw new UnexpectedCallError('Not supported "onemptied" property');
|
|
1096
1098
|
}
|
|
1097
1099
|
/**
|
|
1098
1100
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1102,7 +1104,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1102
1104
|
* @implements DOM API: `Element`
|
|
1103
1105
|
*/
|
|
1104
1106
|
get onended() {
|
|
1105
|
-
throw new
|
|
1107
|
+
throw new UnexpectedCallError('Not supported "onended" property');
|
|
1106
1108
|
}
|
|
1107
1109
|
/**
|
|
1108
1110
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1112,7 +1114,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1112
1114
|
* @implements DOM API: `Element`
|
|
1113
1115
|
*/
|
|
1114
1116
|
get onerror() {
|
|
1115
|
-
throw new
|
|
1117
|
+
throw new UnexpectedCallError('Not supported "onerror" property');
|
|
1116
1118
|
}
|
|
1117
1119
|
/**
|
|
1118
1120
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1122,7 +1124,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1122
1124
|
* @implements DOM API: `Element`
|
|
1123
1125
|
*/
|
|
1124
1126
|
get onfocus() {
|
|
1125
|
-
throw new
|
|
1127
|
+
throw new UnexpectedCallError('Not supported "onfocus" property');
|
|
1126
1128
|
}
|
|
1127
1129
|
/**
|
|
1128
1130
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1132,7 +1134,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1132
1134
|
* @implements DOM API: `Element`
|
|
1133
1135
|
*/
|
|
1134
1136
|
get onformdata() {
|
|
1135
|
-
throw new
|
|
1137
|
+
throw new UnexpectedCallError('Not supported "onformdata" property');
|
|
1136
1138
|
}
|
|
1137
1139
|
/**
|
|
1138
1140
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1142,7 +1144,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1142
1144
|
* @implements DOM API: `Element`
|
|
1143
1145
|
*/
|
|
1144
1146
|
get onfullscreenchange() {
|
|
1145
|
-
throw new
|
|
1147
|
+
throw new UnexpectedCallError('Not supported "onfullscreenchange" property');
|
|
1146
1148
|
}
|
|
1147
1149
|
/**
|
|
1148
1150
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1152,7 +1154,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1152
1154
|
* @implements DOM API: `Element`
|
|
1153
1155
|
*/
|
|
1154
1156
|
get onfullscreenerror() {
|
|
1155
|
-
throw new
|
|
1157
|
+
throw new UnexpectedCallError('Not supported "onfullscreenerror" property');
|
|
1156
1158
|
}
|
|
1157
1159
|
/**
|
|
1158
1160
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1162,7 +1164,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1162
1164
|
* @implements DOM API: `Element`
|
|
1163
1165
|
*/
|
|
1164
1166
|
get ongotpointercapture() {
|
|
1165
|
-
throw new
|
|
1167
|
+
throw new UnexpectedCallError('Not supported "ongotpointercapture" property');
|
|
1166
1168
|
}
|
|
1167
1169
|
/**
|
|
1168
1170
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1172,7 +1174,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1172
1174
|
* @implements DOM API: `Element`
|
|
1173
1175
|
*/
|
|
1174
1176
|
get oninput() {
|
|
1175
|
-
throw new
|
|
1177
|
+
throw new UnexpectedCallError('Not supported "oninput" property');
|
|
1176
1178
|
}
|
|
1177
1179
|
/**
|
|
1178
1180
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1182,7 +1184,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1182
1184
|
* @implements DOM API: `Element`
|
|
1183
1185
|
*/
|
|
1184
1186
|
get oninvalid() {
|
|
1185
|
-
throw new
|
|
1187
|
+
throw new UnexpectedCallError('Not supported "oninvalid" property');
|
|
1186
1188
|
}
|
|
1187
1189
|
/**
|
|
1188
1190
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1192,7 +1194,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1192
1194
|
* @implements DOM API: `Element`
|
|
1193
1195
|
*/
|
|
1194
1196
|
get onkeydown() {
|
|
1195
|
-
throw new
|
|
1197
|
+
throw new UnexpectedCallError('Not supported "onkeydown" property');
|
|
1196
1198
|
}
|
|
1197
1199
|
/**
|
|
1198
1200
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1202,7 +1204,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1202
1204
|
* @implements DOM API: `Element`
|
|
1203
1205
|
*/
|
|
1204
1206
|
get onkeypress() {
|
|
1205
|
-
throw new
|
|
1207
|
+
throw new UnexpectedCallError('Not supported "onkeypress" property');
|
|
1206
1208
|
}
|
|
1207
1209
|
/**
|
|
1208
1210
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1212,7 +1214,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1212
1214
|
* @implements DOM API: `Element`
|
|
1213
1215
|
*/
|
|
1214
1216
|
get onkeyup() {
|
|
1215
|
-
throw new
|
|
1217
|
+
throw new UnexpectedCallError('Not supported "onkeyup" property');
|
|
1216
1218
|
}
|
|
1217
1219
|
/**
|
|
1218
1220
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1222,7 +1224,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1222
1224
|
* @implements DOM API: `Element`
|
|
1223
1225
|
*/
|
|
1224
1226
|
get onload() {
|
|
1225
|
-
throw new
|
|
1227
|
+
throw new UnexpectedCallError('Not supported "onload" property');
|
|
1226
1228
|
}
|
|
1227
1229
|
/**
|
|
1228
1230
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1232,7 +1234,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1232
1234
|
* @implements DOM API: `Element`
|
|
1233
1235
|
*/
|
|
1234
1236
|
get onloadeddata() {
|
|
1235
|
-
throw new
|
|
1237
|
+
throw new UnexpectedCallError('Not supported "onloadeddata" property');
|
|
1236
1238
|
}
|
|
1237
1239
|
/**
|
|
1238
1240
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1242,7 +1244,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1242
1244
|
* @implements DOM API: `Element`
|
|
1243
1245
|
*/
|
|
1244
1246
|
get onloadedmetadata() {
|
|
1245
|
-
throw new
|
|
1247
|
+
throw new UnexpectedCallError('Not supported "onloadedmetadata" property');
|
|
1246
1248
|
}
|
|
1247
1249
|
/**
|
|
1248
1250
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1252,7 +1254,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1252
1254
|
* @implements DOM API: `Element`
|
|
1253
1255
|
*/
|
|
1254
1256
|
get onloadstart() {
|
|
1255
|
-
throw new
|
|
1257
|
+
throw new UnexpectedCallError('Not supported "onloadstart" property');
|
|
1256
1258
|
}
|
|
1257
1259
|
/**
|
|
1258
1260
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1262,7 +1264,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1262
1264
|
* @implements DOM API: `Element`
|
|
1263
1265
|
*/
|
|
1264
1266
|
get onlostpointercapture() {
|
|
1265
|
-
throw new
|
|
1267
|
+
throw new UnexpectedCallError('Not supported "onlostpointercapture" property');
|
|
1266
1268
|
}
|
|
1267
1269
|
/**
|
|
1268
1270
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1272,7 +1274,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1272
1274
|
* @implements DOM API: `Element`
|
|
1273
1275
|
*/
|
|
1274
1276
|
get onmousedown() {
|
|
1275
|
-
throw new
|
|
1277
|
+
throw new UnexpectedCallError('Not supported "onmousedown" property');
|
|
1276
1278
|
}
|
|
1277
1279
|
/**
|
|
1278
1280
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1282,7 +1284,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1282
1284
|
* @implements DOM API: `Element`
|
|
1283
1285
|
*/
|
|
1284
1286
|
get onmouseenter() {
|
|
1285
|
-
throw new
|
|
1287
|
+
throw new UnexpectedCallError('Not supported "onmouseenter" property');
|
|
1286
1288
|
}
|
|
1287
1289
|
/**
|
|
1288
1290
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1292,7 +1294,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1292
1294
|
* @implements DOM API: `Element`
|
|
1293
1295
|
*/
|
|
1294
1296
|
get onmouseleave() {
|
|
1295
|
-
throw new
|
|
1297
|
+
throw new UnexpectedCallError('Not supported "onmouseleave" property');
|
|
1296
1298
|
}
|
|
1297
1299
|
/**
|
|
1298
1300
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1302,7 +1304,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1302
1304
|
* @implements DOM API: `Element`
|
|
1303
1305
|
*/
|
|
1304
1306
|
get onmousemove() {
|
|
1305
|
-
throw new
|
|
1307
|
+
throw new UnexpectedCallError('Not supported "onmousemove" property');
|
|
1306
1308
|
}
|
|
1307
1309
|
/**
|
|
1308
1310
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1312,7 +1314,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1312
1314
|
* @implements DOM API: `Element`
|
|
1313
1315
|
*/
|
|
1314
1316
|
get onmouseout() {
|
|
1315
|
-
throw new
|
|
1317
|
+
throw new UnexpectedCallError('Not supported "onmouseout" property');
|
|
1316
1318
|
}
|
|
1317
1319
|
/**
|
|
1318
1320
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1322,7 +1324,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1322
1324
|
* @implements DOM API: `Element`
|
|
1323
1325
|
*/
|
|
1324
1326
|
get onmouseover() {
|
|
1325
|
-
throw new
|
|
1327
|
+
throw new UnexpectedCallError('Not supported "onmouseover" property');
|
|
1326
1328
|
}
|
|
1327
1329
|
/**
|
|
1328
1330
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1332,7 +1334,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1332
1334
|
* @implements DOM API: `Element`
|
|
1333
1335
|
*/
|
|
1334
1336
|
get onmouseup() {
|
|
1335
|
-
throw new
|
|
1337
|
+
throw new UnexpectedCallError('Not supported "onmouseup" property');
|
|
1336
1338
|
}
|
|
1337
1339
|
/**
|
|
1338
1340
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1342,7 +1344,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1342
1344
|
* @implements DOM API: `Element`
|
|
1343
1345
|
*/
|
|
1344
1346
|
get onpaste() {
|
|
1345
|
-
throw new
|
|
1347
|
+
throw new UnexpectedCallError('Not supported "onpaste" property');
|
|
1346
1348
|
}
|
|
1347
1349
|
/**
|
|
1348
1350
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1352,7 +1354,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1352
1354
|
* @implements DOM API: `Element`
|
|
1353
1355
|
*/
|
|
1354
1356
|
get onpause() {
|
|
1355
|
-
throw new
|
|
1357
|
+
throw new UnexpectedCallError('Not supported "onpause" property');
|
|
1356
1358
|
}
|
|
1357
1359
|
/**
|
|
1358
1360
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1362,7 +1364,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1362
1364
|
* @implements DOM API: `Element`
|
|
1363
1365
|
*/
|
|
1364
1366
|
get onplay() {
|
|
1365
|
-
throw new
|
|
1367
|
+
throw new UnexpectedCallError('Not supported "onplay" property');
|
|
1366
1368
|
}
|
|
1367
1369
|
/**
|
|
1368
1370
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1372,7 +1374,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1372
1374
|
* @implements DOM API: `Element`
|
|
1373
1375
|
*/
|
|
1374
1376
|
get onplaying() {
|
|
1375
|
-
throw new
|
|
1377
|
+
throw new UnexpectedCallError('Not supported "onplaying" property');
|
|
1376
1378
|
}
|
|
1377
1379
|
/**
|
|
1378
1380
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1382,7 +1384,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1382
1384
|
* @implements DOM API: `Element`
|
|
1383
1385
|
*/
|
|
1384
1386
|
get onpointercancel() {
|
|
1385
|
-
throw new
|
|
1387
|
+
throw new UnexpectedCallError('Not supported "onpointercancel" property');
|
|
1386
1388
|
}
|
|
1387
1389
|
/**
|
|
1388
1390
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1392,7 +1394,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1392
1394
|
* @implements DOM API: `Element`
|
|
1393
1395
|
*/
|
|
1394
1396
|
get onpointerdown() {
|
|
1395
|
-
throw new
|
|
1397
|
+
throw new UnexpectedCallError('Not supported "onpointerdown" property');
|
|
1396
1398
|
}
|
|
1397
1399
|
/**
|
|
1398
1400
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1402,7 +1404,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1402
1404
|
* @implements DOM API: `Element`
|
|
1403
1405
|
*/
|
|
1404
1406
|
get onpointerenter() {
|
|
1405
|
-
throw new
|
|
1407
|
+
throw new UnexpectedCallError('Not supported "onpointerenter" property');
|
|
1406
1408
|
}
|
|
1407
1409
|
/**
|
|
1408
1410
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1412,7 +1414,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1412
1414
|
* @implements DOM API: `Element`
|
|
1413
1415
|
*/
|
|
1414
1416
|
get onpointerleave() {
|
|
1415
|
-
throw new
|
|
1417
|
+
throw new UnexpectedCallError('Not supported "onpointerleave" property');
|
|
1416
1418
|
}
|
|
1417
1419
|
/**
|
|
1418
1420
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1422,7 +1424,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1422
1424
|
* @implements DOM API: `Element`
|
|
1423
1425
|
*/
|
|
1424
1426
|
get onpointermove() {
|
|
1425
|
-
throw new
|
|
1427
|
+
throw new UnexpectedCallError('Not supported "onpointermove" property');
|
|
1426
1428
|
}
|
|
1427
1429
|
/**
|
|
1428
1430
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1432,7 +1434,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1432
1434
|
* @implements DOM API: `Element`
|
|
1433
1435
|
*/
|
|
1434
1436
|
get onpointerout() {
|
|
1435
|
-
throw new
|
|
1437
|
+
throw new UnexpectedCallError('Not supported "onpointerout" property');
|
|
1436
1438
|
}
|
|
1437
1439
|
/**
|
|
1438
1440
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1442,7 +1444,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1442
1444
|
* @implements DOM API: `Element`
|
|
1443
1445
|
*/
|
|
1444
1446
|
get onpointerover() {
|
|
1445
|
-
throw new
|
|
1447
|
+
throw new UnexpectedCallError('Not supported "onpointerover" property');
|
|
1446
1448
|
}
|
|
1447
1449
|
/**
|
|
1448
1450
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1452,7 +1454,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1452
1454
|
* @implements DOM API: `Element`
|
|
1453
1455
|
*/
|
|
1454
1456
|
get onpointerup() {
|
|
1455
|
-
throw new
|
|
1457
|
+
throw new UnexpectedCallError('Not supported "onpointerup" property');
|
|
1456
1458
|
}
|
|
1457
1459
|
/**
|
|
1458
1460
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1462,7 +1464,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1462
1464
|
* @implements DOM API: `Element`
|
|
1463
1465
|
*/
|
|
1464
1466
|
get onprogress() {
|
|
1465
|
-
throw new
|
|
1467
|
+
throw new UnexpectedCallError('Not supported "onprogress" property');
|
|
1466
1468
|
}
|
|
1467
1469
|
/**
|
|
1468
1470
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1472,7 +1474,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1472
1474
|
* @implements DOM API: `Element`
|
|
1473
1475
|
*/
|
|
1474
1476
|
get onratechange() {
|
|
1475
|
-
throw new
|
|
1477
|
+
throw new UnexpectedCallError('Not supported "onratechange" property');
|
|
1476
1478
|
}
|
|
1477
1479
|
/**
|
|
1478
1480
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1482,7 +1484,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1482
1484
|
* @implements DOM API: `Element`
|
|
1483
1485
|
*/
|
|
1484
1486
|
get onreset() {
|
|
1485
|
-
throw new
|
|
1487
|
+
throw new UnexpectedCallError('Not supported "onreset" property');
|
|
1486
1488
|
}
|
|
1487
1489
|
/**
|
|
1488
1490
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1492,7 +1494,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1492
1494
|
* @implements DOM API: `Element`
|
|
1493
1495
|
*/
|
|
1494
1496
|
get onresize() {
|
|
1495
|
-
throw new
|
|
1497
|
+
throw new UnexpectedCallError('Not supported "onresize" property');
|
|
1496
1498
|
}
|
|
1497
1499
|
/**
|
|
1498
1500
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1502,7 +1504,10 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1502
1504
|
* @implements DOM API: `Element`
|
|
1503
1505
|
*/
|
|
1504
1506
|
get onscroll() {
|
|
1505
|
-
throw new
|
|
1507
|
+
throw new UnexpectedCallError('Not supported "onscroll" property');
|
|
1508
|
+
}
|
|
1509
|
+
get onscrollend() {
|
|
1510
|
+
throw new UnexpectedCallError('Not supported "onscrollend" property');
|
|
1506
1511
|
}
|
|
1507
1512
|
/**
|
|
1508
1513
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1512,7 +1517,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1512
1517
|
* @implements DOM API: `Element`
|
|
1513
1518
|
*/
|
|
1514
1519
|
get onsecuritypolicyviolation() {
|
|
1515
|
-
throw new
|
|
1520
|
+
throw new UnexpectedCallError('Not supported "onsecuritypolicyviolation" property');
|
|
1516
1521
|
}
|
|
1517
1522
|
/**
|
|
1518
1523
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1522,7 +1527,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1522
1527
|
* @implements DOM API: `Element`
|
|
1523
1528
|
*/
|
|
1524
1529
|
get onseeked() {
|
|
1525
|
-
throw new
|
|
1530
|
+
throw new UnexpectedCallError('Not supported "onseeked" property');
|
|
1526
1531
|
}
|
|
1527
1532
|
/**
|
|
1528
1533
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1532,7 +1537,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1532
1537
|
* @implements DOM API: `Element`
|
|
1533
1538
|
*/
|
|
1534
1539
|
get onseeking() {
|
|
1535
|
-
throw new
|
|
1540
|
+
throw new UnexpectedCallError('Not supported "onseeking" property');
|
|
1536
1541
|
}
|
|
1537
1542
|
/**
|
|
1538
1543
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1542,7 +1547,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1542
1547
|
* @implements DOM API: `Element`
|
|
1543
1548
|
*/
|
|
1544
1549
|
get onselect() {
|
|
1545
|
-
throw new
|
|
1550
|
+
throw new UnexpectedCallError('Not supported "onselect" property');
|
|
1546
1551
|
}
|
|
1547
1552
|
/**
|
|
1548
1553
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1552,7 +1557,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1552
1557
|
* @implements DOM API: `Element`
|
|
1553
1558
|
*/
|
|
1554
1559
|
get onselectionchange() {
|
|
1555
|
-
throw new
|
|
1560
|
+
throw new UnexpectedCallError('Not supported "onselectionchange" property');
|
|
1556
1561
|
}
|
|
1557
1562
|
/**
|
|
1558
1563
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1562,7 +1567,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1562
1567
|
* @implements DOM API: `Element`
|
|
1563
1568
|
*/
|
|
1564
1569
|
get onselectstart() {
|
|
1565
|
-
throw new
|
|
1570
|
+
throw new UnexpectedCallError('Not supported "onselectstart" property');
|
|
1566
1571
|
}
|
|
1567
1572
|
/**
|
|
1568
1573
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1572,7 +1577,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1572
1577
|
* @implements DOM API: `Element`
|
|
1573
1578
|
*/
|
|
1574
1579
|
get onslotchange() {
|
|
1575
|
-
throw new
|
|
1580
|
+
throw new UnexpectedCallError('Not supported "onslotchange" property');
|
|
1576
1581
|
}
|
|
1577
1582
|
/**
|
|
1578
1583
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1582,7 +1587,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1582
1587
|
* @implements DOM API: `Element`
|
|
1583
1588
|
*/
|
|
1584
1589
|
get onstalled() {
|
|
1585
|
-
throw new
|
|
1590
|
+
throw new UnexpectedCallError('Not supported "onstalled" property');
|
|
1586
1591
|
}
|
|
1587
1592
|
/**
|
|
1588
1593
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1592,7 +1597,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1592
1597
|
* @implements DOM API: `Element`
|
|
1593
1598
|
*/
|
|
1594
1599
|
get onsubmit() {
|
|
1595
|
-
throw new
|
|
1600
|
+
throw new UnexpectedCallError('Not supported "onsubmit" property');
|
|
1596
1601
|
}
|
|
1597
1602
|
/**
|
|
1598
1603
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1602,7 +1607,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1602
1607
|
* @implements DOM API: `Element`
|
|
1603
1608
|
*/
|
|
1604
1609
|
get onsuspend() {
|
|
1605
|
-
throw new
|
|
1610
|
+
throw new UnexpectedCallError('Not supported "onsuspend" property');
|
|
1606
1611
|
}
|
|
1607
1612
|
/**
|
|
1608
1613
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1612,7 +1617,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1612
1617
|
* @implements DOM API: `Element`
|
|
1613
1618
|
*/
|
|
1614
1619
|
get ontimeupdate() {
|
|
1615
|
-
throw new
|
|
1620
|
+
throw new UnexpectedCallError('Not supported "ontimeupdate" property');
|
|
1616
1621
|
}
|
|
1617
1622
|
/**
|
|
1618
1623
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1622,7 +1627,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1622
1627
|
* @implements DOM API: `Element`
|
|
1623
1628
|
*/
|
|
1624
1629
|
get ontoggle() {
|
|
1625
|
-
throw new
|
|
1630
|
+
throw new UnexpectedCallError('Not supported "ontoggle" property');
|
|
1626
1631
|
}
|
|
1627
1632
|
/**
|
|
1628
1633
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1632,7 +1637,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1632
1637
|
* @implements DOM API: `Element`
|
|
1633
1638
|
*/
|
|
1634
1639
|
get ontransitioncancel() {
|
|
1635
|
-
throw new
|
|
1640
|
+
throw new UnexpectedCallError('Not supported "ontransitioncancel" property');
|
|
1636
1641
|
}
|
|
1637
1642
|
/**
|
|
1638
1643
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1642,7 +1647,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1642
1647
|
* @implements DOM API: `Element`
|
|
1643
1648
|
*/
|
|
1644
1649
|
get ontransitionend() {
|
|
1645
|
-
throw new
|
|
1650
|
+
throw new UnexpectedCallError('Not supported "ontransitionend" property');
|
|
1646
1651
|
}
|
|
1647
1652
|
/**
|
|
1648
1653
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1652,7 +1657,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1652
1657
|
* @implements DOM API: `Element`
|
|
1653
1658
|
*/
|
|
1654
1659
|
get ontransitionrun() {
|
|
1655
|
-
throw new
|
|
1660
|
+
throw new UnexpectedCallError('Not supported "ontransitionrun" property');
|
|
1656
1661
|
}
|
|
1657
1662
|
/**
|
|
1658
1663
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1662,7 +1667,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1662
1667
|
* @implements DOM API: `Element`
|
|
1663
1668
|
*/
|
|
1664
1669
|
get ontransitionstart() {
|
|
1665
|
-
throw new
|
|
1670
|
+
throw new UnexpectedCallError('Not supported "ontransitionstart" property');
|
|
1666
1671
|
}
|
|
1667
1672
|
/**
|
|
1668
1673
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1672,7 +1677,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1672
1677
|
* @implements DOM API: `Element`
|
|
1673
1678
|
*/
|
|
1674
1679
|
get onvolumechange() {
|
|
1675
|
-
throw new
|
|
1680
|
+
throw new UnexpectedCallError('Not supported "onvolumechange" property');
|
|
1676
1681
|
}
|
|
1677
1682
|
/**
|
|
1678
1683
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1682,7 +1687,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1682
1687
|
* @implements DOM API: `Element`
|
|
1683
1688
|
*/
|
|
1684
1689
|
get onwaiting() {
|
|
1685
|
-
throw new
|
|
1690
|
+
throw new UnexpectedCallError('Not supported "onwaiting" property');
|
|
1686
1691
|
}
|
|
1687
1692
|
/**
|
|
1688
1693
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1692,7 +1697,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1692
1697
|
* @implements DOM API: `Element`
|
|
1693
1698
|
*/
|
|
1694
1699
|
get onwebkitanimationend() {
|
|
1695
|
-
throw new
|
|
1700
|
+
throw new UnexpectedCallError('Not supported "onwebkitanimationend" property');
|
|
1696
1701
|
}
|
|
1697
1702
|
/**
|
|
1698
1703
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1702,7 +1707,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1702
1707
|
* @implements DOM API: `Element`
|
|
1703
1708
|
*/
|
|
1704
1709
|
get onwebkitanimationiteration() {
|
|
1705
|
-
throw new
|
|
1710
|
+
throw new UnexpectedCallError('Not supported "onwebkitanimationiteration" property');
|
|
1706
1711
|
}
|
|
1707
1712
|
/**
|
|
1708
1713
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1712,7 +1717,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1712
1717
|
* @implements DOM API: `Element`
|
|
1713
1718
|
*/
|
|
1714
1719
|
get onwebkitanimationstart() {
|
|
1715
|
-
throw new
|
|
1720
|
+
throw new UnexpectedCallError('Not supported "onwebkitanimationstart" property');
|
|
1716
1721
|
}
|
|
1717
1722
|
/**
|
|
1718
1723
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1722,7 +1727,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1722
1727
|
* @implements DOM API: `Element`
|
|
1723
1728
|
*/
|
|
1724
1729
|
get onwebkittransitionend() {
|
|
1725
|
-
throw new
|
|
1730
|
+
throw new UnexpectedCallError('Not supported "onwebkittransitionend" property');
|
|
1726
1731
|
}
|
|
1727
1732
|
/**
|
|
1728
1733
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1732,7 +1737,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1732
1737
|
* @implements DOM API: `Element`
|
|
1733
1738
|
*/
|
|
1734
1739
|
get onwheel() {
|
|
1735
|
-
throw new
|
|
1740
|
+
throw new UnexpectedCallError('Not supported "onwheel" property');
|
|
1736
1741
|
}
|
|
1737
1742
|
/**
|
|
1738
1743
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1742,7 +1747,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1742
1747
|
* @see https://w3c.github.io/DOM-Parsing/#dom-element-outerhtml
|
|
1743
1748
|
*/
|
|
1744
1749
|
get outerHTML() {
|
|
1745
|
-
throw new
|
|
1750
|
+
throw new UnexpectedCallError('Not supported "outerHTML" property');
|
|
1746
1751
|
}
|
|
1747
1752
|
/**
|
|
1748
1753
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1752,7 +1757,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1752
1757
|
* @implements DOM API: `Element`
|
|
1753
1758
|
*/
|
|
1754
1759
|
get outerText() {
|
|
1755
|
-
throw new
|
|
1760
|
+
throw new UnexpectedCallError('Not supported "outerText" property');
|
|
1756
1761
|
}
|
|
1757
1762
|
/**
|
|
1758
1763
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1762,7 +1767,17 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1762
1767
|
* @see https://www.w3.org/TR/css-shadow-parts-1/#idl
|
|
1763
1768
|
*/
|
|
1764
1769
|
get part() {
|
|
1765
|
-
throw new
|
|
1770
|
+
throw new UnexpectedCallError('Not supported "part" property');
|
|
1771
|
+
}
|
|
1772
|
+
/**
|
|
1773
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1774
|
+
*
|
|
1775
|
+
* @unsupported
|
|
1776
|
+
* @implements DOM API: `Element`
|
|
1777
|
+
* @see https://html.spec.whatwg.org/multipage/popover.html#dom-popover
|
|
1778
|
+
*/
|
|
1779
|
+
get popover() {
|
|
1780
|
+
throw new UnexpectedCallError('Not supported "popover" property');
|
|
1766
1781
|
}
|
|
1767
1782
|
/**
|
|
1768
1783
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1772,7 +1787,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1772
1787
|
* @see https://dom.spec.whatwg.org/#ref-for-dom-element-prefix%E2%91%A0
|
|
1773
1788
|
*/
|
|
1774
1789
|
get prefix() {
|
|
1775
|
-
throw new
|
|
1790
|
+
throw new UnexpectedCallError('Not supported "prefix" property');
|
|
1776
1791
|
}
|
|
1777
1792
|
/**
|
|
1778
1793
|
* The element immediately prior the specified one in its parent's children list.
|
|
@@ -1782,24 +1797,23 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1782
1797
|
* @see https://dom.spec.whatwg.org/#ref-for-dom-nondocumenttypechildnode-previouselementsibling%E2%91%A1
|
|
1783
1798
|
*/
|
|
1784
1799
|
get previousElementSibling() {
|
|
1785
|
-
return
|
|
1800
|
+
return previousElementSibling(this);
|
|
1786
1801
|
}
|
|
1787
1802
|
get raw() {
|
|
1788
|
-
|
|
1789
|
-
if (((_a = this.pretenderContext) === null || _a === void 0 ? void 0 : _a.type) === 'pretender') {
|
|
1803
|
+
if (this.pretenderContext?.type === 'pretender') {
|
|
1790
1804
|
return this.originRaw;
|
|
1791
1805
|
}
|
|
1792
1806
|
let fixed = this.originRaw;
|
|
1793
1807
|
let gap = 0;
|
|
1794
1808
|
if (this.nodeName !== this.fixedNodeName) {
|
|
1795
|
-
fixed =
|
|
1809
|
+
fixed = stringSplice(fixed, __classPrivateFieldGet(this, _MLElement_tagOpenChar, "f").length, this.nodeName.length, this.fixedNodeName);
|
|
1796
1810
|
gap = gap + this.fixedNodeName.length - this.nodeName.length;
|
|
1797
1811
|
}
|
|
1798
1812
|
for (const attr of Array.from(this.attributes)) {
|
|
1799
|
-
const startOffset = (
|
|
1813
|
+
const startOffset = (attr.spacesBeforeName?.startOffset ?? attr.startOffset) - this.startOffset;
|
|
1800
1814
|
const fixedAttr = attr.toString();
|
|
1801
1815
|
if (attr.originRaw !== fixedAttr) {
|
|
1802
|
-
fixed =
|
|
1816
|
+
fixed = stringSplice(fixed, startOffset + gap, attr.originRaw.length, fixedAttr);
|
|
1803
1817
|
gap = gap + fixedAttr.length - attr.originRaw.length;
|
|
1804
1818
|
}
|
|
1805
1819
|
}
|
|
@@ -1819,14 +1833,13 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1819
1833
|
* @see https://w3c.github.io/aria/#ARIAMixin
|
|
1820
1834
|
*/
|
|
1821
1835
|
get role() {
|
|
1822
|
-
throw new
|
|
1836
|
+
throw new UnexpectedCallError('Not supported "role" property');
|
|
1823
1837
|
}
|
|
1824
1838
|
/**
|
|
1825
1839
|
* @implements `@markuplint/ml-core` API: `MLNode`
|
|
1826
1840
|
*/
|
|
1827
1841
|
get rule() {
|
|
1828
|
-
|
|
1829
|
-
if (((_a = this.pretenderContext) === null || _a === void 0 ? void 0 : _a.type) === 'origin') {
|
|
1842
|
+
if (this.pretenderContext?.type === 'origin') {
|
|
1830
1843
|
return this.pretenderContext.origin.rule;
|
|
1831
1844
|
}
|
|
1832
1845
|
return super.rule;
|
|
@@ -1839,7 +1852,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1839
1852
|
* @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-scrollheight-1
|
|
1840
1853
|
*/
|
|
1841
1854
|
get scrollHeight() {
|
|
1842
|
-
throw new
|
|
1855
|
+
throw new UnexpectedCallError('Not supported "scrollHeight" property');
|
|
1843
1856
|
}
|
|
1844
1857
|
/**
|
|
1845
1858
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1849,7 +1862,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1849
1862
|
* @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-scrollleft-1
|
|
1850
1863
|
*/
|
|
1851
1864
|
get scrollLeft() {
|
|
1852
|
-
throw new
|
|
1865
|
+
throw new UnexpectedCallError('Not supported "scrollLeft" property');
|
|
1853
1866
|
}
|
|
1854
1867
|
/**
|
|
1855
1868
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1859,7 +1872,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1859
1872
|
* @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-scrolltop-1
|
|
1860
1873
|
*/
|
|
1861
1874
|
get scrollTop() {
|
|
1862
|
-
throw new
|
|
1875
|
+
throw new UnexpectedCallError('Not supported "scrollTop" property');
|
|
1863
1876
|
}
|
|
1864
1877
|
/**
|
|
1865
1878
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1869,7 +1882,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1869
1882
|
* @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-scrollwidth-1
|
|
1870
1883
|
*/
|
|
1871
1884
|
get scrollWidth() {
|
|
1872
|
-
throw new
|
|
1885
|
+
throw new UnexpectedCallError('Not supported "scrollWidth" property');
|
|
1873
1886
|
}
|
|
1874
1887
|
/**
|
|
1875
1888
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1879,14 +1892,14 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1879
1892
|
* @see https://dom.spec.whatwg.org/#ref-for-dom-element-shadowroot%E2%91%A0
|
|
1880
1893
|
*/
|
|
1881
1894
|
get shadowRoot() {
|
|
1882
|
-
throw new
|
|
1895
|
+
throw new UnexpectedCallError('Not supported "shadowRoot" property');
|
|
1883
1896
|
}
|
|
1884
1897
|
/**
|
|
1885
1898
|
* @implements DOM API: `Element`
|
|
1886
1899
|
* @see https://dom.spec.whatwg.org/#ref-for-dom-element-slot%E2%91%A0
|
|
1887
1900
|
*/
|
|
1888
1901
|
get slot() {
|
|
1889
|
-
return this.getAttribute('slot')
|
|
1902
|
+
return this.getAttribute('slot') ?? '';
|
|
1890
1903
|
}
|
|
1891
1904
|
/**
|
|
1892
1905
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1896,7 +1909,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1896
1909
|
* @implements DOM API: `Element`
|
|
1897
1910
|
*/
|
|
1898
1911
|
get spellcheck() {
|
|
1899
|
-
throw new
|
|
1912
|
+
throw new UnexpectedCallError('Not supported "spellcheck" property');
|
|
1900
1913
|
}
|
|
1901
1914
|
/**
|
|
1902
1915
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1906,7 +1919,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1906
1919
|
* @implements DOM API: `Element`
|
|
1907
1920
|
*/
|
|
1908
1921
|
get style() {
|
|
1909
|
-
throw new
|
|
1922
|
+
throw new UnexpectedCallError('Not supported "style" property');
|
|
1910
1923
|
}
|
|
1911
1924
|
/**
|
|
1912
1925
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1916,7 +1929,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1916
1929
|
* @implements DOM API: `Element`
|
|
1917
1930
|
*/
|
|
1918
1931
|
get tabIndex() {
|
|
1919
|
-
throw new
|
|
1932
|
+
throw new UnexpectedCallError('Not supported "tabIndex" property');
|
|
1920
1933
|
}
|
|
1921
1934
|
/**
|
|
1922
1935
|
* Returns the HTML-uppercased qualified name.
|
|
@@ -1935,15 +1948,14 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1935
1948
|
* @see https://dom.spec.whatwg.org/#ref-for-dom-element-tagname%E2%91%A0
|
|
1936
1949
|
*/
|
|
1937
1950
|
get tagName() {
|
|
1938
|
-
|
|
1939
|
-
if (((_a = this.pretenderContext) === null || _a === void 0 ? void 0 : _a.type) === 'pretender') {
|
|
1951
|
+
if (this.pretenderContext?.type === 'pretender') {
|
|
1940
1952
|
return this.pretenderContext.as.nodeName;
|
|
1941
1953
|
}
|
|
1942
1954
|
return this.nodeName;
|
|
1943
1955
|
}
|
|
1944
1956
|
get textContent() {
|
|
1945
1957
|
return Array.from(this.childNodes)
|
|
1946
|
-
.map(child => child.textContent
|
|
1958
|
+
.map(child => child.textContent ?? '')
|
|
1947
1959
|
.join('');
|
|
1948
1960
|
}
|
|
1949
1961
|
/**
|
|
@@ -1954,7 +1966,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1954
1966
|
* @implements DOM API: `Element`
|
|
1955
1967
|
*/
|
|
1956
1968
|
get title() {
|
|
1957
|
-
throw new
|
|
1969
|
+
throw new UnexpectedCallError('Not supported "title" property');
|
|
1958
1970
|
}
|
|
1959
1971
|
/**
|
|
1960
1972
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1964,13 +1976,15 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1964
1976
|
* @implements DOM API: `Element`
|
|
1965
1977
|
*/
|
|
1966
1978
|
get translate() {
|
|
1967
|
-
throw new
|
|
1979
|
+
throw new UnexpectedCallError('Not supported "translate" property');
|
|
1968
1980
|
}
|
|
1969
1981
|
/**
|
|
1970
1982
|
* @implements DOM API: `Element`
|
|
1971
1983
|
*/
|
|
1972
|
-
after(
|
|
1973
|
-
|
|
1984
|
+
after(
|
|
1985
|
+
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
1986
|
+
...nodes) {
|
|
1987
|
+
after(this, ...nodes);
|
|
1974
1988
|
}
|
|
1975
1989
|
/**
|
|
1976
1990
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1979,8 +1993,12 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1979
1993
|
* @implements DOM API: `Element`
|
|
1980
1994
|
* @see https://www.w3.org/TR/web-animations-1/#dom-animatable-animate
|
|
1981
1995
|
*/
|
|
1982
|
-
animate(
|
|
1983
|
-
|
|
1996
|
+
animate(
|
|
1997
|
+
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
1998
|
+
keyframes,
|
|
1999
|
+
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
2000
|
+
options) {
|
|
2001
|
+
throw new UnexpectedCallError('Not supported "animate" method');
|
|
1984
2002
|
}
|
|
1985
2003
|
/**
|
|
1986
2004
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1990,7 +2008,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1990
2008
|
* @implements DOM API: `Element`
|
|
1991
2009
|
*/
|
|
1992
2010
|
attachInternals() {
|
|
1993
|
-
throw new
|
|
2011
|
+
throw new UnexpectedCallError('Not supported "attachInternals" method');
|
|
1994
2012
|
}
|
|
1995
2013
|
/**
|
|
1996
2014
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -1999,14 +2017,18 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
1999
2017
|
* @implements DOM API: `Element`
|
|
2000
2018
|
* @see https://dom.spec.whatwg.org/#ref-for-dom-element-attachshadow%E2%91%A0
|
|
2001
2019
|
*/
|
|
2002
|
-
attachShadow(
|
|
2003
|
-
|
|
2020
|
+
attachShadow(
|
|
2021
|
+
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
2022
|
+
init) {
|
|
2023
|
+
throw new UnexpectedCallError('Not supported "attachShadow" method');
|
|
2004
2024
|
}
|
|
2005
2025
|
/**
|
|
2006
2026
|
* @implements DOM API: `Element`
|
|
2007
2027
|
*/
|
|
2008
|
-
before(
|
|
2009
|
-
|
|
2028
|
+
before(
|
|
2029
|
+
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
2030
|
+
...nodes) {
|
|
2031
|
+
before(this, ...nodes);
|
|
2010
2032
|
}
|
|
2011
2033
|
/**
|
|
2012
2034
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2016,7 +2038,19 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2016
2038
|
* @implements DOM API: `Element`
|
|
2017
2039
|
*/
|
|
2018
2040
|
blur() {
|
|
2019
|
-
throw new
|
|
2041
|
+
throw new UnexpectedCallError('Not supported "blur" method');
|
|
2042
|
+
}
|
|
2043
|
+
/**
|
|
2044
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
2045
|
+
*
|
|
2046
|
+
* @deprecated
|
|
2047
|
+
* @unsupported
|
|
2048
|
+
* @implements DOM API: `Element`
|
|
2049
|
+
*/
|
|
2050
|
+
checkVisibility(
|
|
2051
|
+
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
2052
|
+
options) {
|
|
2053
|
+
throw new UnexpectedCallError('Not supported "checkVisibility" method');
|
|
2020
2054
|
}
|
|
2021
2055
|
/**
|
|
2022
2056
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2026,7 +2060,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2026
2060
|
* @implements DOM API: `Element`
|
|
2027
2061
|
*/
|
|
2028
2062
|
click() {
|
|
2029
|
-
throw new
|
|
2063
|
+
throw new UnexpectedCallError('Not supported "click" method');
|
|
2030
2064
|
}
|
|
2031
2065
|
/**
|
|
2032
2066
|
* @implements DOM API: `Element`
|
|
@@ -2042,8 +2076,17 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2042
2076
|
} while (el !== null && el.is(el.ELEMENT_NODE));
|
|
2043
2077
|
return null;
|
|
2044
2078
|
}
|
|
2079
|
+
/**
|
|
2080
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
2081
|
+
*
|
|
2082
|
+
* @unsupported
|
|
2083
|
+
* @implements DOM API: `Element`
|
|
2084
|
+
*/
|
|
2085
|
+
computedStyleMap() {
|
|
2086
|
+
throw new UnexpectedCallError('Not supported "computedStyleMap" method');
|
|
2087
|
+
}
|
|
2045
2088
|
fixNodeName(name) {
|
|
2046
|
-
|
|
2089
|
+
__classPrivateFieldSet(this, _MLElement_fixedNodeName, name, "f");
|
|
2047
2090
|
}
|
|
2048
2091
|
/**
|
|
2049
2092
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2052,14 +2095,16 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2052
2095
|
* @unsupported
|
|
2053
2096
|
* @implements DOM API: `Element`
|
|
2054
2097
|
*/
|
|
2055
|
-
focus(
|
|
2056
|
-
|
|
2098
|
+
focus(
|
|
2099
|
+
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
2100
|
+
options) {
|
|
2101
|
+
throw new UnexpectedCallError('Not supported "focus" method');
|
|
2057
2102
|
}
|
|
2058
2103
|
/**
|
|
2059
2104
|
* @implements `@markuplint/ml-core` API: `MLElement`
|
|
2060
2105
|
*/
|
|
2061
2106
|
getAccessibleName(version) {
|
|
2062
|
-
return
|
|
2107
|
+
return getAccname(this, version);
|
|
2063
2108
|
}
|
|
2064
2109
|
/**
|
|
2065
2110
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2068,8 +2113,10 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2068
2113
|
* @implements DOM API: `Element`
|
|
2069
2114
|
* @see https://www.w3.org/TR/web-animations-1/#dom-animatable-getanimations
|
|
2070
2115
|
*/
|
|
2071
|
-
getAnimations(
|
|
2072
|
-
|
|
2116
|
+
getAnimations(
|
|
2117
|
+
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
2118
|
+
options) {
|
|
2119
|
+
throw new UnexpectedCallError('Not supported "getAnimations" method');
|
|
2073
2120
|
}
|
|
2074
2121
|
/**
|
|
2075
2122
|
* @implements DOM API: `Element`
|
|
@@ -2091,7 +2138,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2091
2138
|
* @see https://dom.spec.whatwg.org/#dom-element-getattributenodens
|
|
2092
2139
|
*/
|
|
2093
2140
|
getAttributeNS(namespace, localName) {
|
|
2094
|
-
throw new
|
|
2141
|
+
throw new UnexpectedCallError('Not supported "getAttributeNS" method');
|
|
2095
2142
|
}
|
|
2096
2143
|
/**
|
|
2097
2144
|
* @implements DOM API: `Element`
|
|
@@ -2105,7 +2152,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2105
2152
|
* @see https://dom.spec.whatwg.org/#dom-element-getattributenode
|
|
2106
2153
|
*/
|
|
2107
2154
|
getAttributeNode(qualifiedName) {
|
|
2108
|
-
return this.getAttributeToken(qualifiedName)[0]
|
|
2155
|
+
return this.getAttributeToken(qualifiedName)[0] ?? null;
|
|
2109
2156
|
}
|
|
2110
2157
|
/**
|
|
2111
2158
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2115,13 +2162,13 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2115
2162
|
* @see https://dom.spec.whatwg.org/#dom-element-getattributenodens
|
|
2116
2163
|
*/
|
|
2117
2164
|
getAttributeNodeNS(namespace, localName) {
|
|
2118
|
-
throw new
|
|
2165
|
+
throw new UnexpectedCallError('Not supported "getAttributeNodeNS" method');
|
|
2119
2166
|
}
|
|
2120
2167
|
/**
|
|
2121
2168
|
* @implements `@markuplint/ml-core` API: `MLElement`
|
|
2122
2169
|
*/
|
|
2123
2170
|
getAttributePretended(attrName) {
|
|
2124
|
-
for (const attr of Array.from(
|
|
2171
|
+
for (const attr of Array.from(__classPrivateFieldGet(this, _MLElement_attributes, "f"))) {
|
|
2125
2172
|
if (attr.name.toLowerCase() === attrName.toLowerCase()) {
|
|
2126
2173
|
return attr.value;
|
|
2127
2174
|
}
|
|
@@ -2145,8 +2192,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2145
2192
|
* @implements `@markuplint/ml-core` API: `MLElement`
|
|
2146
2193
|
*/
|
|
2147
2194
|
getAttributeTokens() {
|
|
2148
|
-
|
|
2149
|
-
return Object.freeze(((_a = this.pretenderContext) === null || _a === void 0 ? void 0 : _a.type) === 'pretender' ? tslib_1.__classPrivateFieldGet(this.pretenderContext.as, _MLElement_attributes, "f") : tslib_1.__classPrivateFieldGet(this, _MLElement_attributes, "f"));
|
|
2195
|
+
return Object.freeze(this.pretenderContext?.type === 'pretender' ? __classPrivateFieldGet(this.pretenderContext.as, _MLElement_attributes, "f") : __classPrivateFieldGet(this, _MLElement_attributes, "f"));
|
|
2150
2196
|
}
|
|
2151
2197
|
/**
|
|
2152
2198
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2156,11 +2202,11 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2156
2202
|
* @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-getboundingclientrect-1
|
|
2157
2203
|
*/
|
|
2158
2204
|
getBoundingClientRect() {
|
|
2159
|
-
throw new
|
|
2205
|
+
throw new UnexpectedCallError('Not supported "getBoundingClientRect" method');
|
|
2160
2206
|
}
|
|
2161
2207
|
getChildElementsAndTextNodeWithoutWhitespaces() {
|
|
2162
|
-
if (
|
|
2163
|
-
return
|
|
2208
|
+
if (__classPrivateFieldGet(this, _MLElement_getChildElementsAndTextNodeWithoutWhitespacesCache, "f")) {
|
|
2209
|
+
return __classPrivateFieldGet(this, _MLElement_getChildElementsAndTextNodeWithoutWhitespacesCache, "f");
|
|
2164
2210
|
}
|
|
2165
2211
|
const filteredNodes = [];
|
|
2166
2212
|
this.childNodes.forEach(node => {
|
|
@@ -2177,7 +2223,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2177
2223
|
filteredNodes.push(node);
|
|
2178
2224
|
}
|
|
2179
2225
|
});
|
|
2180
|
-
|
|
2226
|
+
__classPrivateFieldSet(this, _MLElement_getChildElementsAndTextNodeWithoutWhitespacesCache, filteredNodes, "f");
|
|
2181
2227
|
return filteredNodes;
|
|
2182
2228
|
}
|
|
2183
2229
|
/**
|
|
@@ -2188,14 +2234,14 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2188
2234
|
* @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-getclientrects-1
|
|
2189
2235
|
*/
|
|
2190
2236
|
getClientRects() {
|
|
2191
|
-
throw new
|
|
2237
|
+
throw new UnexpectedCallError('Not supported "getClientRects" method');
|
|
2192
2238
|
}
|
|
2193
2239
|
/**
|
|
2194
2240
|
* @implements DOM API: `Element`
|
|
2195
2241
|
* @see https://dom.spec.whatwg.org/#ref-for-dom-element-getelementsbyclassname
|
|
2196
2242
|
*/
|
|
2197
2243
|
getElementsByClassName(classNames) {
|
|
2198
|
-
return
|
|
2244
|
+
return toHTMLCollection(this._descendantsToArray(node => {
|
|
2199
2245
|
if (node.is(node.ELEMENT_NODE) && node.classList.contains(classNames)) {
|
|
2200
2246
|
return node;
|
|
2201
2247
|
}
|
|
@@ -2206,7 +2252,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2206
2252
|
* @see https://dom.spec.whatwg.org/#ref-for-dom-element-getelementsbyclassname
|
|
2207
2253
|
*/
|
|
2208
2254
|
getElementsByTagName(qualifiedName) {
|
|
2209
|
-
return
|
|
2255
|
+
return toHTMLCollection(this._descendantsToArray(node => {
|
|
2210
2256
|
if (node.is(node.ELEMENT_NODE) && node.nodeName.toLowerCase() === qualifiedName.toLowerCase()) {
|
|
2211
2257
|
return node;
|
|
2212
2258
|
}
|
|
@@ -2220,7 +2266,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2220
2266
|
* @see https://dom.spec.whatwg.org/#dom-element-getelementsbytagnamens
|
|
2221
2267
|
*/
|
|
2222
2268
|
getElementsByTagNameNS(namespace, localName) {
|
|
2223
|
-
throw new
|
|
2269
|
+
throw new UnexpectedCallError('Not supported "getElementsByTagNameNS" method');
|
|
2224
2270
|
}
|
|
2225
2271
|
/**
|
|
2226
2272
|
* @implements `@markuplint/ml-core` API: `MLElement`
|
|
@@ -2229,7 +2275,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2229
2275
|
return {
|
|
2230
2276
|
offset: this.startOffset,
|
|
2231
2277
|
line: this.startLine,
|
|
2232
|
-
col: this.startCol +
|
|
2278
|
+
col: this.startCol + __classPrivateFieldGet(this, _MLElement_tagOpenChar, "f").length,
|
|
2233
2279
|
};
|
|
2234
2280
|
}
|
|
2235
2281
|
/**
|
|
@@ -2247,14 +2293,14 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2247
2293
|
* @see https://dom.spec.whatwg.org/#ref-for-dom-element-hasattributens%E2%91%A0
|
|
2248
2294
|
*/
|
|
2249
2295
|
hasAttributeNS(namespace, localName) {
|
|
2250
|
-
throw new
|
|
2296
|
+
throw new UnexpectedCallError('Not supported "hasAttributeNS" method');
|
|
2251
2297
|
}
|
|
2252
2298
|
/**
|
|
2253
2299
|
* @implements DOM API: `Element`
|
|
2254
2300
|
* @see https://dom.spec.whatwg.org/#dom-element-hasattributes
|
|
2255
2301
|
*/
|
|
2256
2302
|
hasAttributes() {
|
|
2257
|
-
return
|
|
2303
|
+
return this.attributes.length > 0;
|
|
2258
2304
|
}
|
|
2259
2305
|
/**
|
|
2260
2306
|
* @implements `@markuplint/ml-core` API: `MLElement`
|
|
@@ -2284,7 +2330,10 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2284
2330
|
if (attr && child.hasMutableAttributes()) {
|
|
2285
2331
|
return true;
|
|
2286
2332
|
}
|
|
2287
|
-
if (child.hasMutableChildren()) {
|
|
2333
|
+
if (child.hasMutableChildren(attr)) {
|
|
2334
|
+
return true;
|
|
2335
|
+
}
|
|
2336
|
+
if (child.localName === 'slot') {
|
|
2288
2337
|
return true;
|
|
2289
2338
|
}
|
|
2290
2339
|
}
|
|
@@ -2299,7 +2348,17 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2299
2348
|
* @see https://www.w3.org/TR/pointerevents2/#dom-element-haspointercapture
|
|
2300
2349
|
*/
|
|
2301
2350
|
hasPointerCapture(pointerId) {
|
|
2302
|
-
throw new
|
|
2351
|
+
throw new UnexpectedCallError('Not supported "hasPointerCapture" method');
|
|
2352
|
+
}
|
|
2353
|
+
/**
|
|
2354
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
2355
|
+
*
|
|
2356
|
+
* @unsupported
|
|
2357
|
+
* @implements DOM API: `Element`
|
|
2358
|
+
* @see https://html.spec.whatwg.org/multipage/popover.html#dom-hidepopover
|
|
2359
|
+
*/
|
|
2360
|
+
hidePopover() {
|
|
2361
|
+
throw new UnexpectedCallError('Not supported "hidePopover" method');
|
|
2303
2362
|
}
|
|
2304
2363
|
/**
|
|
2305
2364
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2308,9 +2367,11 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2308
2367
|
* @implements DOM API: `Element`
|
|
2309
2368
|
* @see https://dom.spec.whatwg.org/#dom-element-insertadjacentelement
|
|
2310
2369
|
*/
|
|
2311
|
-
insertAdjacentElement(where,
|
|
2370
|
+
insertAdjacentElement(where,
|
|
2371
|
+
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
2372
|
+
element) {
|
|
2312
2373
|
// TODO:
|
|
2313
|
-
throw new
|
|
2374
|
+
throw new UnexpectedCallError('Does not implement "insertAdjacentElement" method yet');
|
|
2314
2375
|
}
|
|
2315
2376
|
/**
|
|
2316
2377
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2321,7 +2382,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2321
2382
|
*/
|
|
2322
2383
|
insertAdjacentHTML(position, text) {
|
|
2323
2384
|
// TODO:
|
|
2324
|
-
throw new
|
|
2385
|
+
throw new UnexpectedCallError('Does not implement "insertAdjacentHTML" method yet');
|
|
2325
2386
|
}
|
|
2326
2387
|
/**
|
|
2327
2388
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2332,7 +2393,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2332
2393
|
*/
|
|
2333
2394
|
insertAdjacentText(where, data) {
|
|
2334
2395
|
// TODO:
|
|
2335
|
-
throw new
|
|
2396
|
+
throw new UnexpectedCallError('Does not implement "insertAdjacentText" method yet');
|
|
2336
2397
|
}
|
|
2337
2398
|
/**
|
|
2338
2399
|
* @implements `@markuplint/ml-core` API: `MLElement`
|
|
@@ -2354,9 +2415,8 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2354
2415
|
* @implements `@markuplint/ml-core` API: `MLElement`
|
|
2355
2416
|
*/
|
|
2356
2417
|
isEmpty() {
|
|
2357
|
-
var _a;
|
|
2358
2418
|
for (const childNode of Array.from(this.childNodes)) {
|
|
2359
|
-
if (!(childNode.is(childNode.TEXT_NODE) &&
|
|
2419
|
+
if (!(childNode.is(childNode.TEXT_NODE) && childNode.textContent?.trim() === '')) {
|
|
2360
2420
|
return false;
|
|
2361
2421
|
}
|
|
2362
2422
|
}
|
|
@@ -2367,16 +2427,15 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2367
2427
|
* @see https://dom.spec.whatwg.org/#ref-for-dom-element-matches%E2%91%A0
|
|
2368
2428
|
*/
|
|
2369
2429
|
matches(selector) {
|
|
2370
|
-
|
|
2371
|
-
return !!(0, selector_1.createSelector)(selector, this.ownerMLDocument.specs).match(
|
|
2430
|
+
return (createSelector(selector, this.ownerMLDocument.specs).match(
|
|
2372
2431
|
// Prioritize the pretender
|
|
2373
|
-
|
|
2432
|
+
this.pretenderContext?.type === 'pretender' ? this.pretenderContext.as : this) !== false);
|
|
2374
2433
|
}
|
|
2375
2434
|
/**
|
|
2376
2435
|
* Pretenders Initialization
|
|
2377
2436
|
*/
|
|
2378
2437
|
pretending(pretenders) {
|
|
2379
|
-
const pretenderConfig = pretenders
|
|
2438
|
+
const pretenderConfig = pretenders?.find(option => this.matches(option.selector));
|
|
2380
2439
|
if (!pretenderConfig) {
|
|
2381
2440
|
return;
|
|
2382
2441
|
}
|
|
@@ -2389,16 +2448,16 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2389
2448
|
}
|
|
2390
2449
|
else {
|
|
2391
2450
|
nodeName = pretenderConfig.as.element;
|
|
2392
|
-
namespace = pretenderConfig.as.namespace
|
|
2451
|
+
namespace = pretenderConfig.as.namespace ?? namespace;
|
|
2393
2452
|
if (pretenderConfig.as.inheritAttrs) {
|
|
2394
2453
|
attributes.push(...this._astToken.attributes);
|
|
2395
2454
|
}
|
|
2396
2455
|
if (pretenderConfig.as.attrs) {
|
|
2397
2456
|
attributes.push(...pretenderConfig.as.attrs.map(({ name, value }, i) => {
|
|
2398
|
-
const _value = value
|
|
2457
|
+
const _value = value != null
|
|
2399
2458
|
? typeof value === 'string'
|
|
2400
2459
|
? value
|
|
2401
|
-
: this.getAttribute(value.fromAttr)
|
|
2460
|
+
: this.getAttribute(value.fromAttr) ?? ''
|
|
2402
2461
|
: '';
|
|
2403
2462
|
return {
|
|
2404
2463
|
...this._astToken,
|
|
@@ -2476,13 +2535,13 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2476
2535
|
* @see https://www.w3.org/TR/pointerevents2/#dom-element-releasepointercapture
|
|
2477
2536
|
*/
|
|
2478
2537
|
releasePointerCapture(pointerId) {
|
|
2479
|
-
throw new
|
|
2538
|
+
throw new UnexpectedCallError('Not supported "releasePointerCapture" method');
|
|
2480
2539
|
}
|
|
2481
2540
|
/**
|
|
2482
2541
|
* @implements DOM API: `Element`
|
|
2483
2542
|
*/
|
|
2484
2543
|
remove() {
|
|
2485
|
-
|
|
2544
|
+
remove(this);
|
|
2486
2545
|
}
|
|
2487
2546
|
/**
|
|
2488
2547
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2492,7 +2551,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2492
2551
|
* @see https://dom.spec.whatwg.org/#dom-element-removeattribute
|
|
2493
2552
|
*/
|
|
2494
2553
|
removeAttribute(qualifiedName) {
|
|
2495
|
-
throw new
|
|
2554
|
+
throw new UnexpectedCallError('Not supported "removeAttribute" method');
|
|
2496
2555
|
}
|
|
2497
2556
|
/**
|
|
2498
2557
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2502,7 +2561,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2502
2561
|
* @see https://dom.spec.whatwg.org/#ref-for-dom-element-removeattributens%E2%91%A0
|
|
2503
2562
|
*/
|
|
2504
2563
|
removeAttributeNS(namespace, localName) {
|
|
2505
|
-
throw new
|
|
2564
|
+
throw new UnexpectedCallError('Not supported "removeAttributeNS" method');
|
|
2506
2565
|
}
|
|
2507
2566
|
/**
|
|
2508
2567
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2511,14 +2570,18 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2511
2570
|
* @implements DOM API: `Element`
|
|
2512
2571
|
* @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-D589198
|
|
2513
2572
|
*/
|
|
2514
|
-
removeAttributeNode(
|
|
2515
|
-
|
|
2573
|
+
removeAttributeNode(
|
|
2574
|
+
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
2575
|
+
attr) {
|
|
2576
|
+
throw new UnexpectedCallError('Not supported "removeAttributeNode" method');
|
|
2516
2577
|
}
|
|
2517
2578
|
/**
|
|
2518
2579
|
* @implements DOM API: `Element`
|
|
2519
2580
|
*/
|
|
2520
|
-
replaceWith(
|
|
2521
|
-
|
|
2581
|
+
replaceWith(
|
|
2582
|
+
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
2583
|
+
...nodes) {
|
|
2584
|
+
replaceWith(this, ...nodes);
|
|
2522
2585
|
}
|
|
2523
2586
|
/**
|
|
2524
2587
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2527,8 +2590,10 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2527
2590
|
* @implements DOM API: `Element`
|
|
2528
2591
|
* @see https://fullscreen.spec.whatwg.org/#dom-element-requestfullscreen
|
|
2529
2592
|
*/
|
|
2530
|
-
requestFullscreen(
|
|
2531
|
-
|
|
2593
|
+
requestFullscreen(
|
|
2594
|
+
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
2595
|
+
options) {
|
|
2596
|
+
throw new UnexpectedCallError('Not supported "requestFullscreen" method');
|
|
2532
2597
|
}
|
|
2533
2598
|
/**
|
|
2534
2599
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2538,7 +2603,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2538
2603
|
* @see https://w3c.github.io/pointerlock/#dom-element-requestpointerlock
|
|
2539
2604
|
*/
|
|
2540
2605
|
requestPointerLock() {
|
|
2541
|
-
throw new
|
|
2606
|
+
throw new UnexpectedCallError('Not supported "requestPointerLock" method');
|
|
2542
2607
|
}
|
|
2543
2608
|
/**
|
|
2544
2609
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2548,7 +2613,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2548
2613
|
* @see https://www.w3.org/TR/cssom-view-1/#dom-element-scroll
|
|
2549
2614
|
*/
|
|
2550
2615
|
scroll(x, y) {
|
|
2551
|
-
throw new
|
|
2616
|
+
throw new UnexpectedCallError('Not supported "scroll" method');
|
|
2552
2617
|
}
|
|
2553
2618
|
/**
|
|
2554
2619
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2558,7 +2623,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2558
2623
|
* @see https://www.w3.org/TR/cssom-view-1/#dom-element-scrollby
|
|
2559
2624
|
*/
|
|
2560
2625
|
scrollBy(x, y) {
|
|
2561
|
-
throw new
|
|
2626
|
+
throw new UnexpectedCallError('Not supported "scrollBy" method');
|
|
2562
2627
|
}
|
|
2563
2628
|
/**
|
|
2564
2629
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2567,8 +2632,10 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2567
2632
|
* @implements DOM API: `Element`
|
|
2568
2633
|
* @see https://www.w3.org/TR/cssom-view-1/#dom-element-scrollintoview
|
|
2569
2634
|
*/
|
|
2570
|
-
scrollIntoView(
|
|
2571
|
-
|
|
2635
|
+
scrollIntoView(
|
|
2636
|
+
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
2637
|
+
arg) {
|
|
2638
|
+
throw new UnexpectedCallError('Not supported "scrollIntoView" method');
|
|
2572
2639
|
}
|
|
2573
2640
|
/**
|
|
2574
2641
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2578,7 +2645,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2578
2645
|
* @see https://www.w3.org/TR/cssom-view-1/#dom-element-scrollto
|
|
2579
2646
|
*/
|
|
2580
2647
|
scrollTo(x, y) {
|
|
2581
|
-
throw new
|
|
2648
|
+
throw new UnexpectedCallError('Not supported "scrollTo" method');
|
|
2582
2649
|
}
|
|
2583
2650
|
/**
|
|
2584
2651
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2588,7 +2655,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2588
2655
|
* @see https://dom.spec.whatwg.org/#ref-for-dom-element-setattribute%E2%91%A0
|
|
2589
2656
|
*/
|
|
2590
2657
|
setAttribute(qualifiedName, value) {
|
|
2591
|
-
throw new
|
|
2658
|
+
throw new UnexpectedCallError('Not supported "setAttribute" method');
|
|
2592
2659
|
}
|
|
2593
2660
|
/**
|
|
2594
2661
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2598,7 +2665,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2598
2665
|
* @see https://dom.spec.whatwg.org/#ref-for-dom-element-setattributens%E2%91%A0
|
|
2599
2666
|
*/
|
|
2600
2667
|
setAttributeNS(namespace, qualifiedName, value) {
|
|
2601
|
-
throw new
|
|
2668
|
+
throw new UnexpectedCallError('Not supported "setAttributeNS" method');
|
|
2602
2669
|
}
|
|
2603
2670
|
/**
|
|
2604
2671
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2607,8 +2674,10 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2607
2674
|
* @implements DOM API: `Element`
|
|
2608
2675
|
* @see https://dom.spec.whatwg.org/#dom-element-setattributenode
|
|
2609
2676
|
*/
|
|
2610
|
-
setAttributeNode(
|
|
2611
|
-
|
|
2677
|
+
setAttributeNode(
|
|
2678
|
+
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
2679
|
+
attr) {
|
|
2680
|
+
throw new UnexpectedCallError('Not supported "setAttributeNode" method');
|
|
2612
2681
|
}
|
|
2613
2682
|
/**
|
|
2614
2683
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2617,8 +2686,10 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2617
2686
|
* @implements DOM API: `Element`
|
|
2618
2687
|
* @see https://dom.spec.whatwg.org/#dom-element-setattributenodens
|
|
2619
2688
|
*/
|
|
2620
|
-
setAttributeNodeNS(
|
|
2621
|
-
|
|
2689
|
+
setAttributeNodeNS(
|
|
2690
|
+
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
2691
|
+
attr) {
|
|
2692
|
+
throw new UnexpectedCallError('Not supported "setAttributeNodeNS" method');
|
|
2622
2693
|
}
|
|
2623
2694
|
/**
|
|
2624
2695
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2628,18 +2699,28 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2628
2699
|
* @see https://www.w3.org/TR/pointerevents2/#idl-def-element-setpointercapture-pointerid
|
|
2629
2700
|
*/
|
|
2630
2701
|
setPointerCapture(pointerId) {
|
|
2631
|
-
throw new
|
|
2702
|
+
throw new UnexpectedCallError('Not supported "setPointerCapture" method');
|
|
2703
|
+
}
|
|
2704
|
+
/**
|
|
2705
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
2706
|
+
*
|
|
2707
|
+
* @unsupported
|
|
2708
|
+
* @implements DOM API: `Element`
|
|
2709
|
+
* @see https://html.spec.whatwg.org/multipage/popover.html#dom-showpopover
|
|
2710
|
+
*/
|
|
2711
|
+
showPopover() {
|
|
2712
|
+
throw new UnexpectedCallError('Not supported "showPopover" method');
|
|
2632
2713
|
}
|
|
2633
2714
|
/**
|
|
2634
2715
|
* @implements `@markuplint/ml-core` API: `MLElement`
|
|
2635
2716
|
*/
|
|
2636
2717
|
toNormalizeString() {
|
|
2637
|
-
if (
|
|
2638
|
-
return
|
|
2718
|
+
if (__classPrivateFieldGet(this, _MLElement_normalizedString, "f")) {
|
|
2719
|
+
return __classPrivateFieldGet(this, _MLElement_normalizedString, "f");
|
|
2639
2720
|
}
|
|
2640
2721
|
const children = this.getChildElementsAndTextNodeWithoutWhitespaces();
|
|
2641
2722
|
const attrs = this.attributes.map(attr => attr.toNormalizeString());
|
|
2642
|
-
const attrString = attrs.length ? ' ' + attrs.join('') : '';
|
|
2723
|
+
const attrString = attrs.length > 0 ? ' ' + attrs.join('') : '';
|
|
2643
2724
|
const startTag = `<${this.nodeName}${attrString}>`;
|
|
2644
2725
|
const childNodes = children.map(node => {
|
|
2645
2726
|
if (node.is(node.ELEMENT_NODE)) {
|
|
@@ -2649,7 +2730,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2649
2730
|
});
|
|
2650
2731
|
const endTag = `</${this.nodeName}>`;
|
|
2651
2732
|
const normalizedString = `${startTag}${childNodes.join('')}${endTag}`;
|
|
2652
|
-
|
|
2733
|
+
__classPrivateFieldSet(this, _MLElement_normalizedString, normalizedString, "f");
|
|
2653
2734
|
return normalizedString;
|
|
2654
2735
|
}
|
|
2655
2736
|
/**
|
|
@@ -2666,7 +2747,17 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2666
2747
|
* @see https://dom.spec.whatwg.org/#ref-for-dom-element-toggleattribute%E2%91%A0
|
|
2667
2748
|
*/
|
|
2668
2749
|
toggleAttribute(qualifiedName, force) {
|
|
2669
|
-
throw new
|
|
2750
|
+
throw new UnexpectedCallError('Not supported "toggleAttribute" method');
|
|
2751
|
+
}
|
|
2752
|
+
/**
|
|
2753
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
2754
|
+
*
|
|
2755
|
+
* @unsupported
|
|
2756
|
+
* @implements DOM API: `Element`
|
|
2757
|
+
* @see https://html.spec.whatwg.org/multipage/popover.html#dom-togglepopover
|
|
2758
|
+
*/
|
|
2759
|
+
togglePopover(force) {
|
|
2760
|
+
throw new UnexpectedCallError('Not supported "togglePopover" method');
|
|
2670
2761
|
}
|
|
2671
2762
|
/**
|
|
2672
2763
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
@@ -2676,8 +2767,7 @@ class MLElement extends parent_node_1.MLParentNode {
|
|
|
2676
2767
|
* @implements DOM API: `Element`
|
|
2677
2768
|
*/
|
|
2678
2769
|
webkitMatchesSelector(selectors) {
|
|
2679
|
-
throw new
|
|
2770
|
+
throw new UnexpectedCallError('Not supported "webkitMatchesSelector" method');
|
|
2680
2771
|
}
|
|
2681
2772
|
}
|
|
2682
|
-
exports.MLElement = MLElement;
|
|
2683
2773
|
_MLElement_attributes = new WeakMap(), _MLElement_fixedNodeName = new WeakMap(), _MLElement_getChildElementsAndTextNodeWithoutWhitespacesCache = new WeakMap(), _MLElement_localName = new WeakMap(), _MLElement_normalizedAttrs = new WeakMap(), _MLElement_normalizedString = new WeakMap(), _MLElement_tagOpenChar = new WeakMap();
|