@markuplint/ml-core 2.3.0 → 3.0.0-alpha.66

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