@markuplint/ml-core 2.3.3 → 3.0.0-alpha.1

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