@markuplint/ml-core 3.11.0 → 4.0.0-alpha.1

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