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