@markuplint/ml-core 3.0.0-dev.25 → 3.0.0-dev.290

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 -31
  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 +13 -12
  7. package/lib/index.js +13 -29
  8. package/lib/ml-core.d.ts +7 -7
  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 +23 -19
  12. package/lib/ml-dom/helper/create-node.d.ts +4 -4
  13. package/lib/ml-dom/helper/create-node.js +13 -15
  14. package/lib/ml-dom/helper/debug.d.ts +1 -1
  15. package/lib/ml-dom/helper/debug.js +8 -8
  16. package/lib/ml-dom/helper/getIndent.d.ts +2 -2
  17. package/lib/ml-dom/helper/getIndent.js +30 -28
  18. package/lib/ml-dom/helper/walkers.d.ts +6 -6
  19. package/lib/ml-dom/helper/walkers.js +23 -22
  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 +9 -9
  23. package/lib/ml-dom/manipulations/child-node-methods.js +31 -25
  24. package/lib/ml-dom/manipulations/get-children.d.ts +4 -4
  25. package/lib/ml-dom/manipulations/get-children.js +5 -7
  26. package/lib/ml-dom/node/attr.d.ts +7 -7
  27. package/lib/ml-dom/node/attr.js +33 -34
  28. package/lib/ml-dom/node/block.d.ts +6 -6
  29. package/lib/ml-dom/node/block.js +21 -15
  30. package/lib/ml-dom/node/character-data.d.ts +4 -4
  31. package/lib/ml-dom/node/character-data.js +20 -19
  32. package/lib/ml-dom/node/child-node.d.ts +9 -9
  33. package/lib/ml-dom/node/child-node.js +3 -5
  34. package/lib/ml-dom/node/comment.d.ts +4 -4
  35. package/lib/ml-dom/node/comment.js +2 -6
  36. package/lib/ml-dom/node/document-fragment.d.ts +4 -4
  37. package/lib/ml-dom/node/document-fragment.js +4 -9
  38. package/lib/ml-dom/node/document-type.d.ts +6 -6
  39. package/lib/ml-dom/node/document-type.js +21 -15
  40. package/lib/ml-dom/node/document.d.ts +32 -29
  41. package/lib/ml-dom/node/document.js +329 -246
  42. package/lib/ml-dom/node/dom-token-list.d.ts +3 -3
  43. package/lib/ml-dom/node/dom-token-list.js +29 -33
  44. package/lib/ml-dom/node/element.d.ts +65 -16
  45. package/lib/ml-dom/node/element.js +396 -306
  46. package/lib/ml-dom/node/named-node-map.d.ts +4 -4
  47. package/lib/ml-dom/node/named-node-map.js +18 -18
  48. package/lib/ml-dom/node/node-list.d.ts +6 -6
  49. package/lib/ml-dom/node/node-list.js +25 -13
  50. package/lib/ml-dom/node/node-store.d.ts +5 -5
  51. package/lib/ml-dom/node/node-store.js +25 -10
  52. package/lib/ml-dom/node/node.d.ts +12 -12
  53. package/lib/ml-dom/node/node.js +101 -76
  54. package/lib/ml-dom/node/parent-node.d.ts +6 -6
  55. package/lib/ml-dom/node/parent-node.js +31 -29
  56. package/lib/ml-dom/node/rule-mapper.d.ts +5 -5
  57. package/lib/ml-dom/node/rule-mapper.js +20 -17
  58. package/lib/ml-dom/node/text.d.ts +4 -4
  59. package/lib/ml-dom/node/text.js +6 -11
  60. package/lib/ml-dom/node/types.d.ts +30 -16
  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 +3 -3
  65. package/lib/ml-rule/create-rule.js +1 -5
  66. package/lib/ml-rule/create-test-rule.d.ts +5 -5
  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 +4 -4
  71. package/lib/ml-rule/ml-rule-context.js +11 -13
  72. package/lib/ml-rule/ml-rule.d.ts +9 -9
  73. package/lib/ml-rule/ml-rule.js +48 -45
  74. package/lib/ml-rule/types.d.ts +12 -12
  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 +2 -2
  79. package/lib/plugin/plugin.js +1 -5
  80. package/lib/plugin/types.d.ts +6 -6
  81. package/lib/plugin/types.js +1 -2
  82. package/lib/ruleset/index.d.ts +3 -3
  83. package/lib/ruleset/index.js +4 -8
  84. package/lib/test/index.d.ts +9 -9
  85. package/lib/test/index.js +14 -24
  86. package/lib/types.d.ts +11 -10
  87. package/lib/types.js +1 -2
  88. package/lib/utils/get-location-from-chars.d.ts +1 -1
  89. package/lib/utils/get-location-from-chars.js +1 -5
  90. package/lib/utils/index.d.ts +1 -1
  91. package/lib/utils/index.js +1 -5
  92. package/lib/utils/string-splice.js +1 -5
  93. package/package.json +25 -16
  94. package/tsconfig.test.json +0 -3
  95. package/tsconfig.tsbuildinfo +0 -1
@@ -1,30 +1,29 @@
1
- "use strict";
2
1
  var _MLDocument_filename, _MLDocument_tokenList;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.MLDocument = void 0;
5
- const tslib_1 = require("tslib");
6
- const ml_config_1 = require("@markuplint/ml-config");
7
- const ml_spec_1 = require("@markuplint/ml-spec");
8
- const selector_1 = require("@markuplint/selector");
9
- const debug_1 = require("../../debug");
10
- const create_node_1 = require("../helper/create-node");
11
- const debug_2 = require("../helper/debug");
12
- const walkers_1 = require("../helper/walkers");
13
- const node_list_1 = require("./node-list");
14
- const parent_node_1 = require("./parent-node");
15
- const rule_mapper_1 = require("./rule-mapper");
16
- const unexpected_call_error_1 = tslib_1.__importDefault(require("./unexpected-call-error"));
17
- const log = debug_1.log.extend('ml-dom');
2
+ import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
3
+ import { exchangeValueOnRule, mergeRule } from '@markuplint/ml-config';
4
+ import { schemaToSpec, getAccname, getComputedRole, mayBeFocusable, getComputedAriaProps, isExposed, ARIA_RECOMMENDED_VERSION, } from '@markuplint/ml-spec';
5
+ import { ConfigParserError } from '@markuplint/parser-utils';
6
+ import { InvalidSelectorError, matchSelector } from '@markuplint/selector';
7
+ import { log as coreLog } from '../../debug.js';
8
+ import { createNode } from '../helper/create-node.js';
9
+ import { nodeListToDebugMaps } from '../helper/debug.js';
10
+ import { sequentialWalker, syncWalk } from '../helper/walkers.js';
11
+ import { nodeListToHTMLCollection } from './node-list.js';
12
+ import { MLParentNode } from './parent-node.js';
13
+ import { RuleMapper } from './rule-mapper.js';
14
+ import UnexpectedCallError from './unexpected-call-error.js';
15
+ const log = coreLog.extend('ml-dom');
18
16
  const docLog = log.extend('document');
19
17
  const ruleLog = docLog.extend('rule');
20
- class MLDocument extends parent_node_1.MLParentNode {
18
+ export class MLDocument extends MLParentNode {
21
19
  /**
22
20
  *
23
21
  * @param ast node list of markuplint AST
24
22
  * @param ruleset ruleset object
25
23
  */
26
- constructor(ast, ruleset, schemas, options) {
27
- var _a;
24
+ constructor(
25
+ // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
26
+ ast, ruleset, schemas, options) {
28
27
  // @ts-ignore
29
28
  super(ast, null);
30
29
  /**
@@ -37,21 +36,31 @@ class MLDocument extends parent_node_1.MLParentNode {
37
36
  _MLDocument_filename.set(this, void 0);
38
37
  _MLDocument_tokenList.set(this, null);
39
38
  this.isFragment = ast.isFragment;
40
- this.specs = (0, ml_spec_1.schemaToSpec)(schemas);
41
- this.booleanish = (options === null || options === void 0 ? void 0 : options.booleanish) || false;
42
- this.endTag = (_a = options === null || options === void 0 ? void 0 : options.endTag) !== null && _a !== void 0 ? _a : 'omittable';
43
- tslib_1.__classPrivateFieldSet(this, _MLDocument_filename, options === null || options === void 0 ? void 0 : options.filename, "f");
39
+ this.specs = schemaToSpec(schemas);
40
+ this.booleanish = options?.booleanish ?? false;
41
+ this.endTag = options?.endTag ?? 'omittable';
42
+ __classPrivateFieldSet(this, _MLDocument_filename, options?.filename, "f");
44
43
  // console.log(ast.nodeList.map((n, i) => `${i}: ${n.uuid} "${n.raw.trim()}"(${n.type})`));
45
44
  this.nodeList = Object.freeze(ast.nodeList
46
45
  .map(astNode => {
47
46
  if (astNode.type === 'endtag') {
48
47
  return;
49
48
  }
50
- return (0, create_node_1.createNode)(astNode, this);
49
+ return createNode(astNode, this);
51
50
  })
52
51
  .filter((n) => !!n));
53
- this._pretending(options === null || options === void 0 ? void 0 : options.pretenders);
54
- this._ruleMapping(ruleset);
52
+ this._pretending(options?.pretenders);
53
+ try {
54
+ this._ruleMapping(ruleset);
55
+ }
56
+ catch (error) {
57
+ if (error instanceof InvalidSelectorError) {
58
+ throw new ConfigParserError(error.message, {
59
+ filePath: 'the configuration',
60
+ });
61
+ }
62
+ throw error;
63
+ }
55
64
  }
56
65
  /**
57
66
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -60,7 +69,7 @@ class MLDocument extends parent_node_1.MLParentNode {
60
69
  * @implements DOM API: `Document`
61
70
  */
62
71
  get URL() {
63
- throw new unexpected_call_error_1.default('Not supported "URL" property');
72
+ throw new UnexpectedCallError('Not supported "URL" property');
64
73
  }
65
74
  /**
66
75
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -69,7 +78,7 @@ class MLDocument extends parent_node_1.MLParentNode {
69
78
  * @implements DOM API: `Document`
70
79
  */
71
80
  get activeElement() {
72
- throw new unexpected_call_error_1.default('Not supported "activeElement" property');
81
+ throw new UnexpectedCallError('Not supported "activeElement" property');
73
82
  }
74
83
  /**
75
84
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -78,7 +87,7 @@ class MLDocument extends parent_node_1.MLParentNode {
78
87
  * @implements DOM API: `Document`
79
88
  */
80
89
  get adoptedStyleSheets() {
81
- throw new unexpected_call_error_1.default('Not supported "adoptedStyleSheets" property');
90
+ throw new UnexpectedCallError('Not supported "adoptedStyleSheets" property');
82
91
  }
83
92
  /**
84
93
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -88,7 +97,7 @@ class MLDocument extends parent_node_1.MLParentNode {
88
97
  * @implements DOM API: `Document`
89
98
  */
90
99
  get alinkColor() {
91
- throw new unexpected_call_error_1.default('Not supported "alinkColor" property');
100
+ throw new UnexpectedCallError('Not supported "alinkColor" property');
92
101
  }
93
102
  /**
94
103
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -98,7 +107,7 @@ class MLDocument extends parent_node_1.MLParentNode {
98
107
  * @implements DOM API: `Document`
99
108
  */
100
109
  get all() {
101
- throw new unexpected_call_error_1.default('Not supported "all" property');
110
+ throw new UnexpectedCallError('Not supported "all" property');
102
111
  }
103
112
  /**
104
113
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -108,7 +117,7 @@ class MLDocument extends parent_node_1.MLParentNode {
108
117
  * @implements DOM API: `Document`
109
118
  */
110
119
  get anchors() {
111
- throw new unexpected_call_error_1.default('Not supported "anchors" property');
120
+ throw new UnexpectedCallError('Not supported "anchors" property');
112
121
  }
113
122
  /**
114
123
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -118,7 +127,7 @@ class MLDocument extends parent_node_1.MLParentNode {
118
127
  * @implements DOM API: `Document`
119
128
  */
120
129
  get applets() {
121
- throw new unexpected_call_error_1.default('Not supported "applets" property');
130
+ throw new UnexpectedCallError('Not supported "applets" property');
122
131
  }
123
132
  /**
124
133
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -128,7 +137,7 @@ class MLDocument extends parent_node_1.MLParentNode {
128
137
  * @implements DOM API: `Document`
129
138
  */
130
139
  get bgColor() {
131
- throw new unexpected_call_error_1.default('Not supported "bgColor" property');
140
+ throw new UnexpectedCallError('Not supported "bgColor" property');
132
141
  }
133
142
  /**
134
143
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -137,7 +146,7 @@ class MLDocument extends parent_node_1.MLParentNode {
137
146
  * @implements DOM API: `Document`
138
147
  */
139
148
  get body() {
140
- throw new unexpected_call_error_1.default('Not supported "body" property');
149
+ throw new UnexpectedCallError('Not supported "body" property');
141
150
  }
142
151
  /**
143
152
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -146,7 +155,7 @@ class MLDocument extends parent_node_1.MLParentNode {
146
155
  * @implements DOM API: `Document`
147
156
  */
148
157
  get characterSet() {
149
- throw new unexpected_call_error_1.default('Not supported "characterSet" property');
158
+ throw new UnexpectedCallError('Not supported "characterSet" property');
150
159
  }
151
160
  /**
152
161
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -156,7 +165,7 @@ class MLDocument extends parent_node_1.MLParentNode {
156
165
  * @implements DOM API: `Document`
157
166
  */
158
167
  get charset() {
159
- throw new unexpected_call_error_1.default('Not supported "charset" property');
168
+ throw new UnexpectedCallError('Not supported "charset" property');
160
169
  }
161
170
  /**
162
171
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -165,7 +174,7 @@ class MLDocument extends parent_node_1.MLParentNode {
165
174
  * @implements DOM API: `Document`
166
175
  */
167
176
  get compatMode() {
168
- throw new unexpected_call_error_1.default('Not supported "compatMode" property');
177
+ throw new UnexpectedCallError('Not supported "compatMode" property');
169
178
  }
170
179
  /**
171
180
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -174,7 +183,7 @@ class MLDocument extends parent_node_1.MLParentNode {
174
183
  * @implements DOM API: `Document`
175
184
  */
176
185
  get contentType() {
177
- throw new unexpected_call_error_1.default('Not supported "contentType" property');
186
+ throw new UnexpectedCallError('Not supported "contentType" property');
178
187
  }
179
188
  /**
180
189
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -183,7 +192,7 @@ class MLDocument extends parent_node_1.MLParentNode {
183
192
  * @implements DOM API: `Document`
184
193
  */
185
194
  get cookie() {
186
- throw new unexpected_call_error_1.default('Not supported "cookie" property');
195
+ throw new UnexpectedCallError('Not supported "cookie" property');
187
196
  }
188
197
  /**
189
198
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -192,7 +201,7 @@ class MLDocument extends parent_node_1.MLParentNode {
192
201
  * @implements DOM API: `Document`
193
202
  */
194
203
  get currentScript() {
195
- throw new unexpected_call_error_1.default('Not supported "currentScript" property');
204
+ throw new UnexpectedCallError('Not supported "currentScript" property');
196
205
  }
197
206
  /**
198
207
  * Window object for calling the `getComputedStyle` and the `getPropertyValue` that
@@ -204,7 +213,9 @@ class MLDocument extends parent_node_1.MLParentNode {
204
213
  */
205
214
  get defaultView() {
206
215
  return {
207
- getComputedStyle(_el) {
216
+ getComputedStyle(
217
+ // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
218
+ _el) {
208
219
  return {
209
220
  getPropertyValue(_propName) {
210
221
  return {};
@@ -220,7 +231,7 @@ class MLDocument extends parent_node_1.MLParentNode {
220
231
  * @implements DOM API: `Document`
221
232
  */
222
233
  get designMode() {
223
- throw new unexpected_call_error_1.default('Not supported "designMode" property');
234
+ throw new UnexpectedCallError('Not supported "designMode" property');
224
235
  }
225
236
  /**
226
237
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -229,7 +240,7 @@ class MLDocument extends parent_node_1.MLParentNode {
229
240
  * @implements DOM API: `Document`
230
241
  */
231
242
  get dir() {
232
- throw new unexpected_call_error_1.default('Not supported "dir" property');
243
+ throw new UnexpectedCallError('Not supported "dir" property');
233
244
  }
234
245
  /**
235
246
  * @implements DOM API: `Document`
@@ -249,7 +260,7 @@ class MLDocument extends parent_node_1.MLParentNode {
249
260
  * @implements DOM API: `Document`
250
261
  */
251
262
  get documentElement() {
252
- throw new unexpected_call_error_1.default('Not supported "documentElement" property');
263
+ throw new UnexpectedCallError('Not supported "documentElement" property');
253
264
  }
254
265
  /**
255
266
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -258,7 +269,7 @@ class MLDocument extends parent_node_1.MLParentNode {
258
269
  * @implements DOM API: `Document`
259
270
  */
260
271
  get documentURI() {
261
- throw new unexpected_call_error_1.default('Not supported "documentURI" property');
272
+ throw new UnexpectedCallError('Not supported "documentURI" property');
262
273
  }
263
274
  /**
264
275
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -267,7 +278,7 @@ class MLDocument extends parent_node_1.MLParentNode {
267
278
  * @implements DOM API: `Document`
268
279
  */
269
280
  get domain() {
270
- throw new unexpected_call_error_1.default('Not supported "domain" property');
281
+ throw new UnexpectedCallError('Not supported "domain" property');
271
282
  }
272
283
  /**
273
284
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -276,7 +287,7 @@ class MLDocument extends parent_node_1.MLParentNode {
276
287
  * @implements DOM API: `Document`
277
288
  */
278
289
  get embeds() {
279
- throw new unexpected_call_error_1.default('Not supported "embeds" property');
290
+ throw new UnexpectedCallError('Not supported "embeds" property');
280
291
  }
281
292
  /**
282
293
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -286,7 +297,7 @@ class MLDocument extends parent_node_1.MLParentNode {
286
297
  * @implements DOM API: `Document`
287
298
  */
288
299
  get fgColor() {
289
- throw new unexpected_call_error_1.default('Not supported "fgColor" property');
300
+ throw new UnexpectedCallError('Not supported "fgColor" property');
290
301
  }
291
302
  /**
292
303
  * It could be used in rule, make sure it is immutable
@@ -294,7 +305,7 @@ class MLDocument extends parent_node_1.MLParentNode {
294
305
  * @implements `@markuplint/ml-core` API: `MLDOMDocument`
295
306
  */
296
307
  get filename() {
297
- return tslib_1.__classPrivateFieldGet(this, _MLDocument_filename, "f");
308
+ return __classPrivateFieldGet(this, _MLDocument_filename, "f");
298
309
  }
299
310
  /**
300
311
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -303,7 +314,7 @@ class MLDocument extends parent_node_1.MLParentNode {
303
314
  * @implements DOM API: `Document`
304
315
  */
305
316
  get fonts() {
306
- throw new unexpected_call_error_1.default('Not supported "fonts" property');
317
+ throw new UnexpectedCallError('Not supported "fonts" property');
307
318
  }
308
319
  /**
309
320
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -312,7 +323,7 @@ class MLDocument extends parent_node_1.MLParentNode {
312
323
  * @implements DOM API: `Document`
313
324
  */
314
325
  get forms() {
315
- throw new unexpected_call_error_1.default('Not supported "forms" property');
326
+ throw new UnexpectedCallError('Not supported "forms" property');
316
327
  }
317
328
  /**
318
329
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -322,7 +333,7 @@ class MLDocument extends parent_node_1.MLParentNode {
322
333
  * @implements DOM API: `Document`
323
334
  */
324
335
  get fullscreen() {
325
- throw new unexpected_call_error_1.default('Not supported "fullscreen" property');
336
+ throw new UnexpectedCallError('Not supported "fullscreen" property');
326
337
  }
327
338
  /**
328
339
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -331,7 +342,7 @@ class MLDocument extends parent_node_1.MLParentNode {
331
342
  * @implements DOM API: `Document`
332
343
  */
333
344
  get fullscreenElement() {
334
- throw new unexpected_call_error_1.default('Not supported "fullscreenElement" property');
345
+ throw new UnexpectedCallError('Not supported "fullscreenElement" property');
335
346
  }
336
347
  /**
337
348
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -340,7 +351,7 @@ class MLDocument extends parent_node_1.MLParentNode {
340
351
  * @implements DOM API: `Document`
341
352
  */
342
353
  get fullscreenEnabled() {
343
- throw new unexpected_call_error_1.default('Not supported "FullscreenEnabledURL" property');
354
+ throw new UnexpectedCallError('Not supported "FullscreenEnabledURL" property');
344
355
  }
345
356
  /**
346
357
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -349,7 +360,7 @@ class MLDocument extends parent_node_1.MLParentNode {
349
360
  * @implements DOM API: `Document`
350
361
  */
351
362
  get head() {
352
- throw new unexpected_call_error_1.default('Not supported "head" property');
363
+ throw new UnexpectedCallError('Not supported "head" property');
353
364
  }
354
365
  /**
355
366
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -358,7 +369,7 @@ class MLDocument extends parent_node_1.MLParentNode {
358
369
  * @implements DOM API: `Document`
359
370
  */
360
371
  get hidden() {
361
- throw new unexpected_call_error_1.default('Not supported "hidden" property');
372
+ throw new UnexpectedCallError('Not supported "hidden" property');
362
373
  }
363
374
  /**
364
375
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -367,7 +378,7 @@ class MLDocument extends parent_node_1.MLParentNode {
367
378
  * @implements DOM API: `Document`
368
379
  */
369
380
  get images() {
370
- throw new unexpected_call_error_1.default('Not supported "images" property');
381
+ throw new UnexpectedCallError('Not supported "images" property');
371
382
  }
372
383
  /**
373
384
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -376,7 +387,7 @@ class MLDocument extends parent_node_1.MLParentNode {
376
387
  * @implements DOM API: `Document`
377
388
  */
378
389
  get implementation() {
379
- throw new unexpected_call_error_1.default('Not supported "implementation" property');
390
+ throw new UnexpectedCallError('Not supported "implementation" property');
380
391
  }
381
392
  /**
382
393
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -386,7 +397,7 @@ class MLDocument extends parent_node_1.MLParentNode {
386
397
  * @implements DOM API: `Document`
387
398
  */
388
399
  get inputEncoding() {
389
- throw new unexpected_call_error_1.default('Not supported "inputEncoding" property');
400
+ throw new UnexpectedCallError('Not supported "inputEncoding" property');
390
401
  }
391
402
  /**
392
403
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -395,7 +406,7 @@ class MLDocument extends parent_node_1.MLParentNode {
395
406
  * @implements DOM API: `Document`
396
407
  */
397
408
  get lastModified() {
398
- throw new unexpected_call_error_1.default('Not supported "lastModified" property');
409
+ throw new UnexpectedCallError('Not supported "lastModified" property');
399
410
  }
400
411
  /**
401
412
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -405,7 +416,7 @@ class MLDocument extends parent_node_1.MLParentNode {
405
416
  * @implements DOM API: `Document`
406
417
  */
407
418
  get linkColor() {
408
- throw new unexpected_call_error_1.default('Not supported "linkColor" property');
419
+ throw new UnexpectedCallError('Not supported "linkColor" property');
409
420
  }
410
421
  /**
411
422
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -414,7 +425,7 @@ class MLDocument extends parent_node_1.MLParentNode {
414
425
  * @implements DOM API: `Document`
415
426
  */
416
427
  get links() {
417
- throw new unexpected_call_error_1.default('Not supported "links" property');
428
+ throw new UnexpectedCallError('Not supported "links" property');
418
429
  }
419
430
  /**
420
431
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -423,7 +434,7 @@ class MLDocument extends parent_node_1.MLParentNode {
423
434
  * @implements DOM API: `Document`
424
435
  */
425
436
  get location() {
426
- throw new unexpected_call_error_1.default('Not supported "location" property');
437
+ throw new UnexpectedCallError('Not supported "location" property');
427
438
  }
428
439
  /**
429
440
  * Returns a string appropriate for the type of node as `Document`
@@ -447,7 +458,7 @@ class MLDocument extends parent_node_1.MLParentNode {
447
458
  * @implements DOM API: `Document`
448
459
  */
449
460
  get onabort() {
450
- throw new unexpected_call_error_1.default('Not supported "onabort" property');
461
+ throw new UnexpectedCallError('Not supported "onabort" property');
451
462
  }
452
463
  /**
453
464
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -457,7 +468,7 @@ class MLDocument extends parent_node_1.MLParentNode {
457
468
  * @implements DOM API: `Document`
458
469
  */
459
470
  get onanimationcancel() {
460
- throw new unexpected_call_error_1.default('Not supported "onanimationcancel" property');
471
+ throw new UnexpectedCallError('Not supported "onanimationcancel" property');
461
472
  }
462
473
  /**
463
474
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -467,7 +478,7 @@ class MLDocument extends parent_node_1.MLParentNode {
467
478
  * @implements DOM API: `Document`
468
479
  */
469
480
  get onanimationend() {
470
- throw new unexpected_call_error_1.default('Not supported "onanimationend" property');
481
+ throw new UnexpectedCallError('Not supported "onanimationend" property');
471
482
  }
472
483
  /**
473
484
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -477,7 +488,7 @@ class MLDocument extends parent_node_1.MLParentNode {
477
488
  * @implements DOM API: `Document`
478
489
  */
479
490
  get onanimationiteration() {
480
- throw new unexpected_call_error_1.default('Not supported "onanimationiteration" property');
491
+ throw new UnexpectedCallError('Not supported "onanimationiteration" property');
481
492
  }
482
493
  /**
483
494
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -487,7 +498,7 @@ class MLDocument extends parent_node_1.MLParentNode {
487
498
  * @implements DOM API: `Document`
488
499
  */
489
500
  get onanimationstart() {
490
- throw new unexpected_call_error_1.default('Not supported "onanimationstart" property');
501
+ throw new UnexpectedCallError('Not supported "onanimationstart" property');
491
502
  }
492
503
  /**
493
504
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -497,7 +508,7 @@ class MLDocument extends parent_node_1.MLParentNode {
497
508
  * @implements DOM API: `Document`
498
509
  */
499
510
  get onauxclick() {
500
- throw new unexpected_call_error_1.default('Not supported "onauxclick" property');
511
+ throw new UnexpectedCallError('Not supported "onauxclick" property');
501
512
  }
502
513
  /**
503
514
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -507,7 +518,7 @@ class MLDocument extends parent_node_1.MLParentNode {
507
518
  * @implements DOM API: `Document`
508
519
  */
509
520
  get onbeforeinput() {
510
- throw new unexpected_call_error_1.default('Not supported "onbeforeinput" property');
521
+ throw new UnexpectedCallError('Not supported "onbeforeinput" property');
511
522
  }
512
523
  /**
513
524
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -517,7 +528,7 @@ class MLDocument extends parent_node_1.MLParentNode {
517
528
  * @implements DOM API: `Document`
518
529
  */
519
530
  get onblur() {
520
- throw new unexpected_call_error_1.default('Not supported "onblur" property');
531
+ throw new UnexpectedCallError('Not supported "onblur" property');
521
532
  }
522
533
  /**
523
534
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -527,7 +538,7 @@ class MLDocument extends parent_node_1.MLParentNode {
527
538
  * @implements DOM API: `Document`
528
539
  */
529
540
  get oncancel() {
530
- throw new unexpected_call_error_1.default('Not supported "oncanplay" property');
541
+ throw new UnexpectedCallError('Not supported "oncanplay" property');
531
542
  }
532
543
  /**
533
544
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -537,7 +548,7 @@ class MLDocument extends parent_node_1.MLParentNode {
537
548
  * @implements DOM API: `Document`
538
549
  */
539
550
  get oncanplay() {
540
- throw new unexpected_call_error_1.default('Not supported "oncanplay" property');
551
+ throw new UnexpectedCallError('Not supported "oncanplay" property');
541
552
  }
542
553
  /**
543
554
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -547,7 +558,7 @@ class MLDocument extends parent_node_1.MLParentNode {
547
558
  * @implements DOM API: `Document`
548
559
  */
549
560
  get oncanplaythrough() {
550
- throw new unexpected_call_error_1.default('Not supported "oncanplaythrough" property');
561
+ throw new UnexpectedCallError('Not supported "oncanplaythrough" property');
551
562
  }
552
563
  /**
553
564
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -557,7 +568,7 @@ class MLDocument extends parent_node_1.MLParentNode {
557
568
  * @implements DOM API: `Document`
558
569
  */
559
570
  get onchange() {
560
- throw new unexpected_call_error_1.default('Not supported "onchange" property');
571
+ throw new UnexpectedCallError('Not supported "onchange" property');
561
572
  }
562
573
  /**
563
574
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -567,7 +578,7 @@ class MLDocument extends parent_node_1.MLParentNode {
567
578
  * @implements DOM API: `Document`
568
579
  */
569
580
  get onclick() {
570
- throw new unexpected_call_error_1.default('Not supported "onclick" property');
581
+ throw new UnexpectedCallError('Not supported "onclick" property');
571
582
  }
572
583
  /**
573
584
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -577,7 +588,7 @@ class MLDocument extends parent_node_1.MLParentNode {
577
588
  * @implements DOM API: `Document`
578
589
  */
579
590
  get onclose() {
580
- throw new unexpected_call_error_1.default('Not supported "onclose" property');
591
+ throw new UnexpectedCallError('Not supported "onclose" property');
581
592
  }
582
593
  /**
583
594
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -587,7 +598,7 @@ class MLDocument extends parent_node_1.MLParentNode {
587
598
  * @implements DOM API: `Document`
588
599
  */
589
600
  get oncontextmenu() {
590
- throw new unexpected_call_error_1.default('Not supported "oncontextmenu" property');
601
+ throw new UnexpectedCallError('Not supported "oncontextmenu" property');
591
602
  }
592
603
  /**
593
604
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -597,7 +608,7 @@ class MLDocument extends parent_node_1.MLParentNode {
597
608
  * @implements DOM API: `Document`
598
609
  */
599
610
  get oncopy() {
600
- throw new unexpected_call_error_1.default('Not supported "oncopy" property');
611
+ throw new UnexpectedCallError('Not supported "oncopy" property');
601
612
  }
602
613
  /**
603
614
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -607,7 +618,7 @@ class MLDocument extends parent_node_1.MLParentNode {
607
618
  * @implements DOM API: `Document`
608
619
  */
609
620
  get oncuechange() {
610
- throw new unexpected_call_error_1.default('Not supported "oncuechange" property');
621
+ throw new UnexpectedCallError('Not supported "oncuechange" property');
611
622
  }
612
623
  /**
613
624
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -617,7 +628,7 @@ class MLDocument extends parent_node_1.MLParentNode {
617
628
  * @implements DOM API: `Document`
618
629
  */
619
630
  get oncut() {
620
- throw new unexpected_call_error_1.default('Not supported "oncut" property');
631
+ throw new UnexpectedCallError('Not supported "oncut" property');
621
632
  }
622
633
  /**
623
634
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -627,7 +638,7 @@ class MLDocument extends parent_node_1.MLParentNode {
627
638
  * @implements DOM API: `Document`
628
639
  */
629
640
  get ondblclick() {
630
- throw new unexpected_call_error_1.default('Not supported "ondblclick" property');
641
+ throw new UnexpectedCallError('Not supported "ondblclick" property');
631
642
  }
632
643
  /**
633
644
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -637,7 +648,7 @@ class MLDocument extends parent_node_1.MLParentNode {
637
648
  * @implements DOM API: `Document`
638
649
  */
639
650
  get ondrag() {
640
- throw new unexpected_call_error_1.default('Not supported "ondrag" property');
651
+ throw new UnexpectedCallError('Not supported "ondrag" property');
641
652
  }
642
653
  /**
643
654
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -647,7 +658,7 @@ class MLDocument extends parent_node_1.MLParentNode {
647
658
  * @implements DOM API: `Document`
648
659
  */
649
660
  get ondragend() {
650
- throw new unexpected_call_error_1.default('Not supported "ondragend" property');
661
+ throw new UnexpectedCallError('Not supported "ondragend" property');
651
662
  }
652
663
  /**
653
664
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -657,7 +668,7 @@ class MLDocument extends parent_node_1.MLParentNode {
657
668
  * @implements DOM API: `Document`
658
669
  */
659
670
  get ondragenter() {
660
- throw new unexpected_call_error_1.default('Not supported "ondragenter" property');
671
+ throw new UnexpectedCallError('Not supported "ondragenter" property');
661
672
  }
662
673
  /**
663
674
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -667,7 +678,7 @@ class MLDocument extends parent_node_1.MLParentNode {
667
678
  * @implements DOM API: `Document`
668
679
  */
669
680
  get ondragleave() {
670
- throw new unexpected_call_error_1.default('Not supported "ondragleave" property');
681
+ throw new UnexpectedCallError('Not supported "ondragleave" property');
671
682
  }
672
683
  /**
673
684
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -677,7 +688,7 @@ class MLDocument extends parent_node_1.MLParentNode {
677
688
  * @implements DOM API: `Document`
678
689
  */
679
690
  get ondragover() {
680
- throw new unexpected_call_error_1.default('Not supported "ondragover" property');
691
+ throw new UnexpectedCallError('Not supported "ondragover" property');
681
692
  }
682
693
  /**
683
694
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -687,7 +698,7 @@ class MLDocument extends parent_node_1.MLParentNode {
687
698
  * @implements DOM API: `Document`
688
699
  */
689
700
  get ondragstart() {
690
- throw new unexpected_call_error_1.default('Not supported "ondragstart" property');
701
+ throw new UnexpectedCallError('Not supported "ondragstart" property');
691
702
  }
692
703
  /**
693
704
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -697,7 +708,7 @@ class MLDocument extends parent_node_1.MLParentNode {
697
708
  * @implements DOM API: `Document`
698
709
  */
699
710
  get ondrop() {
700
- throw new unexpected_call_error_1.default('Not supported "ondrop" property');
711
+ throw new UnexpectedCallError('Not supported "ondrop" property');
701
712
  }
702
713
  /**
703
714
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -707,7 +718,7 @@ class MLDocument extends parent_node_1.MLParentNode {
707
718
  * @implements DOM API: `Document`
708
719
  */
709
720
  get ondurationchange() {
710
- throw new unexpected_call_error_1.default('Not supported "ondurationchange" property');
721
+ throw new UnexpectedCallError('Not supported "ondurationchange" property');
711
722
  }
712
723
  /**
713
724
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -717,7 +728,7 @@ class MLDocument extends parent_node_1.MLParentNode {
717
728
  * @implements DOM API: `Document`
718
729
  */
719
730
  get onemptied() {
720
- throw new unexpected_call_error_1.default('Not supported "onemptied" property');
731
+ throw new UnexpectedCallError('Not supported "onemptied" property');
721
732
  }
722
733
  /**
723
734
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -727,7 +738,7 @@ class MLDocument extends parent_node_1.MLParentNode {
727
738
  * @implements DOM API: `Document`
728
739
  */
729
740
  get onended() {
730
- throw new unexpected_call_error_1.default('Not supported "onended" property');
741
+ throw new UnexpectedCallError('Not supported "onended" property');
731
742
  }
732
743
  /**
733
744
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -737,7 +748,7 @@ class MLDocument extends parent_node_1.MLParentNode {
737
748
  * @implements DOM API: `Document`
738
749
  */
739
750
  get onerror() {
740
- throw new unexpected_call_error_1.default('Not supported "onerror" property');
751
+ throw new UnexpectedCallError('Not supported "onerror" property');
741
752
  }
742
753
  /**
743
754
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -747,7 +758,7 @@ class MLDocument extends parent_node_1.MLParentNode {
747
758
  * @implements DOM API: `Document`
748
759
  */
749
760
  get onfocus() {
750
- throw new unexpected_call_error_1.default('Not supported "onfocus" property');
761
+ throw new UnexpectedCallError('Not supported "onfocus" property');
751
762
  }
752
763
  /**
753
764
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -757,7 +768,7 @@ class MLDocument extends parent_node_1.MLParentNode {
757
768
  * @implements DOM API: `Document`
758
769
  */
759
770
  get onformdata() {
760
- throw new unexpected_call_error_1.default('Not supported "onformdata" property');
771
+ throw new UnexpectedCallError('Not supported "onformdata" property');
761
772
  }
762
773
  /**
763
774
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -767,7 +778,7 @@ class MLDocument extends parent_node_1.MLParentNode {
767
778
  * @implements DOM API: `Document`
768
779
  */
769
780
  get onfullscreenchange() {
770
- throw new unexpected_call_error_1.default('Not supported "onfullscreenchange" property');
781
+ throw new UnexpectedCallError('Not supported "onfullscreenchange" property');
771
782
  }
772
783
  /**
773
784
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -777,7 +788,7 @@ class MLDocument extends parent_node_1.MLParentNode {
777
788
  * @implements DOM API: `Document`
778
789
  */
779
790
  get onfullscreenerror() {
780
- throw new unexpected_call_error_1.default('Not supported "onfullscreenerror" property');
791
+ throw new UnexpectedCallError('Not supported "onfullscreenerror" property');
781
792
  }
782
793
  /**
783
794
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -787,7 +798,7 @@ class MLDocument extends parent_node_1.MLParentNode {
787
798
  * @implements DOM API: `Document`
788
799
  */
789
800
  get ongotpointercapture() {
790
- throw new unexpected_call_error_1.default('Not supported "ongotpointercapture" property');
801
+ throw new UnexpectedCallError('Not supported "ongotpointercapture" property');
791
802
  }
792
803
  /**
793
804
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -797,7 +808,7 @@ class MLDocument extends parent_node_1.MLParentNode {
797
808
  * @implements DOM API: `Document`
798
809
  */
799
810
  get oninput() {
800
- throw new unexpected_call_error_1.default('Not supported "oninput" property');
811
+ throw new UnexpectedCallError('Not supported "oninput" property');
801
812
  }
802
813
  /**
803
814
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -807,7 +818,7 @@ class MLDocument extends parent_node_1.MLParentNode {
807
818
  * @implements DOM API: `Document`
808
819
  */
809
820
  get oninvalid() {
810
- throw new unexpected_call_error_1.default('Not supported "oninvalid" property');
821
+ throw new UnexpectedCallError('Not supported "oninvalid" property');
811
822
  }
812
823
  /**
813
824
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -817,7 +828,7 @@ class MLDocument extends parent_node_1.MLParentNode {
817
828
  * @implements DOM API: `Document`
818
829
  */
819
830
  get onkeydown() {
820
- throw new unexpected_call_error_1.default('Not supported "onkeydown" property');
831
+ throw new UnexpectedCallError('Not supported "onkeydown" property');
821
832
  }
822
833
  /**
823
834
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -827,7 +838,7 @@ class MLDocument extends parent_node_1.MLParentNode {
827
838
  * @implements DOM API: `Document`
828
839
  */
829
840
  get onkeypress() {
830
- throw new unexpected_call_error_1.default('Not supported "onkeypress" property');
841
+ throw new UnexpectedCallError('Not supported "onkeypress" property');
831
842
  }
832
843
  /**
833
844
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -837,7 +848,7 @@ class MLDocument extends parent_node_1.MLParentNode {
837
848
  * @implements DOM API: `Document`
838
849
  */
839
850
  get onkeyup() {
840
- throw new unexpected_call_error_1.default('Not supported "onkeyup" property');
851
+ throw new UnexpectedCallError('Not supported "onkeyup" property');
841
852
  }
842
853
  /**
843
854
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -847,7 +858,7 @@ class MLDocument extends parent_node_1.MLParentNode {
847
858
  * @implements DOM API: `Document`
848
859
  */
849
860
  get onload() {
850
- throw new unexpected_call_error_1.default('Not supported "onload" property');
861
+ throw new UnexpectedCallError('Not supported "onload" property');
851
862
  }
852
863
  /**
853
864
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -857,7 +868,7 @@ class MLDocument extends parent_node_1.MLParentNode {
857
868
  * @implements DOM API: `Document`
858
869
  */
859
870
  get onloadeddata() {
860
- throw new unexpected_call_error_1.default('Not supported "onloadeddata" property');
871
+ throw new UnexpectedCallError('Not supported "onloadeddata" property');
861
872
  }
862
873
  /**
863
874
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -867,7 +878,7 @@ class MLDocument extends parent_node_1.MLParentNode {
867
878
  * @implements DOM API: `Document`
868
879
  */
869
880
  get onloadedmetadata() {
870
- throw new unexpected_call_error_1.default('Not supported "onloadedmetadata" property');
881
+ throw new UnexpectedCallError('Not supported "onloadedmetadata" property');
871
882
  }
872
883
  /**
873
884
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -877,7 +888,7 @@ class MLDocument extends parent_node_1.MLParentNode {
877
888
  * @implements DOM API: `Document`
878
889
  */
879
890
  get onloadstart() {
880
- throw new unexpected_call_error_1.default('Not supported "onloadstart" property');
891
+ throw new UnexpectedCallError('Not supported "onloadstart" property');
881
892
  }
882
893
  /**
883
894
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -887,7 +898,7 @@ class MLDocument extends parent_node_1.MLParentNode {
887
898
  * @implements DOM API: `Document`
888
899
  */
889
900
  get onlostpointercapture() {
890
- throw new unexpected_call_error_1.default('Not supported "onlostpointercapture" property');
901
+ throw new UnexpectedCallError('Not supported "onlostpointercapture" property');
891
902
  }
892
903
  /**
893
904
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -897,7 +908,7 @@ class MLDocument extends parent_node_1.MLParentNode {
897
908
  * @implements DOM API: `Document`
898
909
  */
899
910
  get onmousedown() {
900
- throw new unexpected_call_error_1.default('Not supported "onmousedown" property');
911
+ throw new UnexpectedCallError('Not supported "onmousedown" property');
901
912
  }
902
913
  /**
903
914
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -907,7 +918,7 @@ class MLDocument extends parent_node_1.MLParentNode {
907
918
  * @implements DOM API: `Document`
908
919
  */
909
920
  get onmouseenter() {
910
- throw new unexpected_call_error_1.default('Not supported "onmouseenter" property');
921
+ throw new UnexpectedCallError('Not supported "onmouseenter" property');
911
922
  }
912
923
  /**
913
924
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -917,7 +928,7 @@ class MLDocument extends parent_node_1.MLParentNode {
917
928
  * @implements DOM API: `Document`
918
929
  */
919
930
  get onmouseleave() {
920
- throw new unexpected_call_error_1.default('Not supported "onmouseleave" property');
931
+ throw new UnexpectedCallError('Not supported "onmouseleave" property');
921
932
  }
922
933
  /**
923
934
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -927,7 +938,7 @@ class MLDocument extends parent_node_1.MLParentNode {
927
938
  * @implements DOM API: `Document`
928
939
  */
929
940
  get onmousemove() {
930
- throw new unexpected_call_error_1.default('Not supported "onmousemove" property');
941
+ throw new UnexpectedCallError('Not supported "onmousemove" property');
931
942
  }
932
943
  /**
933
944
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -937,7 +948,7 @@ class MLDocument extends parent_node_1.MLParentNode {
937
948
  * @implements DOM API: `Document`
938
949
  */
939
950
  get onmouseout() {
940
- throw new unexpected_call_error_1.default('Not supported "onmouseout" property');
951
+ throw new UnexpectedCallError('Not supported "onmouseout" property');
941
952
  }
942
953
  /**
943
954
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -947,7 +958,7 @@ class MLDocument extends parent_node_1.MLParentNode {
947
958
  * @implements DOM API: `Document`
948
959
  */
949
960
  get onmouseover() {
950
- throw new unexpected_call_error_1.default('Not supported "onmouseover" property');
961
+ throw new UnexpectedCallError('Not supported "onmouseover" property');
951
962
  }
952
963
  /**
953
964
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -957,7 +968,7 @@ class MLDocument extends parent_node_1.MLParentNode {
957
968
  * @implements DOM API: `Document`
958
969
  */
959
970
  get onmouseup() {
960
- throw new unexpected_call_error_1.default('Not supported "onmouseup" property');
971
+ throw new UnexpectedCallError('Not supported "onmouseup" property');
961
972
  }
962
973
  /**
963
974
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -967,7 +978,7 @@ class MLDocument extends parent_node_1.MLParentNode {
967
978
  * @implements DOM API: `Document`
968
979
  */
969
980
  get onpaste() {
970
- throw new unexpected_call_error_1.default('Not supported "onpaste" property');
981
+ throw new UnexpectedCallError('Not supported "onpaste" property');
971
982
  }
972
983
  /**
973
984
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -977,7 +988,7 @@ class MLDocument extends parent_node_1.MLParentNode {
977
988
  * @implements DOM API: `Document`
978
989
  */
979
990
  get onpause() {
980
- throw new unexpected_call_error_1.default('Not supported "onpause" property');
991
+ throw new UnexpectedCallError('Not supported "onpause" property');
981
992
  }
982
993
  /**
983
994
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -987,7 +998,7 @@ class MLDocument extends parent_node_1.MLParentNode {
987
998
  * @implements DOM API: `Document`
988
999
  */
989
1000
  get onplay() {
990
- throw new unexpected_call_error_1.default('Not supported "onplay" property');
1001
+ throw new UnexpectedCallError('Not supported "onplay" property');
991
1002
  }
992
1003
  /**
993
1004
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -997,7 +1008,7 @@ class MLDocument extends parent_node_1.MLParentNode {
997
1008
  * @implements DOM API: `Document`
998
1009
  */
999
1010
  get onplaying() {
1000
- throw new unexpected_call_error_1.default('Not supported "onplaying" property');
1011
+ throw new UnexpectedCallError('Not supported "onplaying" property');
1001
1012
  }
1002
1013
  /**
1003
1014
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1007,7 +1018,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1007
1018
  * @implements DOM API: `Document`
1008
1019
  */
1009
1020
  get onpointercancel() {
1010
- throw new unexpected_call_error_1.default('Not supported "onpointercancel" property');
1021
+ throw new UnexpectedCallError('Not supported "onpointercancel" property');
1011
1022
  }
1012
1023
  /**
1013
1024
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1017,7 +1028,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1017
1028
  * @implements DOM API: `Document`
1018
1029
  */
1019
1030
  get onpointerdown() {
1020
- throw new unexpected_call_error_1.default('Not supported "onpointerdown" property');
1031
+ throw new UnexpectedCallError('Not supported "onpointerdown" property');
1021
1032
  }
1022
1033
  /**
1023
1034
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1027,7 +1038,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1027
1038
  * @implements DOM API: `Document`
1028
1039
  */
1029
1040
  get onpointerenter() {
1030
- throw new unexpected_call_error_1.default('Not supported "onpointerenter" property');
1041
+ throw new UnexpectedCallError('Not supported "onpointerenter" property');
1031
1042
  }
1032
1043
  /**
1033
1044
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1037,7 +1048,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1037
1048
  * @implements DOM API: `Document`
1038
1049
  */
1039
1050
  get onpointerleave() {
1040
- throw new unexpected_call_error_1.default('Not supported "onpointerleave" property');
1051
+ throw new UnexpectedCallError('Not supported "onpointerleave" property');
1041
1052
  }
1042
1053
  /**
1043
1054
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1047,7 +1058,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1047
1058
  * @implements DOM API: `Document`
1048
1059
  */
1049
1060
  get onpointerlockchange() {
1050
- throw new unexpected_call_error_1.default('Not supported "onpointerlockchange" property');
1061
+ throw new UnexpectedCallError('Not supported "onpointerlockchange" property');
1051
1062
  }
1052
1063
  /**
1053
1064
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1057,7 +1068,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1057
1068
  * @implements DOM API: `Document`
1058
1069
  */
1059
1070
  get onpointerlockerror() {
1060
- throw new unexpected_call_error_1.default('Not supported "onpointerlockerror" property');
1071
+ throw new UnexpectedCallError('Not supported "onpointerlockerror" property');
1061
1072
  }
1062
1073
  /**
1063
1074
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1067,7 +1078,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1067
1078
  * @implements DOM API: `Document`
1068
1079
  */
1069
1080
  get onpointermove() {
1070
- throw new unexpected_call_error_1.default('Not supported "onpointermove" property');
1081
+ throw new UnexpectedCallError('Not supported "onpointermove" property');
1071
1082
  }
1072
1083
  /**
1073
1084
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1077,7 +1088,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1077
1088
  * @implements DOM API: `Document`
1078
1089
  */
1079
1090
  get onpointerout() {
1080
- throw new unexpected_call_error_1.default('Not supported "onpointerout" property');
1091
+ throw new UnexpectedCallError('Not supported "onpointerout" property');
1081
1092
  }
1082
1093
  /**
1083
1094
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1087,7 +1098,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1087
1098
  * @implements DOM API: `Document`
1088
1099
  */
1089
1100
  get onpointerover() {
1090
- throw new unexpected_call_error_1.default('Not supported "onpointerover" property');
1101
+ throw new UnexpectedCallError('Not supported "onpointerover" property');
1091
1102
  }
1092
1103
  /**
1093
1104
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1097,7 +1108,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1097
1108
  * @implements DOM API: `Document`
1098
1109
  */
1099
1110
  get onpointerup() {
1100
- throw new unexpected_call_error_1.default('Not supported "onpointerup" property');
1111
+ throw new UnexpectedCallError('Not supported "onpointerup" property');
1101
1112
  }
1102
1113
  /**
1103
1114
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1107,7 +1118,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1107
1118
  * @implements DOM API: `Document`
1108
1119
  */
1109
1120
  get onprogress() {
1110
- throw new unexpected_call_error_1.default('Not supported "onprogress" property');
1121
+ throw new UnexpectedCallError('Not supported "onprogress" property');
1111
1122
  }
1112
1123
  /**
1113
1124
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1117,7 +1128,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1117
1128
  * @implements DOM API: `Document`
1118
1129
  */
1119
1130
  get onratechange() {
1120
- throw new unexpected_call_error_1.default('Not supported "onratechange" property');
1131
+ throw new UnexpectedCallError('Not supported "onratechange" property');
1121
1132
  }
1122
1133
  /**
1123
1134
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1127,7 +1138,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1127
1138
  * @implements DOM API: `Document`
1128
1139
  */
1129
1140
  get onreadystatechange() {
1130
- throw new unexpected_call_error_1.default('Not supported "onreadystatechange" property');
1141
+ throw new UnexpectedCallError('Not supported "onreadystatechange" property');
1131
1142
  }
1132
1143
  /**
1133
1144
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1137,7 +1148,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1137
1148
  * @implements DOM API: `Document`
1138
1149
  */
1139
1150
  get onreset() {
1140
- throw new unexpected_call_error_1.default('Not supported "onreset" property');
1151
+ throw new UnexpectedCallError('Not supported "onreset" property');
1141
1152
  }
1142
1153
  /**
1143
1154
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1147,7 +1158,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1147
1158
  * @implements DOM API: `Document`
1148
1159
  */
1149
1160
  get onresize() {
1150
- throw new unexpected_call_error_1.default('Not supported "onresize" property');
1161
+ throw new UnexpectedCallError('Not supported "onresize" property');
1151
1162
  }
1152
1163
  /**
1153
1164
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1157,7 +1168,10 @@ class MLDocument extends parent_node_1.MLParentNode {
1157
1168
  * @implements DOM API: `Document`
1158
1169
  */
1159
1170
  get onscroll() {
1160
- throw new unexpected_call_error_1.default('Not supported "onscroll" property');
1171
+ throw new UnexpectedCallError('Not supported "onscroll" property');
1172
+ }
1173
+ get onscrollend() {
1174
+ throw new UnexpectedCallError('Not supported "onscrollend" property');
1161
1175
  }
1162
1176
  /**
1163
1177
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1167,7 +1181,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1167
1181
  * @implements DOM API: `Document`
1168
1182
  */
1169
1183
  get onsecuritypolicyviolation() {
1170
- throw new unexpected_call_error_1.default('Not supported "onsecuritypolicyviolation" property');
1184
+ throw new UnexpectedCallError('Not supported "onsecuritypolicyviolation" property');
1171
1185
  }
1172
1186
  /**
1173
1187
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1177,7 +1191,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1177
1191
  * @implements DOM API: `Document`
1178
1192
  */
1179
1193
  get onseeked() {
1180
- throw new unexpected_call_error_1.default('Not supported "onseeked" property');
1194
+ throw new UnexpectedCallError('Not supported "onseeked" property');
1181
1195
  }
1182
1196
  /**
1183
1197
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1187,7 +1201,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1187
1201
  * @implements DOM API: `Document`
1188
1202
  */
1189
1203
  get onseeking() {
1190
- throw new unexpected_call_error_1.default('Not supported "onseeking" property');
1204
+ throw new UnexpectedCallError('Not supported "onseeking" property');
1191
1205
  }
1192
1206
  /**
1193
1207
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1197,7 +1211,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1197
1211
  * @implements DOM API: `Document`
1198
1212
  */
1199
1213
  get onselect() {
1200
- throw new unexpected_call_error_1.default('Not supported "onselect" property');
1214
+ throw new UnexpectedCallError('Not supported "onselect" property');
1201
1215
  }
1202
1216
  /**
1203
1217
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1207,7 +1221,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1207
1221
  * @implements DOM API: `Document`
1208
1222
  */
1209
1223
  get onselectionchange() {
1210
- throw new unexpected_call_error_1.default('Not supported "onselectionchange" property');
1224
+ throw new UnexpectedCallError('Not supported "onselectionchange" property');
1211
1225
  }
1212
1226
  /**
1213
1227
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1217,7 +1231,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1217
1231
  * @implements DOM API: `Document`
1218
1232
  */
1219
1233
  get onselectstart() {
1220
- throw new unexpected_call_error_1.default('Not supported "onselectstart" property');
1234
+ throw new UnexpectedCallError('Not supported "onselectstart" property');
1221
1235
  }
1222
1236
  /**
1223
1237
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1227,7 +1241,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1227
1241
  * @implements DOM API: `Document`
1228
1242
  */
1229
1243
  get onslotchange() {
1230
- throw new unexpected_call_error_1.default('Not supported "onslotchange" property');
1244
+ throw new UnexpectedCallError('Not supported "onslotchange" property');
1231
1245
  }
1232
1246
  /**
1233
1247
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1237,7 +1251,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1237
1251
  * @implements DOM API: `Document`
1238
1252
  */
1239
1253
  get onstalled() {
1240
- throw new unexpected_call_error_1.default('Not supported "onstalled" property');
1254
+ throw new UnexpectedCallError('Not supported "onstalled" property');
1241
1255
  }
1242
1256
  /**
1243
1257
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1247,7 +1261,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1247
1261
  * @implements DOM API: `Document`
1248
1262
  */
1249
1263
  get onsubmit() {
1250
- throw new unexpected_call_error_1.default('Not supported "onsubmit" property');
1264
+ throw new UnexpectedCallError('Not supported "onsubmit" property');
1251
1265
  }
1252
1266
  /**
1253
1267
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1257,7 +1271,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1257
1271
  * @implements DOM API: `Document`
1258
1272
  */
1259
1273
  get onsuspend() {
1260
- throw new unexpected_call_error_1.default('Not supported "onsuspend" property');
1274
+ throw new UnexpectedCallError('Not supported "onsuspend" property');
1261
1275
  }
1262
1276
  /**
1263
1277
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1267,7 +1281,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1267
1281
  * @implements DOM API: `Document`
1268
1282
  */
1269
1283
  get ontimeupdate() {
1270
- throw new unexpected_call_error_1.default('Not supported "ontimeupdate" property');
1284
+ throw new UnexpectedCallError('Not supported "ontimeupdate" property');
1271
1285
  }
1272
1286
  /**
1273
1287
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1277,7 +1291,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1277
1291
  * @implements DOM API: `Document`
1278
1292
  */
1279
1293
  get ontoggle() {
1280
- throw new unexpected_call_error_1.default('Not supported "ontoggle" property');
1294
+ throw new UnexpectedCallError('Not supported "ontoggle" property');
1281
1295
  }
1282
1296
  /**
1283
1297
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1287,7 +1301,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1287
1301
  * @implements DOM API: `Document`
1288
1302
  */
1289
1303
  get ontransitioncancel() {
1290
- throw new unexpected_call_error_1.default('Not supported "ontransitioncancel" property');
1304
+ throw new UnexpectedCallError('Not supported "ontransitioncancel" property');
1291
1305
  }
1292
1306
  /**
1293
1307
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1297,7 +1311,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1297
1311
  * @implements DOM API: `Document`
1298
1312
  */
1299
1313
  get ontransitionend() {
1300
- throw new unexpected_call_error_1.default('Not supported "ontransitionend" property');
1314
+ throw new UnexpectedCallError('Not supported "ontransitionend" property');
1301
1315
  }
1302
1316
  /**
1303
1317
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1307,7 +1321,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1307
1321
  * @implements DOM API: `Document`
1308
1322
  */
1309
1323
  get ontransitionrun() {
1310
- throw new unexpected_call_error_1.default('Not supported "ontransitionrun" property');
1324
+ throw new UnexpectedCallError('Not supported "ontransitionrun" property');
1311
1325
  }
1312
1326
  /**
1313
1327
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1317,7 +1331,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1317
1331
  * @implements DOM API: `Document`
1318
1332
  */
1319
1333
  get ontransitionstart() {
1320
- throw new unexpected_call_error_1.default('Not supported "ontransitionstart" property');
1334
+ throw new UnexpectedCallError('Not supported "ontransitionstart" property');
1321
1335
  }
1322
1336
  /**
1323
1337
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1327,7 +1341,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1327
1341
  * @implements DOM API: `Document`
1328
1342
  */
1329
1343
  get onvisibilitychange() {
1330
- throw new unexpected_call_error_1.default('Not supported "onvisibilitychange" property');
1344
+ throw new UnexpectedCallError('Not supported "onvisibilitychange" property');
1331
1345
  }
1332
1346
  /**
1333
1347
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1337,7 +1351,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1337
1351
  * @implements DOM API: `Document`
1338
1352
  */
1339
1353
  get onvolumechange() {
1340
- throw new unexpected_call_error_1.default('Not supported "onvolumechange" property');
1354
+ throw new UnexpectedCallError('Not supported "onvolumechange" property');
1341
1355
  }
1342
1356
  /**
1343
1357
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1347,7 +1361,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1347
1361
  * @implements DOM API: `Document`
1348
1362
  */
1349
1363
  get onwaiting() {
1350
- throw new unexpected_call_error_1.default('Not supported "onwaiting" property');
1364
+ throw new UnexpectedCallError('Not supported "onwaiting" property');
1351
1365
  }
1352
1366
  /**
1353
1367
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1357,7 +1371,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1357
1371
  * @implements DOM API: `Document`
1358
1372
  */
1359
1373
  get onwebkitanimationend() {
1360
- throw new unexpected_call_error_1.default('Not supported "onwebkitanimationend" property');
1374
+ throw new UnexpectedCallError('Not supported "onwebkitanimationend" property');
1361
1375
  }
1362
1376
  /**
1363
1377
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1367,7 +1381,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1367
1381
  * @implements DOM API: `Document`
1368
1382
  */
1369
1383
  get onwebkitanimationiteration() {
1370
- throw new unexpected_call_error_1.default('Not supported "onwebkitanimationiteration" property');
1384
+ throw new UnexpectedCallError('Not supported "onwebkitanimationiteration" property');
1371
1385
  }
1372
1386
  /**
1373
1387
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1377,7 +1391,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1377
1391
  * @implements DOM API: `Document`
1378
1392
  */
1379
1393
  get onwebkitanimationstart() {
1380
- throw new unexpected_call_error_1.default('Not supported "onwebkitanimationstart" property');
1394
+ throw new UnexpectedCallError('Not supported "onwebkitanimationstart" property');
1381
1395
  }
1382
1396
  /**
1383
1397
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1387,7 +1401,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1387
1401
  * @implements DOM API: `Document`
1388
1402
  */
1389
1403
  get onwebkittransitionend() {
1390
- throw new unexpected_call_error_1.default('Not supported "onwebkittransitionend" property');
1404
+ throw new UnexpectedCallError('Not supported "onwebkittransitionend" property');
1391
1405
  }
1392
1406
  /**
1393
1407
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1397,7 +1411,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1397
1411
  * @implements DOM API: `Document`
1398
1412
  */
1399
1413
  get onwheel() {
1400
- throw new unexpected_call_error_1.default('Not supported "onwheel" property');
1414
+ throw new UnexpectedCallError('Not supported "onwheel" property');
1401
1415
  }
1402
1416
  get ownerDocument() {
1403
1417
  return null;
@@ -1419,7 +1433,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1419
1433
  * @implements DOM API: `Document`
1420
1434
  */
1421
1435
  get pictureInPictureElement() {
1422
- throw new unexpected_call_error_1.default('Not supported "pictureInPictureElement" property');
1436
+ throw new UnexpectedCallError('Not supported "pictureInPictureElement" property');
1423
1437
  }
1424
1438
  /**
1425
1439
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1428,7 +1442,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1428
1442
  * @implements DOM API: `Document`
1429
1443
  */
1430
1444
  get pictureInPictureEnabled() {
1431
- throw new unexpected_call_error_1.default('Not supported "pictureInPictureEnabled" property');
1445
+ throw new UnexpectedCallError('Not supported "pictureInPictureEnabled" property');
1432
1446
  }
1433
1447
  /**
1434
1448
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1437,7 +1451,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1437
1451
  * @implements DOM API: `Document`
1438
1452
  */
1439
1453
  get plugins() {
1440
- throw new unexpected_call_error_1.default('Not supported "plugins" property');
1454
+ throw new UnexpectedCallError('Not supported "plugins" property');
1441
1455
  }
1442
1456
  /**
1443
1457
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1446,7 +1460,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1446
1460
  * @implements DOM API: `Document`
1447
1461
  */
1448
1462
  get pointerLockElement() {
1449
- throw new unexpected_call_error_1.default('Not supported "pointerLockElement" property');
1463
+ throw new UnexpectedCallError('Not supported "pointerLockElement" property');
1450
1464
  }
1451
1465
  /**
1452
1466
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1455,7 +1469,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1455
1469
  * @implements DOM API: `Document`
1456
1470
  */
1457
1471
  get readyState() {
1458
- throw new unexpected_call_error_1.default('Not supported "readyState" property');
1472
+ throw new UnexpectedCallError('Not supported "readyState" property');
1459
1473
  }
1460
1474
  /**
1461
1475
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1464,7 +1478,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1464
1478
  * @implements DOM API: `Document`
1465
1479
  */
1466
1480
  get referrer() {
1467
- throw new unexpected_call_error_1.default('Not supported "referrer" property');
1481
+ throw new UnexpectedCallError('Not supported "referrer" property');
1468
1482
  }
1469
1483
  /**
1470
1484
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1474,7 +1488,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1474
1488
  * @implements DOM API: `Document`
1475
1489
  */
1476
1490
  get rootElement() {
1477
- throw new unexpected_call_error_1.default('Not supported "rootElement" property');
1491
+ throw new UnexpectedCallError('Not supported "rootElement" property');
1478
1492
  }
1479
1493
  /**
1480
1494
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1483,7 +1497,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1483
1497
  * @implements DOM API: `Document`
1484
1498
  */
1485
1499
  get scripts() {
1486
- throw new unexpected_call_error_1.default('Not supported "scripts" property');
1500
+ throw new UnexpectedCallError('Not supported "scripts" property');
1487
1501
  }
1488
1502
  /**
1489
1503
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1492,7 +1506,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1492
1506
  * @implements DOM API: `Document`
1493
1507
  */
1494
1508
  get scrollingElement() {
1495
- throw new unexpected_call_error_1.default('Not supported "scrollingElement" property');
1509
+ throw new UnexpectedCallError('Not supported "scrollingElement" property');
1496
1510
  }
1497
1511
  /**
1498
1512
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1501,7 +1515,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1501
1515
  * @implements DOM API: `Document`
1502
1516
  */
1503
1517
  get styleSheets() {
1504
- throw new unexpected_call_error_1.default('Not supported "styleSheets" property');
1518
+ throw new UnexpectedCallError('Not supported "styleSheets" property');
1505
1519
  }
1506
1520
  /**
1507
1521
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1510,7 +1524,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1510
1524
  * @implements DOM API: `Document`
1511
1525
  */
1512
1526
  get timeline() {
1513
- throw new unexpected_call_error_1.default('Not supported "timeline" property');
1527
+ throw new UnexpectedCallError('Not supported "timeline" property');
1514
1528
  }
1515
1529
  /**
1516
1530
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1519,7 +1533,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1519
1533
  * @implements DOM API: `Document`
1520
1534
  */
1521
1535
  get title() {
1522
- throw new unexpected_call_error_1.default('Not supported "title" property');
1536
+ throw new UnexpectedCallError('Not supported "title" property');
1523
1537
  }
1524
1538
  /**
1525
1539
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1528,7 +1542,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1528
1542
  * @implements DOM API: `Document`
1529
1543
  */
1530
1544
  get visibilityState() {
1531
- throw new unexpected_call_error_1.default('Not supported "visibilityState" property');
1545
+ throw new UnexpectedCallError('Not supported "visibilityState" property');
1532
1546
  }
1533
1547
  /**
1534
1548
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1538,7 +1552,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1538
1552
  * @implements DOM API: `Document`
1539
1553
  */
1540
1554
  get vlinkColor() {
1541
- throw new unexpected_call_error_1.default('Not supported "vlinkColor" property');
1555
+ throw new UnexpectedCallError('Not supported "vlinkColor" property');
1542
1556
  }
1543
1557
  /**
1544
1558
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1547,7 +1561,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1547
1561
  * @implements DOM API: `Document`
1548
1562
  */
1549
1563
  adoptNode(node) {
1550
- throw new unexpected_call_error_1.default('Not supported "adoptNode" method');
1564
+ throw new UnexpectedCallError('Not supported "adoptNode" method');
1551
1565
  }
1552
1566
  /**
1553
1567
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1557,7 +1571,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1557
1571
  * @implements DOM API: `Document`
1558
1572
  */
1559
1573
  captureEvents() {
1560
- throw new unexpected_call_error_1.default('Not supported "captureEvents" method');
1574
+ throw new UnexpectedCallError('Not supported "captureEvents" method');
1561
1575
  }
1562
1576
  /**
1563
1577
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1566,7 +1580,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1566
1580
  * @implements DOM API: `Document`
1567
1581
  */
1568
1582
  caretRangeFromPoint(x, y) {
1569
- throw new unexpected_call_error_1.default('Not supported "caretRangeFromPoint" method');
1583
+ throw new UnexpectedCallError('Not supported "caretRangeFromPoint" method');
1570
1584
  }
1571
1585
  /**
1572
1586
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1576,7 +1590,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1576
1590
  * @implements DOM API: `Document`
1577
1591
  */
1578
1592
  clear() {
1579
- throw new unexpected_call_error_1.default('Not supported "clear" method');
1593
+ throw new UnexpectedCallError('Not supported "clear" method');
1580
1594
  }
1581
1595
  /**
1582
1596
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1585,7 +1599,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1585
1599
  * @implements DOM API: `Document`
1586
1600
  */
1587
1601
  close() {
1588
- throw new unexpected_call_error_1.default('Not supported "close" method');
1602
+ throw new UnexpectedCallError('Not supported "close" method');
1589
1603
  }
1590
1604
  /**
1591
1605
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1594,7 +1608,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1594
1608
  * @implements DOM API: `Document`
1595
1609
  */
1596
1610
  createAttribute(localName) {
1597
- throw new unexpected_call_error_1.default('Not supported "createAttribute" method');
1611
+ throw new UnexpectedCallError('Not supported "createAttribute" method');
1598
1612
  }
1599
1613
  /**
1600
1614
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1603,7 +1617,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1603
1617
  * @implements DOM API: `Document`
1604
1618
  */
1605
1619
  createAttributeNS(namespace, qualifiedName) {
1606
- throw new unexpected_call_error_1.default('Not supported "createAttributeNS" method');
1620
+ throw new UnexpectedCallError('Not supported "createAttributeNS" method');
1607
1621
  }
1608
1622
  /**
1609
1623
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1612,7 +1626,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1612
1626
  * @implements DOM API: `Document`
1613
1627
  */
1614
1628
  createCDATASection(data) {
1615
- throw new unexpected_call_error_1.default('Not supported "createCDATASection" method');
1629
+ throw new UnexpectedCallError('Not supported "createCDATASection" method');
1616
1630
  }
1617
1631
  /**
1618
1632
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1621,7 +1635,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1621
1635
  * @implements DOM API: `Document`
1622
1636
  */
1623
1637
  createComment(data) {
1624
- throw new unexpected_call_error_1.default('Not supported "createComment" method');
1638
+ throw new UnexpectedCallError('Not supported "createComment" method');
1625
1639
  }
1626
1640
  /**
1627
1641
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1630,7 +1644,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1630
1644
  * @implements DOM API: `Document`
1631
1645
  */
1632
1646
  createDocumentFragment() {
1633
- throw new unexpected_call_error_1.default('Not supported "createDocumentFragment" method');
1647
+ throw new UnexpectedCallError('Not supported "createDocumentFragment" method');
1634
1648
  }
1635
1649
  /**
1636
1650
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1639,7 +1653,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1639
1653
  * @implements DOM API: `Document`
1640
1654
  */
1641
1655
  createElement(tagName, options) {
1642
- throw new unexpected_call_error_1.default('Not supported "createElement" method');
1656
+ throw new UnexpectedCallError('Not supported "createElement" method');
1643
1657
  }
1644
1658
  /**
1645
1659
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1648,7 +1662,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1648
1662
  * @implements DOM API: `Document`
1649
1663
  */
1650
1664
  createElementNS(namespace, qualifiedName, options) {
1651
- throw new unexpected_call_error_1.default('Not supported "createElementNS" method');
1665
+ throw new UnexpectedCallError('Not supported "createElementNS" method');
1652
1666
  }
1653
1667
  /**
1654
1668
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1657,7 +1671,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1657
1671
  * @implements DOM API: `Document`
1658
1672
  */
1659
1673
  createEvent(eventInterface) {
1660
- throw new unexpected_call_error_1.default('Not supported "createEvent" method');
1674
+ throw new UnexpectedCallError('Not supported "createEvent" method');
1661
1675
  }
1662
1676
  /**
1663
1677
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1665,8 +1679,10 @@ class MLDocument extends parent_node_1.MLParentNode {
1665
1679
  * @unsupported
1666
1680
  * @implements DOM API: `Document`
1667
1681
  */
1668
- createExpression(expression, resolver) {
1669
- throw new unexpected_call_error_1.default('Not supported "createExpression" method');
1682
+ createExpression(expression,
1683
+ // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1684
+ resolver) {
1685
+ throw new UnexpectedCallError('Not supported "createExpression" method');
1670
1686
  }
1671
1687
  /**
1672
1688
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1674,8 +1690,10 @@ class MLDocument extends parent_node_1.MLParentNode {
1674
1690
  * @unsupported
1675
1691
  * @implements DOM API: `Document`
1676
1692
  */
1677
- createNSResolver(nodeResolver) {
1678
- throw new unexpected_call_error_1.default('Not supported "createNSResolver" method');
1693
+ createNSResolver(
1694
+ // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1695
+ nodeResolver) {
1696
+ throw new UnexpectedCallError('Not supported "createNSResolver" method');
1679
1697
  }
1680
1698
  /**
1681
1699
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1683,8 +1701,12 @@ class MLDocument extends parent_node_1.MLParentNode {
1683
1701
  * @unsupported
1684
1702
  * @implements DOM API: `Document`
1685
1703
  */
1686
- createNodeIterator(root, whatToShow, filter) {
1687
- throw new unexpected_call_error_1.default('Not supported "createNodeIterator" method');
1704
+ createNodeIterator(
1705
+ // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1706
+ root, whatToShow,
1707
+ // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1708
+ filter) {
1709
+ throw new UnexpectedCallError('Not supported "createNodeIterator" method');
1688
1710
  }
1689
1711
  /**
1690
1712
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1693,7 +1715,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1693
1715
  * @implements DOM API: `Document`
1694
1716
  */
1695
1717
  createProcessingInstruction(target, data) {
1696
- throw new unexpected_call_error_1.default('Not supported "createProcessingInstruction" method');
1718
+ throw new UnexpectedCallError('Not supported "createProcessingInstruction" method');
1697
1719
  }
1698
1720
  /**
1699
1721
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1702,7 +1724,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1702
1724
  * @implements DOM API: `Document`
1703
1725
  */
1704
1726
  createRange() {
1705
- throw new unexpected_call_error_1.default('Not supported "createRange" method');
1727
+ throw new UnexpectedCallError('Not supported "createRange" method');
1706
1728
  }
1707
1729
  /**
1708
1730
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1711,7 +1733,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1711
1733
  * @implements DOM API: `Document`
1712
1734
  */
1713
1735
  createTextNode(data) {
1714
- throw new unexpected_call_error_1.default('Not supported "createTextNode" method');
1736
+ throw new UnexpectedCallError('Not supported "createTextNode" method');
1715
1737
  }
1716
1738
  /**
1717
1739
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1719,14 +1741,18 @@ class MLDocument extends parent_node_1.MLParentNode {
1719
1741
  * @unsupported
1720
1742
  * @implements DOM API: `Document`
1721
1743
  */
1722
- createTreeWalker(root, whatToShow, filter) {
1723
- throw new unexpected_call_error_1.default('Not supported "createTreeWalker" method');
1744
+ createTreeWalker(
1745
+ // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1746
+ root, whatToShow,
1747
+ // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1748
+ filter) {
1749
+ throw new UnexpectedCallError('Not supported "createTreeWalker" method');
1724
1750
  }
1725
1751
  /**
1726
1752
  * @implements `@markuplint/ml-core` API: `MLDocument`
1727
1753
  */
1728
1754
  debugMap() {
1729
- return (0, debug_2.nodeListToDebugMaps)(this.nodeList, true);
1755
+ return nodeListToDebugMaps(this.nodeList, true);
1730
1756
  }
1731
1757
  /**
1732
1758
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1735,7 +1761,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1735
1761
  * @implements DOM API: `Document`
1736
1762
  */
1737
1763
  elementFromPoint(x, y) {
1738
- throw new unexpected_call_error_1.default('Not supported "elementFromPoint" method');
1764
+ throw new UnexpectedCallError('Not supported "elementFromPoint" method');
1739
1765
  }
1740
1766
  /**
1741
1767
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1744,7 +1770,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1744
1770
  * @implements DOM API: `Document`
1745
1771
  */
1746
1772
  elementsFromPoint(x, y) {
1747
- throw new unexpected_call_error_1.default('Not supported "elementsFromPoint" method');
1773
+ throw new UnexpectedCallError('Not supported "elementsFromPoint" method');
1748
1774
  }
1749
1775
  /**
1750
1776
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1752,8 +1778,14 @@ class MLDocument extends parent_node_1.MLParentNode {
1752
1778
  * @unsupported
1753
1779
  * @implements DOM API: `Document`
1754
1780
  */
1755
- evaluate(expression, contextNode, resolver, type, result) {
1756
- throw new unexpected_call_error_1.default('Not supported "evaluate" method');
1781
+ evaluate(expression,
1782
+ // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1783
+ contextNode,
1784
+ // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1785
+ resolver, type,
1786
+ // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1787
+ result) {
1788
+ throw new UnexpectedCallError('Not supported "evaluate" method');
1757
1789
  }
1758
1790
  /**
1759
1791
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1763,7 +1795,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1763
1795
  * @implements DOM API: `Document`
1764
1796
  */
1765
1797
  execCommand(commandId, showUI, value) {
1766
- throw new unexpected_call_error_1.default('Not supported "execCommand" method');
1798
+ throw new UnexpectedCallError('Not supported "execCommand" method');
1767
1799
  }
1768
1800
  /**
1769
1801
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1772,7 +1804,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1772
1804
  * @implements DOM API: `Document`
1773
1805
  */
1774
1806
  exitFullscreen() {
1775
- throw new unexpected_call_error_1.default('Not supported "exitFullscreen" method');
1807
+ throw new UnexpectedCallError('Not supported "exitFullscreen" method');
1776
1808
  }
1777
1809
  /**
1778
1810
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1781,7 +1813,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1781
1813
  * @implements DOM API: `Document`
1782
1814
  */
1783
1815
  exitPictureInPicture() {
1784
- throw new unexpected_call_error_1.default('Not supported "exitPictureInPicture" method');
1816
+ throw new UnexpectedCallError('Not supported "exitPictureInPicture" method');
1785
1817
  }
1786
1818
  /**
1787
1819
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1790,7 +1822,47 @@ class MLDocument extends parent_node_1.MLParentNode {
1790
1822
  * @implements DOM API: `Document`
1791
1823
  */
1792
1824
  exitPointerLock() {
1793
- throw new unexpected_call_error_1.default('Not supported "exitPointerLock" method');
1825
+ throw new UnexpectedCallError('Not supported "exitPointerLock" method');
1826
+ }
1827
+ getAccessibilityProp(
1828
+ // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1829
+ node, ariaVersion = ARIA_RECOMMENDED_VERSION) {
1830
+ if (!node.is(node.ELEMENT_NODE)) {
1831
+ return null;
1832
+ }
1833
+ const exposed = isExposed(node, node.ownerMLDocument.specs, ariaVersion);
1834
+ if (!exposed) {
1835
+ return {
1836
+ exposedToTree: false,
1837
+ };
1838
+ }
1839
+ const aria = {
1840
+ exposedToTree: true,
1841
+ };
1842
+ const role = getComputedRole(node.ownerMLDocument.specs, node, ariaVersion);
1843
+ const name = getAccname(node).trim();
1844
+ const focusable = mayBeFocusable(node, node.ownerMLDocument.specs);
1845
+ const nameRequired = role.role?.accessibleNameRequired ?? false;
1846
+ const nameProhibited = role.role?.accessibleNameProhibited ?? false;
1847
+ aria.role = role.role?.name;
1848
+ aria.nameRequired = nameRequired;
1849
+ aria.nameProhibited = nameProhibited;
1850
+ aria.name = name;
1851
+ aria.focusable = focusable;
1852
+ Object.values(getComputedAriaProps(node.ownerMLDocument.specs, node, ariaVersion)).forEach(prop => {
1853
+ if (!prop.required) {
1854
+ if (prop.from === 'default') {
1855
+ return;
1856
+ }
1857
+ }
1858
+ aria.props = aria.props || {};
1859
+ const propName = prop.name.replace('aria-', '');
1860
+ aria.props[propName] = {
1861
+ value: prop.value ?? null,
1862
+ required: prop.required,
1863
+ };
1864
+ });
1865
+ return aria;
1794
1866
  }
1795
1867
  /**
1796
1868
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1799,7 +1871,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1799
1871
  * @implements DOM API: `Document`
1800
1872
  */
1801
1873
  getAnimations() {
1802
- throw new unexpected_call_error_1.default('Not supported "getAnimations" method');
1874
+ throw new UnexpectedCallError('Not supported "getAnimations" method');
1803
1875
  }
1804
1876
  /**
1805
1877
  * @implements DOM API: `Document`
@@ -1815,7 +1887,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1815
1887
  * @implements DOM API: `Document`
1816
1888
  */
1817
1889
  getElementsByClassName(classNames) {
1818
- return (0, node_list_1.nodeListToHTMLCollection)(this.querySelectorAll(classNames));
1890
+ return nodeListToHTMLCollection(this.querySelectorAll(classNames));
1819
1891
  }
1820
1892
  /**
1821
1893
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1824,7 +1896,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1824
1896
  * @implements DOM API: `Document`
1825
1897
  */
1826
1898
  getElementsByName(elementName) {
1827
- throw new unexpected_call_error_1.default('Not supported "getElementsByName" method');
1899
+ throw new UnexpectedCallError('Not supported "getElementsByName" method');
1828
1900
  }
1829
1901
  /**
1830
1902
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1833,7 +1905,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1833
1905
  * @implements DOM API: `Document`
1834
1906
  */
1835
1907
  getElementsByTagName(qualifiedName) {
1836
- return (0, node_list_1.nodeListToHTMLCollection)(this.querySelectorAll(qualifiedName));
1908
+ return nodeListToHTMLCollection(this.querySelectorAll(qualifiedName));
1837
1909
  }
1838
1910
  /**
1839
1911
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1842,7 +1914,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1842
1914
  * @implements DOM API: `Document`
1843
1915
  */
1844
1916
  getElementsByTagNameNS(namespace, localName) {
1845
- throw new unexpected_call_error_1.default('Not supported "getElementsByTagNameNS" method');
1917
+ throw new UnexpectedCallError('Not supported "getElementsByTagNameNS" method');
1846
1918
  }
1847
1919
  /**
1848
1920
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1851,14 +1923,14 @@ class MLDocument extends parent_node_1.MLParentNode {
1851
1923
  * @implements DOM API: `Document`
1852
1924
  */
1853
1925
  getSelection() {
1854
- throw new unexpected_call_error_1.default('Not supported "getSelection" method');
1926
+ throw new UnexpectedCallError('Not supported "getSelection" method');
1855
1927
  }
1856
1928
  /**
1857
1929
  * @implements `@markuplint/ml-core` API: `MLDocument`
1858
1930
  */
1859
1931
  getTokenList() {
1860
- if (tslib_1.__classPrivateFieldGet(this, _MLDocument_tokenList, "f")) {
1861
- return tslib_1.__classPrivateFieldGet(this, _MLDocument_tokenList, "f");
1932
+ if (__classPrivateFieldGet(this, _MLDocument_tokenList, "f")) {
1933
+ return __classPrivateFieldGet(this, _MLDocument_tokenList, "f");
1862
1934
  }
1863
1935
  const tokens = [];
1864
1936
  for (const node of this.nodeList) {
@@ -1868,8 +1940,8 @@ class MLDocument extends parent_node_1.MLParentNode {
1868
1940
  }
1869
1941
  }
1870
1942
  tokens.sort((a, b) => a.startOffset - b.startOffset);
1871
- tslib_1.__classPrivateFieldSet(this, _MLDocument_tokenList, Object.freeze(tokens), "f");
1872
- return tslib_1.__classPrivateFieldGet(this, _MLDocument_tokenList, "f");
1943
+ __classPrivateFieldSet(this, _MLDocument_tokenList, Object.freeze(tokens), "f");
1944
+ return __classPrivateFieldGet(this, _MLDocument_tokenList, "f");
1873
1945
  }
1874
1946
  /**
1875
1947
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1878,7 +1950,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1878
1950
  * @implements DOM API: `Document`
1879
1951
  */
1880
1952
  hasFocus() {
1881
- throw new unexpected_call_error_1.default('Not supported "hasFocus" method');
1953
+ throw new UnexpectedCallError('Not supported "hasFocus" method');
1882
1954
  }
1883
1955
  /**
1884
1956
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1887,7 +1959,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1887
1959
  * @implements DOM API: `Document`
1888
1960
  */
1889
1961
  hasStorageAccess() {
1890
- throw new unexpected_call_error_1.default('Not supported "hasStorageAccess" method');
1962
+ throw new UnexpectedCallError('Not supported "hasStorageAccess" method');
1891
1963
  }
1892
1964
  /**
1893
1965
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1896,7 +1968,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1896
1968
  * @implements DOM API: `Document`
1897
1969
  */
1898
1970
  importNode(node, deep) {
1899
- throw new unexpected_call_error_1.default('Not supported "importNode" method');
1971
+ throw new UnexpectedCallError('Not supported "importNode" method');
1900
1972
  }
1901
1973
  /**
1902
1974
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1905,7 +1977,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1905
1977
  * @implements DOM API: `Document`
1906
1978
  */
1907
1979
  open(url, name, features) {
1908
- throw new unexpected_call_error_1.default('Not supported "open" method');
1980
+ throw new UnexpectedCallError('Not supported "open" method');
1909
1981
  }
1910
1982
  /**
1911
1983
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1915,7 +1987,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1915
1987
  * @implements DOM API: `Document`
1916
1988
  */
1917
1989
  queryCommandEnabled(commandId) {
1918
- throw new unexpected_call_error_1.default('Not supported "queryCommandEnabled" method');
1990
+ throw new UnexpectedCallError('Not supported "queryCommandEnabled" method');
1919
1991
  }
1920
1992
  /**
1921
1993
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1925,7 +1997,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1925
1997
  * @implements DOM API: `Document`
1926
1998
  */
1927
1999
  queryCommandIndeterm(commandId) {
1928
- throw new unexpected_call_error_1.default('Not supported "queryCommandIndeterm" method');
2000
+ throw new UnexpectedCallError('Not supported "queryCommandIndeterm" method');
1929
2001
  }
1930
2002
  /**
1931
2003
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1935,7 +2007,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1935
2007
  * @implements DOM API: `Document`
1936
2008
  */
1937
2009
  queryCommandState(commandId) {
1938
- throw new unexpected_call_error_1.default('Not supported "queryCommandState" method');
2010
+ throw new UnexpectedCallError('Not supported "queryCommandState" method');
1939
2011
  }
1940
2012
  /**
1941
2013
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1945,7 +2017,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1945
2017
  * @implements DOM API: `Document`
1946
2018
  */
1947
2019
  queryCommandSupported(commandId) {
1948
- throw new unexpected_call_error_1.default('Not supported "queryCommandSupported" method');
2020
+ throw new UnexpectedCallError('Not supported "queryCommandSupported" method');
1949
2021
  }
1950
2022
  /**
1951
2023
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1955,7 +2027,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1955
2027
  * @implements DOM API: `Document`
1956
2028
  */
1957
2029
  queryCommandValue(commandId) {
1958
- throw new unexpected_call_error_1.default('Not supported "queryCommandValue" method');
2030
+ throw new UnexpectedCallError('Not supported "queryCommandValue" method');
1959
2031
  }
1960
2032
  /**
1961
2033
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1965,7 +2037,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1965
2037
  * @implements DOM API: `Document`
1966
2038
  */
1967
2039
  releaseEvents() {
1968
- throw new unexpected_call_error_1.default('Not supported "releaseEvents" method');
2040
+ throw new UnexpectedCallError('Not supported "releaseEvents" method');
1969
2041
  }
1970
2042
  /**
1971
2043
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1974,7 +2046,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1974
2046
  * @implements DOM API: `Document`
1975
2047
  */
1976
2048
  requestStorageAccess() {
1977
- throw new unexpected_call_error_1.default('Not supported "requestStorageAccess" method');
2049
+ throw new UnexpectedCallError('Not supported "requestStorageAccess" method');
1978
2050
  }
1979
2051
  /**
1980
2052
  * @implements `@markuplint/ml-core` API: `MLDocument`
@@ -2004,7 +2076,7 @@ class MLDocument extends parent_node_1.MLParentNode {
2004
2076
  return html.join('');
2005
2077
  }
2006
2078
  walkOn(type, walker, skipWhenRuleIsDisabled = true) {
2007
- return (0, walkers_1.sequentialWalker)(this.nodeList, node => {
2079
+ return sequentialWalker(this.nodeList, node => {
2008
2080
  if (skipWhenRuleIsDisabled && node.rule.disabled) {
2009
2081
  return;
2010
2082
  }
@@ -2018,7 +2090,7 @@ class MLDocument extends parent_node_1.MLParentNode {
2018
2090
  return walker(node);
2019
2091
  }
2020
2092
  if (type === 'Attr' && node.is(node.ELEMENT_NODE)) {
2021
- return (0, walkers_1.sequentialWalker)(Array.from(node.attributes), attr => walker(attr));
2093
+ return sequentialWalker(Array.from(node.attributes), attr => walker(attr));
2022
2094
  }
2023
2095
  if (type === 'ElementCloseTag' && node.is(node.ELEMENT_NODE) && node.closeTag) {
2024
2096
  return walker(node.closeTag);
@@ -2032,7 +2104,7 @@ class MLDocument extends parent_node_1.MLParentNode {
2032
2104
  * @implements DOM API: `Document`
2033
2105
  */
2034
2106
  write(...text) {
2035
- throw new unexpected_call_error_1.default('Not supported "write" method');
2107
+ throw new UnexpectedCallError('Not supported "write" method');
2036
2108
  }
2037
2109
  /**
2038
2110
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -2041,7 +2113,7 @@ class MLDocument extends parent_node_1.MLParentNode {
2041
2113
  * @implements DOM API: `Document`
2042
2114
  */
2043
2115
  writeln(...text) {
2044
- throw new unexpected_call_error_1.default('Not supported "writeln" method');
2116
+ throw new UnexpectedCallError('Not supported "writeln" method');
2045
2117
  }
2046
2118
  _pretending(pretenders) {
2047
2119
  if (docLog.enabled) {
@@ -2060,10 +2132,13 @@ class MLDocument extends parent_node_1.MLParentNode {
2060
2132
  if (docLog.enabled) {
2061
2133
  docLog('Rule Mapping: %O', Object.keys(ruleset.rules));
2062
2134
  }
2063
- const ruleMapper = new rule_mapper_1.RuleMapper(this);
2135
+ const ruleMapper = new RuleMapper(this);
2064
2136
  // global rules to #document
2065
2137
  Object.keys(ruleset.rules).forEach(ruleName => {
2066
2138
  const rule = ruleset.rules[ruleName];
2139
+ if (rule == null) {
2140
+ return;
2141
+ }
2067
2142
  ruleMapper.set(this, ruleName, {
2068
2143
  from: 'rules',
2069
2144
  specificity: [0, 0, 0],
@@ -2078,6 +2153,9 @@ class MLDocument extends parent_node_1.MLParentNode {
2078
2153
  // global rules to each element
2079
2154
  Object.keys(ruleset.rules).forEach(ruleName => {
2080
2155
  const rule = ruleset.rules[ruleName];
2156
+ if (rule == null) {
2157
+ return;
2158
+ }
2081
2159
  ruleMapper.set(node, ruleName, {
2082
2160
  from: 'rules',
2083
2161
  specificity: [0, 0, 0],
@@ -2096,8 +2174,8 @@ class MLDocument extends parent_node_1.MLParentNode {
2096
2174
  if (!selectorTarget) {
2097
2175
  return;
2098
2176
  }
2099
- const selector = nodeRule.selector || nodeRule.regexSelector;
2100
- const matches = (0, selector_1.matchSelector)(selectorTarget, selector);
2177
+ const selector = nodeRule.selector ?? nodeRule.regexSelector;
2178
+ const matches = matchSelector(selectorTarget, selector);
2101
2179
  if (!matches.matched) {
2102
2180
  return;
2103
2181
  }
@@ -2107,12 +2185,15 @@ class MLDocument extends parent_node_1.MLParentNode {
2107
2185
  const ruleList = Object.keys(nodeRule.rules);
2108
2186
  for (const ruleName of ruleList) {
2109
2187
  const rule = nodeRule.rules[ruleName];
2110
- const convertedRule = (0, ml_config_1.exchangeValueOnRule)(rule, matches.data || {});
2188
+ if (rule == null) {
2189
+ continue;
2190
+ }
2191
+ const convertedRule = exchangeValueOnRule(rule, matches.data ?? {});
2111
2192
  if (convertedRule === undefined) {
2112
2193
  continue;
2113
2194
  }
2114
2195
  const globalRule = ruleset.rules[ruleName];
2115
- const mergedRule = globalRule ? (0, ml_config_1.mergeRule)(globalRule, convertedRule) : convertedRule;
2196
+ const mergedRule = globalRule != null ? mergeRule(globalRule, convertedRule) : convertedRule;
2116
2197
  ruleLog('↑ nodeRule (%s): %O', ruleName, mergedRule);
2117
2198
  ruleMapper.set(node, ruleName, {
2118
2199
  from: 'nodeRules',
@@ -2122,22 +2203,22 @@ class MLDocument extends parent_node_1.MLParentNode {
2122
2203
  }
2123
2204
  });
2124
2205
  // overwrite rule to child node
2125
- if (selectorTarget && ruleset.childNodeRules.length) {
2206
+ if (selectorTarget && ruleset.childNodeRules.length > 0) {
2126
2207
  const descendants = [];
2127
2208
  const children = Array.from(selectorTarget.childNodes);
2128
- (0, walkers_1.syncWalk)(children, childNode => {
2209
+ syncWalk(children, childNode => {
2129
2210
  descendants.push(childNode);
2130
2211
  });
2131
- ruleset.childNodeRules.forEach((nodeRule, i) => {
2212
+ ruleset.childNodeRules.forEach(nodeRule => {
2132
2213
  if (!nodeRule.rules) {
2133
2214
  return;
2134
2215
  }
2135
2216
  const nodeRuleRules = nodeRule.rules;
2136
- const selector = nodeRule.selector || nodeRule.regexSelector;
2137
- if (!selector) {
2217
+ const selector = nodeRule.selector ?? nodeRule.regexSelector;
2218
+ if (selector == null) {
2138
2219
  return;
2139
2220
  }
2140
- const matches = (0, selector_1.matchSelector)(selectorTarget, selector);
2221
+ const matches = matchSelector(selectorTarget, selector);
2141
2222
  if (!matches.matched) {
2142
2223
  return;
2143
2224
  }
@@ -2147,12 +2228,15 @@ class MLDocument extends parent_node_1.MLParentNode {
2147
2228
  const targetDescendants = nodeRule.inheritance ? descendants : children;
2148
2229
  Object.keys(nodeRuleRules).forEach(ruleName => {
2149
2230
  const rule = nodeRuleRules[ruleName];
2150
- const convertedRule = (0, ml_config_1.exchangeValueOnRule)(rule, matches.data || {});
2231
+ if (rule == null) {
2232
+ return;
2233
+ }
2234
+ const convertedRule = exchangeValueOnRule(rule, matches.data ?? {});
2151
2235
  if (convertedRule === undefined) {
2152
2236
  return;
2153
2237
  }
2154
2238
  const globalRule = ruleset.rules[ruleName];
2155
- const mergedRule = globalRule ? (0, ml_config_1.mergeRule)(globalRule, convertedRule) : convertedRule;
2239
+ const mergedRule = globalRule != null ? mergeRule(globalRule, convertedRule) : convertedRule;
2156
2240
  ruleLog('↑ childNodeRule (%s): %O', ruleName, mergedRule);
2157
2241
  targetDescendants.forEach(descendant => {
2158
2242
  ruleMapper.set(descendant, ruleName, {
@@ -2168,5 +2252,4 @@ class MLDocument extends parent_node_1.MLParentNode {
2168
2252
  ruleMapper.apply();
2169
2253
  }
2170
2254
  }
2171
- exports.MLDocument = MLDocument;
2172
2255
  _MLDocument_filename = new WeakMap(), _MLDocument_tokenList = new WeakMap();