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