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

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