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