@markuplint/ml-core 3.4.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/lib/configs.js +1 -2
  2. package/lib/index.d.ts +1 -11
  3. package/lib/ml-core.d.ts +12 -23
  4. package/lib/ml-core.js +4 -4
  5. package/lib/ml-dom/helper/accname.js +15 -5
  6. package/lib/ml-dom/helper/create-node.d.ts +2 -5
  7. package/lib/ml-dom/helper/create-node.js +3 -1
  8. package/lib/ml-dom/helper/debug.js +6 -2
  9. package/lib/ml-dom/helper/getIndent.d.ts +7 -7
  10. package/lib/ml-dom/helper/getIndent.js +11 -3
  11. package/lib/ml-dom/helper/walkers.d.ts +5 -13
  12. package/lib/ml-dom/helper/walkers.js +3 -1
  13. package/lib/ml-dom/manipulations/child-node-methods.d.ts +7 -20
  14. package/lib/ml-dom/manipulations/child-node-methods.js +24 -6
  15. package/lib/ml-dom/manipulations/get-children.d.ts +2 -4
  16. package/lib/ml-dom/manipulations/get-children.js +3 -1
  17. package/lib/ml-dom/node/attr.d.ts +91 -91
  18. package/lib/ml-dom/node/attr.js +5 -1
  19. package/lib/ml-dom/node/block.d.ts +32 -32
  20. package/lib/ml-dom/node/block.js +14 -4
  21. package/lib/ml-dom/node/character-data.d.ts +53 -60
  22. package/lib/ml-dom/node/character-data.js +9 -3
  23. package/lib/ml-dom/node/child-node.d.ts +3 -8
  24. package/lib/ml-dom/node/child-node.js +3 -1
  25. package/lib/ml-dom/node/comment.d.ts +13 -16
  26. package/lib/ml-dom/node/document-fragment.d.ts +20 -23
  27. package/lib/ml-dom/node/document-type.d.ts +32 -35
  28. package/lib/ml-dom/node/document-type.js +14 -4
  29. package/lib/ml-dom/node/document.d.ts +1586 -1599
  30. package/lib/ml-dom/node/document.js +29 -7
  31. package/lib/ml-dom/node/dom-token-list.d.ts +26 -26
  32. package/lib/ml-dom/node/dom-token-list.js +3 -1
  33. package/lib/ml-dom/node/element.d.ts +1897 -1895
  34. package/lib/ml-dom/node/element.js +58 -14
  35. package/lib/ml-dom/node/named-node-map.d.ts +40 -45
  36. package/lib/ml-dom/node/named-node-map.js +9 -3
  37. package/lib/ml-dom/node/node-list.d.ts +4 -10
  38. package/lib/ml-dom/node/node-list.js +6 -2
  39. package/lib/ml-dom/node/node-store.d.ts +4 -4
  40. package/lib/ml-dom/node/node-store.js +8 -3
  41. package/lib/ml-dom/node/node.d.ts +472 -492
  42. package/lib/ml-dom/node/node.js +42 -14
  43. package/lib/ml-dom/node/parent-node.d.ts +58 -67
  44. package/lib/ml-dom/node/parent-node.js +9 -3
  45. package/lib/ml-dom/node/rule-mapper.d.ts +7 -7
  46. package/lib/ml-dom/node/rule-mapper.js +6 -2
  47. package/lib/ml-dom/node/text.d.ts +47 -50
  48. package/lib/ml-dom/node/types.d.ts +13 -69
  49. package/lib/ml-dom/node/unexpected-call-error.d.ts +2 -1
  50. package/lib/ml-dom/token/token.d.ts +44 -44
  51. package/lib/ml-rule/create-rule.d.ts +2 -2
  52. package/lib/ml-rule/create-test-rule.d.ts +4 -6
  53. package/lib/ml-rule/ml-rule-context.d.ts +49 -57
  54. package/lib/ml-rule/ml-rule-context.js +3 -1
  55. package/lib/ml-rule/ml-rule.d.ts +25 -27
  56. package/lib/ml-rule/ml-rule.js +30 -24
  57. package/lib/ml-rule/types.d.ts +16 -22
  58. package/lib/plugin/plugin.d.ts +1 -1
  59. package/lib/plugin/types.d.ts +7 -7
  60. package/lib/ruleset/index.d.ts +4 -4
  61. package/lib/ruleset/index.js +4 -4
  62. package/lib/test/index.d.ts +8 -20
  63. package/lib/types.d.ts +9 -8
  64. package/lib/utils/get-location-from-chars.d.ts +4 -9
  65. package/package.json +14 -12
@@ -7,1607 +7,1594 @@ import type { MLText } from './text';
7
7
  import type { DocumentNodeType } from './types';
8
8
  import type { MLRule } from '../../ml-rule';
9
9
  import type Ruleset from '../../ruleset';
10
+ import type { MLSchema } from '../../types';
10
11
  import type { Walker } from '../helper/walkers';
11
12
  import type { MLToken } from '../token/token';
12
13
  import type { EndTagType, MLASTDocument } from '@markuplint/ml-ast';
13
- import type { Pretender, RuleConfigValue } from '@markuplint/ml-config';
14
- import type { ExtendedSpec, MLMLSpec } from '@markuplint/ml-spec';
14
+ import type { PlainData, Pretender, RuleConfigValue } from '@markuplint/ml-config';
15
+ import type { MLMLSpec } from '@markuplint/ml-spec';
15
16
  import { MLParentNode } from './parent-node';
16
- export declare class MLDocument<T extends RuleConfigValue, O = null> extends MLParentNode<T, O> implements Document {
17
- #private;
18
- /**
19
- * Detect value as a true if its attribute is booleanish value and omitted.
20
- *
21
- * Ex:
22
- * ```jsx
23
- * <Component aria-hidden />
24
- * ```
25
- *
26
- * In the above, the `aria-hidden` is `true`.
27
- *
28
- * @default false
29
- */
30
- readonly booleanish: boolean;
31
- /**
32
- *
33
- */
34
- currentRule: MLRule<T, O> | null;
35
- /**
36
- * This is defined by the parser.
37
- *
38
- * @default "omittable"
39
- */
40
- readonly endTag: EndTagType;
41
- /**
42
- *
43
- */
44
- readonly isFragment: boolean;
45
- /**
46
- * An array of markuplint DOM nodes
47
- */
48
- readonly nodeList: ReadonlyArray<MLNode<T, O>>;
49
- readonly ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
50
- readonly ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
51
- readonly ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
52
- readonly ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
53
- /**
54
- *
55
- */
56
- readonly specs: Readonly<MLMLSpec>;
57
- /**
58
- *
59
- * @param ast node list of markuplint AST
60
- * @param ruleset ruleset object
61
- */
62
- constructor(
63
- ast: MLASTDocument,
64
- ruleset: Ruleset,
65
- schemas: readonly [MLMLSpec, ...ExtendedSpec[]],
66
- options?: {
67
- filename?: string;
68
- endTag?: 'xml' | 'omittable' | 'never';
69
- booleanish?: boolean;
70
- pretenders?: Pretender[];
71
- },
72
- );
73
- /**
74
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
75
- *
76
- * @unsupported
77
- * @implements DOM API: `Document`
78
- */
79
- get URL(): string;
80
- /**
81
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
82
- *
83
- * @unsupported
84
- * @implements DOM API: `Document`
85
- */
86
- get activeElement(): Element | null;
87
- /**
88
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
89
- *
90
- * @unsupported
91
- * @implements DOM API: `Document`
92
- */
93
- get adoptedStyleSheets(): CSSStyleSheet[];
94
- /**
95
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
96
- *
97
- * @deprecated
98
- * @unsupported
99
- * @implements DOM API: `Document`
100
- */
101
- get alinkColor(): string;
102
- /**
103
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
104
- *
105
- * @deprecated
106
- * @unsupported
107
- * @implements DOM API: `Document`
108
- */
109
- get all(): HTMLAllCollection;
110
- /**
111
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
112
- *
113
- * @deprecated
114
- * @unsupported
115
- * @implements DOM API: `Document`
116
- */
117
- get anchors(): HTMLCollectionOf<HTMLAnchorElement>;
118
- /**
119
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
120
- *
121
- * @deprecated
122
- * @unsupported
123
- * @implements DOM API: `Document`
124
- */
125
- get applets(): HTMLCollection;
126
- /**
127
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
128
- *
129
- * @deprecated
130
- * @unsupported
131
- * @implements DOM API: `Document`
132
- */
133
- get bgColor(): string;
134
- /**
135
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
136
- *
137
- * @unsupported
138
- * @implements DOM API: `Document`
139
- */
140
- get body(): HTMLElement;
141
- /**
142
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
143
- *
144
- * @unsupported
145
- * @implements DOM API: `Document`
146
- */
147
- get characterSet(): string;
148
- /**
149
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
150
- *
151
- * @deprecated
152
- * @unsupported
153
- * @implements DOM API: `Document`
154
- */
155
- get charset(): string;
156
- /**
157
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
158
- *
159
- * @unsupported
160
- * @implements DOM API: `Document`
161
- */
162
- get compatMode(): string;
163
- /**
164
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
165
- *
166
- * @unsupported
167
- * @implements DOM API: `Document`
168
- */
169
- get contentType(): string;
170
- /**
171
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
172
- *
173
- * @unsupported
174
- * @implements DOM API: `Document`
175
- */
176
- get cookie(): string;
177
- /**
178
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
179
- *
180
- * @unsupported
181
- * @implements DOM API: `Document`
182
- */
183
- get currentScript(): HTMLOrSVGScriptElement | null;
184
- /**
185
- * Window object for calling the `getComputedStyle` and the `getPropertyValue` that
186
- * are needed by **Accessible Name and Description Computation**.
187
- * But it always returns the empty object.
188
- * (It may improve to possible to compute the name from the `style` attribute in the future.)
189
- *
190
- * @implements DOM API: `Document`
191
- */
192
- get defaultView(): any;
193
- /**
194
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
195
- *
196
- * @unsupported
197
- * @implements DOM API: `Document`
198
- */
199
- get designMode(): string;
200
- /**
201
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
202
- *
203
- * @unsupported
204
- * @implements DOM API: `Document`
205
- */
206
- get dir(): string;
207
- /**
208
- * @implements DOM API: `Document`
209
- */
210
- get doctype(): MLDocumentType<T, O> | null;
211
- /**
212
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
213
- *
214
- * @unsupported
215
- * @implements DOM API: `Document`
216
- */
217
- get documentElement(): HTMLElement;
218
- /**
219
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
220
- *
221
- * @unsupported
222
- * @implements DOM API: `Document`
223
- */
224
- get documentURI(): string;
225
- /**
226
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
227
- *
228
- * @unsupported
229
- * @implements DOM API: `Document`
230
- */
231
- get domain(): string;
232
- /**
233
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
234
- *
235
- * @unsupported
236
- * @implements DOM API: `Document`
237
- */
238
- get embeds(): HTMLCollectionOf<HTMLEmbedElement>;
239
- /**
240
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
241
- *
242
- * @deprecated
243
- * @unsupported
244
- * @implements DOM API: `Document`
245
- */
246
- get fgColor(): string;
247
- /**
248
- * It could be used in rule, make sure it is immutable
249
- *
250
- * @implements `@markuplint/ml-core` API: `MLDOMDocument`
251
- */
252
- get filename(): string | undefined;
253
- /**
254
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
255
- *
256
- * @unsupported
257
- * @implements DOM API: `Document`
258
- */
259
- get fonts(): FontFaceSet;
260
- /**
261
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
262
- *
263
- * @unsupported
264
- * @implements DOM API: `Document`
265
- */
266
- get forms(): HTMLCollectionOf<HTMLFormElement>;
267
- /**
268
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
269
- *
270
- * @deprecated
271
- * @unsupported
272
- * @implements DOM API: `Document`
273
- */
274
- get fullscreen(): boolean;
275
- /**
276
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
277
- *
278
- * @unsupported
279
- * @implements DOM API: `Document`
280
- */
281
- get fullscreenElement(): Element | null;
282
- /**
283
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
284
- *
285
- * @unsupported
286
- * @implements DOM API: `Document`
287
- */
288
- get fullscreenEnabled(): boolean;
289
- /**
290
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
291
- *
292
- * @unsupported
293
- * @implements DOM API: `Document`
294
- */
295
- get head(): HTMLHeadElement;
296
- /**
297
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
298
- *
299
- * @unsupported
300
- * @implements DOM API: `Document`
301
- */
302
- get hidden(): boolean;
303
- /**
304
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
305
- *
306
- * @unsupported
307
- * @implements DOM API: `Document`
308
- */
309
- get images(): HTMLCollectionOf<HTMLImageElement>;
310
- /**
311
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
312
- *
313
- * @unsupported
314
- * @implements DOM API: `Document`
315
- */
316
- get implementation(): DOMImplementation;
317
- /**
318
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
319
- *
320
- * @deprecated
321
- * @unsupported
322
- * @implements DOM API: `Document`
323
- */
324
- get inputEncoding(): string;
325
- /**
326
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
327
- *
328
- * @unsupported
329
- * @implements DOM API: `Document`
330
- */
331
- get lastModified(): string;
332
- /**
333
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
334
- *
335
- * @deprecated
336
- * @unsupported
337
- * @implements DOM API: `Document`
338
- */
339
- get linkColor(): string;
340
- /**
341
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
342
- *
343
- * @unsupported
344
- * @implements DOM API: `Document`
345
- */
346
- get links(): HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
347
- /**
348
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
349
- *
350
- * @unsupported
351
- * @implements DOM API: `Document`
352
- */
353
- get location(): Location;
354
- /**
355
- * Returns a string appropriate for the type of node as `Document`
356
- *
357
- * @see https://dom.spec.whatwg.org/#ref-for-document%E2%91%A8
358
- */
359
- get nodeName(): '#document';
360
- /**
361
- * Returns a number appropriate for the type of `Document`
362
- */
363
- get nodeType(): DocumentNodeType;
364
- /**
365
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
366
- *
367
- * @deprecated
368
- * @unsupported
369
- * @implements DOM API: `Document`
370
- */
371
- get onabort(): ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
372
- /**
373
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
374
- *
375
- * @deprecated
376
- * @unsupported
377
- * @implements DOM API: `Document`
378
- */
379
- get onanimationcancel(): ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
380
- /**
381
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
382
- *
383
- * @deprecated
384
- * @unsupported
385
- * @implements DOM API: `Document`
386
- */
387
- get onanimationend(): ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
388
- /**
389
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
390
- *
391
- * @deprecated
392
- * @unsupported
393
- * @implements DOM API: `Document`
394
- */
395
- get onanimationiteration(): ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
396
- /**
397
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
398
- *
399
- * @deprecated
400
- * @unsupported
401
- * @implements DOM API: `Document`
402
- */
403
- get onanimationstart(): ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
404
- /**
405
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
406
- *
407
- * @deprecated
408
- * @unsupported
409
- * @implements DOM API: `Document`
410
- */
411
- get onauxclick(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
412
- /**
413
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
414
- *
415
- * @deprecated
416
- * @unsupported
417
- * @implements DOM API: `Document`
418
- */
419
- get onbeforeinput(): ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
420
- /**
421
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
422
- *
423
- * @deprecated
424
- * @unsupported
425
- * @implements DOM API: `Document`
426
- */
427
- get onblur(): ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
428
- /**
429
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
430
- *
431
- * @deprecated
432
- * @unsupported
433
- * @implements DOM API: `Document`
434
- */
435
- get oncancel(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
436
- /**
437
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
438
- *
439
- * @deprecated
440
- * @unsupported
441
- * @implements DOM API: `Document`
442
- */
443
- get oncanplay(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
444
- /**
445
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
446
- *
447
- * @deprecated
448
- * @unsupported
449
- * @implements DOM API: `Document`
450
- */
451
- get oncanplaythrough(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
452
- /**
453
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
454
- *
455
- * @deprecated
456
- * @unsupported
457
- * @implements DOM API: `Document`
458
- */
459
- get onchange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
460
- /**
461
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
462
- *
463
- * @deprecated
464
- * @unsupported
465
- * @implements DOM API: `Document`
466
- */
467
- get onclick(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
468
- /**
469
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
470
- *
471
- * @deprecated
472
- * @unsupported
473
- * @implements DOM API: `Document`
474
- */
475
- get onclose(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
476
- /**
477
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
478
- *
479
- * @deprecated
480
- * @unsupported
481
- * @implements DOM API: `Document`
482
- */
483
- get oncontextmenu(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
484
- /**
485
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
486
- *
487
- * @deprecated
488
- * @unsupported
489
- * @implements DOM API: `Document`
490
- */
491
- get oncopy(): ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
492
- /**
493
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
494
- *
495
- * @deprecated
496
- * @unsupported
497
- * @implements DOM API: `Document`
498
- */
499
- get oncuechange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
500
- /**
501
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
502
- *
503
- * @deprecated
504
- * @unsupported
505
- * @implements DOM API: `Document`
506
- */
507
- get oncut(): ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
508
- /**
509
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
510
- *
511
- * @deprecated
512
- * @unsupported
513
- * @implements DOM API: `Document`
514
- */
515
- get ondblclick(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
516
- /**
517
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
518
- *
519
- * @deprecated
520
- * @unsupported
521
- * @implements DOM API: `Document`
522
- */
523
- get ondrag(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
524
- /**
525
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
526
- *
527
- * @deprecated
528
- * @unsupported
529
- * @implements DOM API: `Document`
530
- */
531
- get ondragend(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
532
- /**
533
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
534
- *
535
- * @deprecated
536
- * @unsupported
537
- * @implements DOM API: `Document`
538
- */
539
- get ondragenter(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
540
- /**
541
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
542
- *
543
- * @deprecated
544
- * @unsupported
545
- * @implements DOM API: `Document`
546
- */
547
- get ondragleave(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
548
- /**
549
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
550
- *
551
- * @deprecated
552
- * @unsupported
553
- * @implements DOM API: `Document`
554
- */
555
- get ondragover(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
556
- /**
557
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
558
- *
559
- * @deprecated
560
- * @unsupported
561
- * @implements DOM API: `Document`
562
- */
563
- get ondragstart(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
564
- /**
565
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
566
- *
567
- * @deprecated
568
- * @unsupported
569
- * @implements DOM API: `Document`
570
- */
571
- get ondrop(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
572
- /**
573
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
574
- *
575
- * @deprecated
576
- * @unsupported
577
- * @implements DOM API: `Document`
578
- */
579
- get ondurationchange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
580
- /**
581
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
582
- *
583
- * @deprecated
584
- * @unsupported
585
- * @implements DOM API: `Document`
586
- */
587
- get onemptied(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
588
- /**
589
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
590
- *
591
- * @deprecated
592
- * @unsupported
593
- * @implements DOM API: `Document`
594
- */
595
- get onended(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
596
- /**
597
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
598
- *
599
- * @deprecated
600
- * @unsupported
601
- * @implements DOM API: `Document`
602
- */
603
- get onerror(): OnErrorEventHandler;
604
- /**
605
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
606
- *
607
- * @deprecated
608
- * @unsupported
609
- * @implements DOM API: `Document`
610
- */
611
- get onfocus(): ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
612
- /**
613
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
614
- *
615
- * @deprecated
616
- * @unsupported
617
- * @implements DOM API: `Document`
618
- */
619
- get onformdata(): ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
620
- /**
621
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
622
- *
623
- * @deprecated
624
- * @unsupported
625
- * @implements DOM API: `Document`
626
- */
627
- get onfullscreenchange(): ((this: Document, ev: Event) => any) | null;
628
- /**
629
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
630
- *
631
- * @deprecated
632
- * @unsupported
633
- * @implements DOM API: `Document`
634
- */
635
- get onfullscreenerror(): ((this: Document, ev: Event) => any) | null;
636
- /**
637
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
638
- *
639
- * @deprecated
640
- * @unsupported
641
- * @implements DOM API: `Document`
642
- */
643
- get ongotpointercapture(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
644
- /**
645
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
646
- *
647
- * @deprecated
648
- * @unsupported
649
- * @implements DOM API: `Document`
650
- */
651
- get oninput(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
652
- /**
653
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
654
- *
655
- * @deprecated
656
- * @unsupported
657
- * @implements DOM API: `Document`
658
- */
659
- get oninvalid(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
660
- /**
661
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
662
- *
663
- * @deprecated
664
- * @unsupported
665
- * @implements DOM API: `Document`
666
- */
667
- get onkeydown(): ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
668
- /**
669
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
670
- *
671
- * @deprecated
672
- * @unsupported
673
- * @implements DOM API: `Document`
674
- */
675
- get onkeypress(): ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
676
- /**
677
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
678
- *
679
- * @deprecated
680
- * @unsupported
681
- * @implements DOM API: `Document`
682
- */
683
- get onkeyup(): ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
684
- /**
685
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
686
- *
687
- * @deprecated
688
- * @unsupported
689
- * @implements DOM API: `Document`
690
- */
691
- get onload(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
692
- /**
693
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
694
- *
695
- * @deprecated
696
- * @unsupported
697
- * @implements DOM API: `Document`
698
- */
699
- get onloadeddata(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
700
- /**
701
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
702
- *
703
- * @deprecated
704
- * @unsupported
705
- * @implements DOM API: `Document`
706
- */
707
- get onloadedmetadata(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
708
- /**
709
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
710
- *
711
- * @deprecated
712
- * @unsupported
713
- * @implements DOM API: `Document`
714
- */
715
- get onloadstart(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
716
- /**
717
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
718
- *
719
- * @deprecated
720
- * @unsupported
721
- * @implements DOM API: `Document`
722
- */
723
- get onlostpointercapture(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
724
- /**
725
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
726
- *
727
- * @deprecated
728
- * @unsupported
729
- * @implements DOM API: `Document`
730
- */
731
- get onmousedown(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
732
- /**
733
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
734
- *
735
- * @deprecated
736
- * @unsupported
737
- * @implements DOM API: `Document`
738
- */
739
- get onmouseenter(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
740
- /**
741
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
742
- *
743
- * @deprecated
744
- * @unsupported
745
- * @implements DOM API: `Document`
746
- */
747
- get onmouseleave(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
748
- /**
749
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
750
- *
751
- * @deprecated
752
- * @unsupported
753
- * @implements DOM API: `Document`
754
- */
755
- get onmousemove(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
756
- /**
757
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
758
- *
759
- * @deprecated
760
- * @unsupported
761
- * @implements DOM API: `Document`
762
- */
763
- get onmouseout(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
764
- /**
765
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
766
- *
767
- * @deprecated
768
- * @unsupported
769
- * @implements DOM API: `Document`
770
- */
771
- get onmouseover(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
772
- /**
773
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
774
- *
775
- * @deprecated
776
- * @unsupported
777
- * @implements DOM API: `Document`
778
- */
779
- get onmouseup(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
780
- /**
781
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
782
- *
783
- * @deprecated
784
- * @unsupported
785
- * @implements DOM API: `Document`
786
- */
787
- get onpaste(): ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
788
- /**
789
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
790
- *
791
- * @deprecated
792
- * @unsupported
793
- * @implements DOM API: `Document`
794
- */
795
- get onpause(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
796
- /**
797
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
798
- *
799
- * @deprecated
800
- * @unsupported
801
- * @implements DOM API: `Document`
802
- */
803
- get onplay(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
804
- /**
805
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
806
- *
807
- * @deprecated
808
- * @unsupported
809
- * @implements DOM API: `Document`
810
- */
811
- get onplaying(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
812
- /**
813
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
814
- *
815
- * @deprecated
816
- * @unsupported
817
- * @implements DOM API: `Document`
818
- */
819
- get onpointercancel(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
820
- /**
821
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
822
- *
823
- * @deprecated
824
- * @unsupported
825
- * @implements DOM API: `Document`
826
- */
827
- get onpointerdown(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
828
- /**
829
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
830
- *
831
- * @deprecated
832
- * @unsupported
833
- * @implements DOM API: `Document`
834
- */
835
- get onpointerenter(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
836
- /**
837
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
838
- *
839
- * @deprecated
840
- * @unsupported
841
- * @implements DOM API: `Document`
842
- */
843
- get onpointerleave(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
844
- /**
845
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
846
- *
847
- * @deprecated
848
- * @unsupported
849
- * @implements DOM API: `Document`
850
- */
851
- get onpointerlockchange(): ((this: Document, ev: Event) => any) | null;
852
- /**
853
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
854
- *
855
- * @deprecated
856
- * @unsupported
857
- * @implements DOM API: `Document`
858
- */
859
- get onpointerlockerror(): ((this: Document, ev: Event) => any) | null;
860
- /**
861
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
862
- *
863
- * @deprecated
864
- * @unsupported
865
- * @implements DOM API: `Document`
866
- */
867
- get onpointermove(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
868
- /**
869
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
870
- *
871
- * @deprecated
872
- * @unsupported
873
- * @implements DOM API: `Document`
874
- */
875
- get onpointerout(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
876
- /**
877
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
878
- *
879
- * @deprecated
880
- * @unsupported
881
- * @implements DOM API: `Document`
882
- */
883
- get onpointerover(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
884
- /**
885
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
886
- *
887
- * @deprecated
888
- * @unsupported
889
- * @implements DOM API: `Document`
890
- */
891
- get onpointerup(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
892
- /**
893
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
894
- *
895
- * @deprecated
896
- * @unsupported
897
- * @implements DOM API: `Document`
898
- */
899
- get onprogress(): ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
900
- /**
901
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
902
- *
903
- * @deprecated
904
- * @unsupported
905
- * @implements DOM API: `Document`
906
- */
907
- get onratechange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
908
- /**
909
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
910
- *
911
- * @deprecated
912
- * @unsupported
913
- * @implements DOM API: `Document`
914
- */
915
- get onreadystatechange(): ((this: Document, ev: Event) => any) | null;
916
- /**
917
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
918
- *
919
- * @deprecated
920
- * @unsupported
921
- * @implements DOM API: `Document`
922
- */
923
- get onreset(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
924
- /**
925
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
926
- *
927
- * @deprecated
928
- * @unsupported
929
- * @implements DOM API: `Document`
930
- */
931
- get onresize(): ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
932
- /**
933
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
934
- *
935
- * @deprecated
936
- * @unsupported
937
- * @implements DOM API: `Document`
938
- */
939
- get onscroll(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
940
- /**
941
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
942
- *
943
- * @deprecated
944
- * @unsupported
945
- * @implements DOM API: `Document`
946
- */
947
- get onsecuritypolicyviolation(): ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
948
- /**
949
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
950
- *
951
- * @deprecated
952
- * @unsupported
953
- * @implements DOM API: `Document`
954
- */
955
- get onseeked(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
956
- /**
957
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
958
- *
959
- * @deprecated
960
- * @unsupported
961
- * @implements DOM API: `Document`
962
- */
963
- get onseeking(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
964
- /**
965
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
966
- *
967
- * @deprecated
968
- * @unsupported
969
- * @implements DOM API: `Document`
970
- */
971
- get onselect(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
972
- /**
973
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
974
- *
975
- * @deprecated
976
- * @unsupported
977
- * @implements DOM API: `Document`
978
- */
979
- get onselectionchange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
980
- /**
981
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
982
- *
983
- * @deprecated
984
- * @unsupported
985
- * @implements DOM API: `Document`
986
- */
987
- get onselectstart(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
988
- /**
989
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
990
- *
991
- * @deprecated
992
- * @unsupported
993
- * @implements DOM API: `Document`
994
- */
995
- get onslotchange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
996
- /**
997
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
998
- *
999
- * @deprecated
1000
- * @unsupported
1001
- * @implements DOM API: `Document`
1002
- */
1003
- get onstalled(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1004
- /**
1005
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1006
- *
1007
- * @deprecated
1008
- * @unsupported
1009
- * @implements DOM API: `Document`
1010
- */
1011
- get onsubmit(): ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
1012
- /**
1013
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1014
- *
1015
- * @deprecated
1016
- * @unsupported
1017
- * @implements DOM API: `Document`
1018
- */
1019
- get onsuspend(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1020
- /**
1021
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1022
- *
1023
- * @deprecated
1024
- * @unsupported
1025
- * @implements DOM API: `Document`
1026
- */
1027
- get ontimeupdate(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1028
- /**
1029
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1030
- *
1031
- * @deprecated
1032
- * @unsupported
1033
- * @implements DOM API: `Document`
1034
- */
1035
- get ontoggle(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1036
- /**
1037
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1038
- *
1039
- * @deprecated
1040
- * @unsupported
1041
- * @implements DOM API: `Document`
1042
- */
1043
- get ontransitioncancel(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1044
- /**
1045
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1046
- *
1047
- * @deprecated
1048
- * @unsupported
1049
- * @implements DOM API: `Document`
1050
- */
1051
- get ontransitionend(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1052
- /**
1053
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1054
- *
1055
- * @deprecated
1056
- * @unsupported
1057
- * @implements DOM API: `Document`
1058
- */
1059
- get ontransitionrun(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1060
- /**
1061
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1062
- *
1063
- * @deprecated
1064
- * @unsupported
1065
- * @implements DOM API: `Document`
1066
- */
1067
- get ontransitionstart(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1068
- /**
1069
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1070
- *
1071
- * @deprecated
1072
- * @unsupported
1073
- * @implements DOM API: `Document`
1074
- */
1075
- get onvisibilitychange(): ((this: Document, ev: Event) => any) | null;
1076
- /**
1077
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1078
- *
1079
- * @deprecated
1080
- * @unsupported
1081
- * @implements DOM API: `Document`
1082
- */
1083
- get onvolumechange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1084
- /**
1085
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1086
- *
1087
- * @deprecated
1088
- * @unsupported
1089
- * @implements DOM API: `Document`
1090
- */
1091
- get onwaiting(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1092
- /**
1093
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1094
- *
1095
- * @deprecated
1096
- * @unsupported
1097
- * @implements DOM API: `Document`
1098
- */
1099
- get onwebkitanimationend(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1100
- /**
1101
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1102
- *
1103
- * @deprecated
1104
- * @unsupported
1105
- * @implements DOM API: `Document`
1106
- */
1107
- get onwebkitanimationiteration(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1108
- /**
1109
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1110
- *
1111
- * @deprecated
1112
- * @unsupported
1113
- * @implements DOM API: `Document`
1114
- */
1115
- get onwebkitanimationstart(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1116
- /**
1117
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1118
- *
1119
- * @deprecated
1120
- * @unsupported
1121
- * @implements DOM API: `Document`
1122
- */
1123
- get onwebkittransitionend(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1124
- /**
1125
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1126
- *
1127
- * @deprecated
1128
- * @unsupported
1129
- * @implements DOM API: `Document`
1130
- */
1131
- get onwheel(): ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1132
- get ownerDocument(): null;
1133
- get ownerMLDocument(): MLDocument<T, O>;
1134
- /**
1135
- * @implements DOM API: `Document`
1136
- * @see https://dom.spec.whatwg.org/#ref-for-dom-node-parentnode%E2%91%A0
1137
- */
1138
- get parentNode(): null;
1139
- /**
1140
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1141
- *
1142
- * @unsupported
1143
- * @implements DOM API: `Document`
1144
- */
1145
- get pictureInPictureElement(): Element | null;
1146
- /**
1147
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1148
- *
1149
- * @unsupported
1150
- * @implements DOM API: `Document`
1151
- */
1152
- get pictureInPictureEnabled(): boolean;
1153
- /**
1154
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1155
- *
1156
- * @unsupported
1157
- * @implements DOM API: `Document`
1158
- */
1159
- get plugins(): HTMLCollectionOf<HTMLEmbedElement>;
1160
- /**
1161
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1162
- *
1163
- * @unsupported
1164
- * @implements DOM API: `Document`
1165
- */
1166
- get pointerLockElement(): Element | null;
1167
- /**
1168
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1169
- *
1170
- * @unsupported
1171
- * @implements DOM API: `Document`
1172
- */
1173
- get readyState(): DocumentReadyState;
1174
- /**
1175
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1176
- *
1177
- * @unsupported
1178
- * @implements DOM API: `Document`
1179
- */
1180
- get referrer(): string;
1181
- /**
1182
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1183
- *
1184
- * @deprecated
1185
- * @unsupported
1186
- * @implements DOM API: `Document`
1187
- */
1188
- get rootElement(): SVGSVGElement | null;
1189
- /**
1190
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1191
- *
1192
- * @unsupported
1193
- * @implements DOM API: `Document`
1194
- */
1195
- get scripts(): HTMLCollectionOf<HTMLScriptElement>;
1196
- /**
1197
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1198
- *
1199
- * @unsupported
1200
- * @implements DOM API: `Document`
1201
- */
1202
- get scrollingElement(): Element | null;
1203
- /**
1204
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1205
- *
1206
- * @unsupported
1207
- * @implements DOM API: `Document`
1208
- */
1209
- get styleSheets(): StyleSheetList;
1210
- /**
1211
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1212
- *
1213
- * @unsupported
1214
- * @implements DOM API: `Document`
1215
- */
1216
- get timeline(): DocumentTimeline;
1217
- /**
1218
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1219
- *
1220
- * @unsupported
1221
- * @implements DOM API: `Document`
1222
- */
1223
- get title(): string;
1224
- /**
1225
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1226
- *
1227
- * @unsupported
1228
- * @implements DOM API: `Document`
1229
- */
1230
- get visibilityState(): DocumentVisibilityState;
1231
- /**
1232
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1233
- *
1234
- * @deprecated
1235
- * @unsupported
1236
- * @implements DOM API: `Document`
1237
- */
1238
- get vlinkColor(): string;
1239
- /**
1240
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1241
- *
1242
- * @unsupported
1243
- * @implements DOM API: `Document`
1244
- */
1245
- adoptNode<T extends Node>(node: T): T;
1246
- /**
1247
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1248
- *
1249
- * @deprecated
1250
- * @unsupported
1251
- * @implements DOM API: `Document`
1252
- */
1253
- captureEvents(): void;
1254
- /**
1255
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1256
- *
1257
- * @unsupported
1258
- * @implements DOM API: `Document`
1259
- */
1260
- caretRangeFromPoint(x: number, y: number): Range | null;
1261
- /**
1262
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1263
- *
1264
- * @deprecated
1265
- * @unsupported
1266
- * @implements DOM API: `Document`
1267
- */
1268
- clear(): void;
1269
- /**
1270
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1271
- *
1272
- * @unsupported
1273
- * @implements DOM API: `Document`
1274
- */
1275
- close(): void;
1276
- /**
1277
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1278
- *
1279
- * @unsupported
1280
- * @implements DOM API: `Document`
1281
- */
1282
- createAttribute(localName: string): Attr;
1283
- /**
1284
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1285
- *
1286
- * @unsupported
1287
- * @implements DOM API: `Document`
1288
- */
1289
- createAttributeNS(namespace: string | null, qualifiedName: string): Attr;
1290
- /**
1291
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1292
- *
1293
- * @unsupported
1294
- * @implements DOM API: `Document`
1295
- */
1296
- createCDATASection(data: string): CDATASection;
1297
- /**
1298
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1299
- *
1300
- * @unsupported
1301
- * @implements DOM API: `Document`
1302
- */
1303
- createComment(data: string): Comment;
1304
- /**
1305
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1306
- *
1307
- * @unsupported
1308
- * @implements DOM API: `Document`
1309
- */
1310
- createDocumentFragment(): DocumentFragment;
1311
- /**
1312
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1313
- *
1314
- * @unsupported
1315
- * @implements DOM API: `Document`
1316
- */
1317
- createElement(tagName: any, options?: any): any;
1318
- /**
1319
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1320
- *
1321
- * @unsupported
1322
- * @implements DOM API: `Document`
1323
- */
1324
- createElementNS(namespace: any, qualifiedName: any, options?: any): any;
1325
- /**
1326
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1327
- *
1328
- * @unsupported
1329
- * @implements DOM API: `Document`
1330
- */
1331
- createEvent(eventInterface: any): any;
1332
- /**
1333
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1334
- *
1335
- * @unsupported
1336
- * @implements DOM API: `Document`
1337
- */
1338
- createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;
1339
- /**
1340
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1341
- *
1342
- * @unsupported
1343
- * @implements DOM API: `Document`
1344
- */
1345
- createNSResolver(nodeResolver: Node): XPathNSResolver;
1346
- /**
1347
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1348
- *
1349
- * @unsupported
1350
- * @implements DOM API: `Document`
1351
- */
1352
- createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;
1353
- /**
1354
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1355
- *
1356
- * @unsupported
1357
- * @implements DOM API: `Document`
1358
- */
1359
- createProcessingInstruction(target: string, data: string): ProcessingInstruction;
1360
- /**
1361
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1362
- *
1363
- * @unsupported
1364
- * @implements DOM API: `Document`
1365
- */
1366
- createRange(): Range;
1367
- /**
1368
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1369
- *
1370
- * @unsupported
1371
- * @implements DOM API: `Document`
1372
- */
1373
- createTextNode(data: string): Text;
1374
- /**
1375
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1376
- *
1377
- * @unsupported
1378
- * @implements DOM API: `Document`
1379
- */
1380
- createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
1381
- /**
1382
- * @implements `@markuplint/ml-core` API: `MLDocument`
1383
- */
1384
- debugMap(): string[];
1385
- /**
1386
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1387
- *
1388
- * @unsupported
1389
- * @implements DOM API: `Document`
1390
- */
1391
- elementFromPoint(x: number, y: number): Element | null;
1392
- /**
1393
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1394
- *
1395
- * @unsupported
1396
- * @implements DOM API: `Document`
1397
- */
1398
- elementsFromPoint(x: number, y: number): Element[];
1399
- /**
1400
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1401
- *
1402
- * @unsupported
1403
- * @implements DOM API: `Document`
1404
- */
1405
- evaluate(
1406
- expression: string,
1407
- contextNode: Node,
1408
- resolver?: XPathNSResolver | null,
1409
- type?: number,
1410
- result?: XPathResult | null,
1411
- ): XPathResult;
1412
- /**
1413
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1414
- *
1415
- * @deprecated
1416
- * @unsupported
1417
- * @implements DOM API: `Document`
1418
- */
1419
- execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
1420
- /**
1421
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1422
- *
1423
- * @unsupported
1424
- * @implements DOM API: `Document`
1425
- */
1426
- exitFullscreen(): Promise<void>;
1427
- /**
1428
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1429
- *
1430
- * @unsupported
1431
- * @implements DOM API: `Document`
1432
- */
1433
- exitPictureInPicture(): Promise<void>;
1434
- /**
1435
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1436
- *
1437
- * @unsupported
1438
- * @implements DOM API: `Document`
1439
- */
1440
- exitPointerLock(): void;
1441
- /**
1442
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1443
- *
1444
- * @unsupported
1445
- * @implements DOM API: `Document`
1446
- */
1447
- getAnimations(): Animation[];
1448
- /**
1449
- * @implements DOM API: `Document`
1450
- */
1451
- getElementById(elementId: string): MLElement<T, O> | null;
1452
- /**
1453
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1454
- *
1455
- * @unsupported
1456
- * @implements DOM API: `Document`
1457
- */
1458
- getElementsByClassName(classNames: string): HTMLCollectionOf<MLElement<T, O>>;
1459
- /**
1460
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1461
- *
1462
- * @unsupported
1463
- * @implements DOM API: `Document`
1464
- */
1465
- getElementsByName(elementName: string): NodeListOf<HTMLElement>;
1466
- /**
1467
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1468
- *
1469
- * @unsupported
1470
- * @implements DOM API: `Document`
1471
- */
1472
- getElementsByTagName(qualifiedName: string): HTMLCollectionOf<MLElement<T, O>>;
1473
- /**
1474
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1475
- *
1476
- * @unsupported
1477
- * @implements DOM API: `Document`
1478
- */
1479
- getElementsByTagNameNS(namespace: any, localName: any): any;
1480
- /**
1481
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1482
- *
1483
- * @unsupported
1484
- * @implements DOM API: `Document`
1485
- */
1486
- getSelection(): Selection | null;
1487
- /**
1488
- * @implements `@markuplint/ml-core` API: `MLDocument`
1489
- */
1490
- getTokenList(): readonly MLToken<import('@markuplint/ml-ast').MLToken>[];
1491
- /**
1492
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1493
- *
1494
- * @unsupported
1495
- * @implements DOM API: `Document`
1496
- */
1497
- hasFocus(): boolean;
1498
- /**
1499
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1500
- *
1501
- * @unsupported
1502
- * @implements DOM API: `Document`
1503
- */
1504
- hasStorageAccess(): Promise<boolean>;
1505
- /**
1506
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1507
- *
1508
- * @unsupported
1509
- * @implements DOM API: `Document`
1510
- */
1511
- importNode<T extends Node>(node: T, deep?: boolean): T;
1512
- /**
1513
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1514
- *
1515
- * @unsupported
1516
- * @implements DOM API: `Document`
1517
- */
1518
- open(url?: any, name?: any, features?: any): any;
1519
- /**
1520
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1521
- *
1522
- * @deprecated
1523
- * @unsupported
1524
- * @implements DOM API: `Document`
1525
- */
1526
- queryCommandEnabled(commandId: string): boolean;
1527
- /**
1528
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1529
- *
1530
- * @deprecated
1531
- * @unsupported
1532
- * @implements DOM API: `Document`
1533
- */
1534
- queryCommandIndeterm(commandId: string): boolean;
1535
- /**
1536
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1537
- *
1538
- * @deprecated
1539
- * @unsupported
1540
- * @implements DOM API: `Document`
1541
- */
1542
- queryCommandState(commandId: string): boolean;
1543
- /**
1544
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1545
- *
1546
- * @deprecated
1547
- * @unsupported
1548
- * @implements DOM API: `Document`
1549
- */
1550
- queryCommandSupported(commandId: string): boolean;
1551
- /**
1552
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1553
- *
1554
- * @deprecated
1555
- * @unsupported
1556
- * @implements DOM API: `Document`
1557
- */
1558
- queryCommandValue(commandId: string): string;
1559
- /**
1560
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1561
- *
1562
- * @deprecated
1563
- * @unsupported
1564
- * @implements DOM API: `Document`
1565
- */
1566
- releaseEvents(): void;
1567
- /**
1568
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1569
- *
1570
- * @unsupported
1571
- * @implements DOM API: `Document`
1572
- */
1573
- requestStorageAccess(): Promise<void>;
1574
- /**
1575
- * @implements `@markuplint/ml-core` API: `MLDocument`
1576
- */
1577
- searchNodeByLocation(
1578
- line: number,
1579
- col: number,
1580
- ): MLNode<T, O, import('@markuplint/ml-ast').MLASTAbstractNode> | null;
1581
- /**
1582
- * @implements `@markuplint/ml-core` API: `MLDocument`
1583
- */
1584
- setRule(rule: MLRule<T, O> | null): void;
1585
- /**
1586
- * @implements `@markuplint/ml-core` API: `MLDocument`
1587
- */
1588
- toString(): string;
1589
- /**
1590
- * @implements `@markuplint/ml-core` API: `MLDocument`
1591
- */
1592
- walkOn(type: 'Element', walker: Walker<T, O, MLElement<T, O>>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1593
- walkOn(type: 'Text', walker: Walker<T, O, MLText<T, O>>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1594
- walkOn(type: 'Comment', walker: Walker<T, O, MLComment<T, O>>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1595
- walkOn(type: 'Attr', walker: Walker<T, O, MLAttr<T, O>>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1596
- walkOn(type: 'ElementCloseTag', walker: Walker<T, O, MLToken>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1597
- /**
1598
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1599
- *
1600
- * @unsupported
1601
- * @implements DOM API: `Document`
1602
- */
1603
- write(...text: string[]): void;
1604
- /**
1605
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1606
- *
1607
- * @unsupported
1608
- * @implements DOM API: `Document`
1609
- */
1610
- writeln(...text: string[]): void;
1611
- private _pretending;
1612
- private _ruleMapping;
17
+ export declare class MLDocument<T extends RuleConfigValue, O extends PlainData = undefined> extends MLParentNode<T, O> implements Document {
18
+ #private;
19
+ /**
20
+ * Detect value as a true if its attribute is booleanish value and omitted.
21
+ *
22
+ * Ex:
23
+ * ```jsx
24
+ * <Component aria-hidden />
25
+ * ```
26
+ *
27
+ * In the above, the `aria-hidden` is `true`.
28
+ *
29
+ * @default false
30
+ */
31
+ readonly booleanish: boolean;
32
+ /**
33
+ *
34
+ */
35
+ currentRule: Readonly<MLRule<T, O>> | null;
36
+ /**
37
+ * This is defined by the parser.
38
+ *
39
+ * @default "omittable"
40
+ */
41
+ readonly endTag: EndTagType;
42
+ /**
43
+ *
44
+ */
45
+ readonly isFragment: boolean;
46
+ /**
47
+ * An array of markuplint DOM nodes
48
+ */
49
+ readonly nodeList: ReadonlyArray<MLNode<T, O>>;
50
+ readonly ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
51
+ readonly ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
52
+ readonly ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
53
+ readonly ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
54
+ /**
55
+ *
56
+ */
57
+ readonly specs: MLMLSpec;
58
+ /**
59
+ *
60
+ * @param ast node list of markuplint AST
61
+ * @param ruleset ruleset object
62
+ */
63
+ constructor(ast: MLASTDocument, ruleset: Ruleset, schemas: MLSchema, options?: {
64
+ readonly filename?: string;
65
+ readonly endTag?: 'xml' | 'omittable' | 'never';
66
+ readonly booleanish?: boolean;
67
+ readonly pretenders?: readonly Pretender[];
68
+ });
69
+ /**
70
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
71
+ *
72
+ * @unsupported
73
+ * @implements DOM API: `Document`
74
+ */
75
+ get URL(): string;
76
+ /**
77
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
78
+ *
79
+ * @unsupported
80
+ * @implements DOM API: `Document`
81
+ */
82
+ get activeElement(): Element | null;
83
+ /**
84
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
85
+ *
86
+ * @unsupported
87
+ * @implements DOM API: `Document`
88
+ */
89
+ get adoptedStyleSheets(): CSSStyleSheet[];
90
+ /**
91
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
92
+ *
93
+ * @deprecated
94
+ * @unsupported
95
+ * @implements DOM API: `Document`
96
+ */
97
+ get alinkColor(): string;
98
+ /**
99
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
100
+ *
101
+ * @deprecated
102
+ * @unsupported
103
+ * @implements DOM API: `Document`
104
+ */
105
+ get all(): HTMLAllCollection;
106
+ /**
107
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
108
+ *
109
+ * @deprecated
110
+ * @unsupported
111
+ * @implements DOM API: `Document`
112
+ */
113
+ get anchors(): HTMLCollectionOf<HTMLAnchorElement>;
114
+ /**
115
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
116
+ *
117
+ * @deprecated
118
+ * @unsupported
119
+ * @implements DOM API: `Document`
120
+ */
121
+ get applets(): HTMLCollection;
122
+ /**
123
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
124
+ *
125
+ * @deprecated
126
+ * @unsupported
127
+ * @implements DOM API: `Document`
128
+ */
129
+ get bgColor(): string;
130
+ /**
131
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
132
+ *
133
+ * @unsupported
134
+ * @implements DOM API: `Document`
135
+ */
136
+ get body(): HTMLElement;
137
+ /**
138
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
139
+ *
140
+ * @unsupported
141
+ * @implements DOM API: `Document`
142
+ */
143
+ get characterSet(): string;
144
+ /**
145
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
146
+ *
147
+ * @deprecated
148
+ * @unsupported
149
+ * @implements DOM API: `Document`
150
+ */
151
+ get charset(): string;
152
+ /**
153
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
154
+ *
155
+ * @unsupported
156
+ * @implements DOM API: `Document`
157
+ */
158
+ get compatMode(): string;
159
+ /**
160
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
161
+ *
162
+ * @unsupported
163
+ * @implements DOM API: `Document`
164
+ */
165
+ get contentType(): string;
166
+ /**
167
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
168
+ *
169
+ * @unsupported
170
+ * @implements DOM API: `Document`
171
+ */
172
+ get cookie(): string;
173
+ /**
174
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
175
+ *
176
+ * @unsupported
177
+ * @implements DOM API: `Document`
178
+ */
179
+ get currentScript(): HTMLOrSVGScriptElement | null;
180
+ /**
181
+ * Window object for calling the `getComputedStyle` and the `getPropertyValue` that
182
+ * are needed by **Accessible Name and Description Computation**.
183
+ * But it always returns the empty object.
184
+ * (It may improve to possible to compute the name from the `style` attribute in the future.)
185
+ *
186
+ * @implements DOM API: `Document`
187
+ */
188
+ get defaultView(): any;
189
+ /**
190
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
191
+ *
192
+ * @unsupported
193
+ * @implements DOM API: `Document`
194
+ */
195
+ get designMode(): string;
196
+ /**
197
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
198
+ *
199
+ * @unsupported
200
+ * @implements DOM API: `Document`
201
+ */
202
+ get dir(): string;
203
+ /**
204
+ * @implements DOM API: `Document`
205
+ */
206
+ get doctype(): MLDocumentType<T, O> | null;
207
+ /**
208
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
209
+ *
210
+ * @unsupported
211
+ * @implements DOM API: `Document`
212
+ */
213
+ get documentElement(): HTMLElement;
214
+ /**
215
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
216
+ *
217
+ * @unsupported
218
+ * @implements DOM API: `Document`
219
+ */
220
+ get documentURI(): string;
221
+ /**
222
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
223
+ *
224
+ * @unsupported
225
+ * @implements DOM API: `Document`
226
+ */
227
+ get domain(): string;
228
+ /**
229
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
230
+ *
231
+ * @unsupported
232
+ * @implements DOM API: `Document`
233
+ */
234
+ get embeds(): HTMLCollectionOf<HTMLEmbedElement>;
235
+ /**
236
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
237
+ *
238
+ * @deprecated
239
+ * @unsupported
240
+ * @implements DOM API: `Document`
241
+ */
242
+ get fgColor(): string;
243
+ /**
244
+ * It could be used in rule, make sure it is immutable
245
+ *
246
+ * @implements `@markuplint/ml-core` API: `MLDOMDocument`
247
+ */
248
+ get filename(): string | undefined;
249
+ /**
250
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
251
+ *
252
+ * @unsupported
253
+ * @implements DOM API: `Document`
254
+ */
255
+ get fonts(): FontFaceSet;
256
+ /**
257
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
258
+ *
259
+ * @unsupported
260
+ * @implements DOM API: `Document`
261
+ */
262
+ get forms(): HTMLCollectionOf<HTMLFormElement>;
263
+ /**
264
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
265
+ *
266
+ * @deprecated
267
+ * @unsupported
268
+ * @implements DOM API: `Document`
269
+ */
270
+ get fullscreen(): boolean;
271
+ /**
272
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
273
+ *
274
+ * @unsupported
275
+ * @implements DOM API: `Document`
276
+ */
277
+ get fullscreenElement(): Element | null;
278
+ /**
279
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
280
+ *
281
+ * @unsupported
282
+ * @implements DOM API: `Document`
283
+ */
284
+ get fullscreenEnabled(): boolean;
285
+ /**
286
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
287
+ *
288
+ * @unsupported
289
+ * @implements DOM API: `Document`
290
+ */
291
+ get head(): HTMLHeadElement;
292
+ /**
293
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
294
+ *
295
+ * @unsupported
296
+ * @implements DOM API: `Document`
297
+ */
298
+ get hidden(): boolean;
299
+ /**
300
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
301
+ *
302
+ * @unsupported
303
+ * @implements DOM API: `Document`
304
+ */
305
+ get images(): HTMLCollectionOf<HTMLImageElement>;
306
+ /**
307
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
308
+ *
309
+ * @unsupported
310
+ * @implements DOM API: `Document`
311
+ */
312
+ get implementation(): DOMImplementation;
313
+ /**
314
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
315
+ *
316
+ * @deprecated
317
+ * @unsupported
318
+ * @implements DOM API: `Document`
319
+ */
320
+ get inputEncoding(): string;
321
+ /**
322
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
323
+ *
324
+ * @unsupported
325
+ * @implements DOM API: `Document`
326
+ */
327
+ get lastModified(): string;
328
+ /**
329
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
330
+ *
331
+ * @deprecated
332
+ * @unsupported
333
+ * @implements DOM API: `Document`
334
+ */
335
+ get linkColor(): string;
336
+ /**
337
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
338
+ *
339
+ * @unsupported
340
+ * @implements DOM API: `Document`
341
+ */
342
+ get links(): HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
343
+ /**
344
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
345
+ *
346
+ * @unsupported
347
+ * @implements DOM API: `Document`
348
+ */
349
+ get location(): Location;
350
+ /**
351
+ * Returns a string appropriate for the type of node as `Document`
352
+ *
353
+ * @see https://dom.spec.whatwg.org/#ref-for-document%E2%91%A8
354
+ */
355
+ get nodeName(): "#document";
356
+ /**
357
+ * Returns a number appropriate for the type of `Document`
358
+ */
359
+ get nodeType(): DocumentNodeType;
360
+ /**
361
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
362
+ *
363
+ * @deprecated
364
+ * @unsupported
365
+ * @implements DOM API: `Document`
366
+ */
367
+ get onabort(): ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
368
+ /**
369
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
370
+ *
371
+ * @deprecated
372
+ * @unsupported
373
+ * @implements DOM API: `Document`
374
+ */
375
+ get onanimationcancel(): ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
376
+ /**
377
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
378
+ *
379
+ * @deprecated
380
+ * @unsupported
381
+ * @implements DOM API: `Document`
382
+ */
383
+ get onanimationend(): ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
384
+ /**
385
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
386
+ *
387
+ * @deprecated
388
+ * @unsupported
389
+ * @implements DOM API: `Document`
390
+ */
391
+ get onanimationiteration(): ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
392
+ /**
393
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
394
+ *
395
+ * @deprecated
396
+ * @unsupported
397
+ * @implements DOM API: `Document`
398
+ */
399
+ get onanimationstart(): ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
400
+ /**
401
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
402
+ *
403
+ * @deprecated
404
+ * @unsupported
405
+ * @implements DOM API: `Document`
406
+ */
407
+ get onauxclick(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
408
+ /**
409
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
410
+ *
411
+ * @deprecated
412
+ * @unsupported
413
+ * @implements DOM API: `Document`
414
+ */
415
+ get onbeforeinput(): ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
416
+ /**
417
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
418
+ *
419
+ * @deprecated
420
+ * @unsupported
421
+ * @implements DOM API: `Document`
422
+ */
423
+ get onblur(): ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
424
+ /**
425
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
426
+ *
427
+ * @deprecated
428
+ * @unsupported
429
+ * @implements DOM API: `Document`
430
+ */
431
+ get oncancel(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
432
+ /**
433
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
434
+ *
435
+ * @deprecated
436
+ * @unsupported
437
+ * @implements DOM API: `Document`
438
+ */
439
+ get oncanplay(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
440
+ /**
441
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
442
+ *
443
+ * @deprecated
444
+ * @unsupported
445
+ * @implements DOM API: `Document`
446
+ */
447
+ get oncanplaythrough(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
448
+ /**
449
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
450
+ *
451
+ * @deprecated
452
+ * @unsupported
453
+ * @implements DOM API: `Document`
454
+ */
455
+ get onchange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
456
+ /**
457
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
458
+ *
459
+ * @deprecated
460
+ * @unsupported
461
+ * @implements DOM API: `Document`
462
+ */
463
+ get onclick(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
464
+ /**
465
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
466
+ *
467
+ * @deprecated
468
+ * @unsupported
469
+ * @implements DOM API: `Document`
470
+ */
471
+ get onclose(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
472
+ /**
473
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
474
+ *
475
+ * @deprecated
476
+ * @unsupported
477
+ * @implements DOM API: `Document`
478
+ */
479
+ get oncontextmenu(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
480
+ /**
481
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
482
+ *
483
+ * @deprecated
484
+ * @unsupported
485
+ * @implements DOM API: `Document`
486
+ */
487
+ get oncopy(): ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
488
+ /**
489
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
490
+ *
491
+ * @deprecated
492
+ * @unsupported
493
+ * @implements DOM API: `Document`
494
+ */
495
+ get oncuechange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
496
+ /**
497
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
498
+ *
499
+ * @deprecated
500
+ * @unsupported
501
+ * @implements DOM API: `Document`
502
+ */
503
+ get oncut(): ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
504
+ /**
505
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
506
+ *
507
+ * @deprecated
508
+ * @unsupported
509
+ * @implements DOM API: `Document`
510
+ */
511
+ get ondblclick(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
512
+ /**
513
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
514
+ *
515
+ * @deprecated
516
+ * @unsupported
517
+ * @implements DOM API: `Document`
518
+ */
519
+ get ondrag(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
520
+ /**
521
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
522
+ *
523
+ * @deprecated
524
+ * @unsupported
525
+ * @implements DOM API: `Document`
526
+ */
527
+ get ondragend(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
528
+ /**
529
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
530
+ *
531
+ * @deprecated
532
+ * @unsupported
533
+ * @implements DOM API: `Document`
534
+ */
535
+ get ondragenter(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
536
+ /**
537
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
538
+ *
539
+ * @deprecated
540
+ * @unsupported
541
+ * @implements DOM API: `Document`
542
+ */
543
+ get ondragleave(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
544
+ /**
545
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
546
+ *
547
+ * @deprecated
548
+ * @unsupported
549
+ * @implements DOM API: `Document`
550
+ */
551
+ get ondragover(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
552
+ /**
553
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
554
+ *
555
+ * @deprecated
556
+ * @unsupported
557
+ * @implements DOM API: `Document`
558
+ */
559
+ get ondragstart(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
560
+ /**
561
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
562
+ *
563
+ * @deprecated
564
+ * @unsupported
565
+ * @implements DOM API: `Document`
566
+ */
567
+ get ondrop(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
568
+ /**
569
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
570
+ *
571
+ * @deprecated
572
+ * @unsupported
573
+ * @implements DOM API: `Document`
574
+ */
575
+ get ondurationchange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
576
+ /**
577
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
578
+ *
579
+ * @deprecated
580
+ * @unsupported
581
+ * @implements DOM API: `Document`
582
+ */
583
+ get onemptied(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
584
+ /**
585
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
586
+ *
587
+ * @deprecated
588
+ * @unsupported
589
+ * @implements DOM API: `Document`
590
+ */
591
+ get onended(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
592
+ /**
593
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
594
+ *
595
+ * @deprecated
596
+ * @unsupported
597
+ * @implements DOM API: `Document`
598
+ */
599
+ get onerror(): OnErrorEventHandler;
600
+ /**
601
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
602
+ *
603
+ * @deprecated
604
+ * @unsupported
605
+ * @implements DOM API: `Document`
606
+ */
607
+ get onfocus(): ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
608
+ /**
609
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
610
+ *
611
+ * @deprecated
612
+ * @unsupported
613
+ * @implements DOM API: `Document`
614
+ */
615
+ get onformdata(): ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
616
+ /**
617
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
618
+ *
619
+ * @deprecated
620
+ * @unsupported
621
+ * @implements DOM API: `Document`
622
+ */
623
+ get onfullscreenchange(): ((this: Document, ev: Event) => any) | null;
624
+ /**
625
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
626
+ *
627
+ * @deprecated
628
+ * @unsupported
629
+ * @implements DOM API: `Document`
630
+ */
631
+ get onfullscreenerror(): ((this: Document, ev: Event) => any) | null;
632
+ /**
633
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
634
+ *
635
+ * @deprecated
636
+ * @unsupported
637
+ * @implements DOM API: `Document`
638
+ */
639
+ get ongotpointercapture(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
640
+ /**
641
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
642
+ *
643
+ * @deprecated
644
+ * @unsupported
645
+ * @implements DOM API: `Document`
646
+ */
647
+ get oninput(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
648
+ /**
649
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
650
+ *
651
+ * @deprecated
652
+ * @unsupported
653
+ * @implements DOM API: `Document`
654
+ */
655
+ get oninvalid(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
656
+ /**
657
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
658
+ *
659
+ * @deprecated
660
+ * @unsupported
661
+ * @implements DOM API: `Document`
662
+ */
663
+ get onkeydown(): ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
664
+ /**
665
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
666
+ *
667
+ * @deprecated
668
+ * @unsupported
669
+ * @implements DOM API: `Document`
670
+ */
671
+ get onkeypress(): ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
672
+ /**
673
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
674
+ *
675
+ * @deprecated
676
+ * @unsupported
677
+ * @implements DOM API: `Document`
678
+ */
679
+ get onkeyup(): ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
680
+ /**
681
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
682
+ *
683
+ * @deprecated
684
+ * @unsupported
685
+ * @implements DOM API: `Document`
686
+ */
687
+ get onload(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
688
+ /**
689
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
690
+ *
691
+ * @deprecated
692
+ * @unsupported
693
+ * @implements DOM API: `Document`
694
+ */
695
+ get onloadeddata(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
696
+ /**
697
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
698
+ *
699
+ * @deprecated
700
+ * @unsupported
701
+ * @implements DOM API: `Document`
702
+ */
703
+ get onloadedmetadata(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
704
+ /**
705
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
706
+ *
707
+ * @deprecated
708
+ * @unsupported
709
+ * @implements DOM API: `Document`
710
+ */
711
+ get onloadstart(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
712
+ /**
713
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
714
+ *
715
+ * @deprecated
716
+ * @unsupported
717
+ * @implements DOM API: `Document`
718
+ */
719
+ get onlostpointercapture(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
720
+ /**
721
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
722
+ *
723
+ * @deprecated
724
+ * @unsupported
725
+ * @implements DOM API: `Document`
726
+ */
727
+ get onmousedown(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
728
+ /**
729
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
730
+ *
731
+ * @deprecated
732
+ * @unsupported
733
+ * @implements DOM API: `Document`
734
+ */
735
+ get onmouseenter(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
736
+ /**
737
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
738
+ *
739
+ * @deprecated
740
+ * @unsupported
741
+ * @implements DOM API: `Document`
742
+ */
743
+ get onmouseleave(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
744
+ /**
745
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
746
+ *
747
+ * @deprecated
748
+ * @unsupported
749
+ * @implements DOM API: `Document`
750
+ */
751
+ get onmousemove(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
752
+ /**
753
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
754
+ *
755
+ * @deprecated
756
+ * @unsupported
757
+ * @implements DOM API: `Document`
758
+ */
759
+ get onmouseout(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
760
+ /**
761
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
762
+ *
763
+ * @deprecated
764
+ * @unsupported
765
+ * @implements DOM API: `Document`
766
+ */
767
+ get onmouseover(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
768
+ /**
769
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
770
+ *
771
+ * @deprecated
772
+ * @unsupported
773
+ * @implements DOM API: `Document`
774
+ */
775
+ get onmouseup(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
776
+ /**
777
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
778
+ *
779
+ * @deprecated
780
+ * @unsupported
781
+ * @implements DOM API: `Document`
782
+ */
783
+ get onpaste(): ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
784
+ /**
785
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
786
+ *
787
+ * @deprecated
788
+ * @unsupported
789
+ * @implements DOM API: `Document`
790
+ */
791
+ get onpause(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
792
+ /**
793
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
794
+ *
795
+ * @deprecated
796
+ * @unsupported
797
+ * @implements DOM API: `Document`
798
+ */
799
+ get onplay(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
800
+ /**
801
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
802
+ *
803
+ * @deprecated
804
+ * @unsupported
805
+ * @implements DOM API: `Document`
806
+ */
807
+ get onplaying(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
808
+ /**
809
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
810
+ *
811
+ * @deprecated
812
+ * @unsupported
813
+ * @implements DOM API: `Document`
814
+ */
815
+ get onpointercancel(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
816
+ /**
817
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
818
+ *
819
+ * @deprecated
820
+ * @unsupported
821
+ * @implements DOM API: `Document`
822
+ */
823
+ get onpointerdown(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
824
+ /**
825
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
826
+ *
827
+ * @deprecated
828
+ * @unsupported
829
+ * @implements DOM API: `Document`
830
+ */
831
+ get onpointerenter(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
832
+ /**
833
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
834
+ *
835
+ * @deprecated
836
+ * @unsupported
837
+ * @implements DOM API: `Document`
838
+ */
839
+ get onpointerleave(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
840
+ /**
841
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
842
+ *
843
+ * @deprecated
844
+ * @unsupported
845
+ * @implements DOM API: `Document`
846
+ */
847
+ get onpointerlockchange(): ((this: Document, ev: Event) => any) | null;
848
+ /**
849
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
850
+ *
851
+ * @deprecated
852
+ * @unsupported
853
+ * @implements DOM API: `Document`
854
+ */
855
+ get onpointerlockerror(): ((this: Document, ev: Event) => any) | null;
856
+ /**
857
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
858
+ *
859
+ * @deprecated
860
+ * @unsupported
861
+ * @implements DOM API: `Document`
862
+ */
863
+ get onpointermove(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
864
+ /**
865
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
866
+ *
867
+ * @deprecated
868
+ * @unsupported
869
+ * @implements DOM API: `Document`
870
+ */
871
+ get onpointerout(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
872
+ /**
873
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
874
+ *
875
+ * @deprecated
876
+ * @unsupported
877
+ * @implements DOM API: `Document`
878
+ */
879
+ get onpointerover(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
880
+ /**
881
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
882
+ *
883
+ * @deprecated
884
+ * @unsupported
885
+ * @implements DOM API: `Document`
886
+ */
887
+ get onpointerup(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
888
+ /**
889
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
890
+ *
891
+ * @deprecated
892
+ * @unsupported
893
+ * @implements DOM API: `Document`
894
+ */
895
+ get onprogress(): ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
896
+ /**
897
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
898
+ *
899
+ * @deprecated
900
+ * @unsupported
901
+ * @implements DOM API: `Document`
902
+ */
903
+ get onratechange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
904
+ /**
905
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
906
+ *
907
+ * @deprecated
908
+ * @unsupported
909
+ * @implements DOM API: `Document`
910
+ */
911
+ get onreadystatechange(): ((this: Document, ev: Event) => any) | null;
912
+ /**
913
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
914
+ *
915
+ * @deprecated
916
+ * @unsupported
917
+ * @implements DOM API: `Document`
918
+ */
919
+ get onreset(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
920
+ /**
921
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
922
+ *
923
+ * @deprecated
924
+ * @unsupported
925
+ * @implements DOM API: `Document`
926
+ */
927
+ get onresize(): ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
928
+ /**
929
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
930
+ *
931
+ * @deprecated
932
+ * @unsupported
933
+ * @implements DOM API: `Document`
934
+ */
935
+ get onscroll(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
936
+ /**
937
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
938
+ *
939
+ * @deprecated
940
+ * @unsupported
941
+ * @implements DOM API: `Document`
942
+ */
943
+ get onsecuritypolicyviolation(): ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
944
+ /**
945
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
946
+ *
947
+ * @deprecated
948
+ * @unsupported
949
+ * @implements DOM API: `Document`
950
+ */
951
+ get onseeked(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
952
+ /**
953
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
954
+ *
955
+ * @deprecated
956
+ * @unsupported
957
+ * @implements DOM API: `Document`
958
+ */
959
+ get onseeking(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
960
+ /**
961
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
962
+ *
963
+ * @deprecated
964
+ * @unsupported
965
+ * @implements DOM API: `Document`
966
+ */
967
+ get onselect(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
968
+ /**
969
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
970
+ *
971
+ * @deprecated
972
+ * @unsupported
973
+ * @implements DOM API: `Document`
974
+ */
975
+ get onselectionchange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
976
+ /**
977
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
978
+ *
979
+ * @deprecated
980
+ * @unsupported
981
+ * @implements DOM API: `Document`
982
+ */
983
+ get onselectstart(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
984
+ /**
985
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
986
+ *
987
+ * @deprecated
988
+ * @unsupported
989
+ * @implements DOM API: `Document`
990
+ */
991
+ get onslotchange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
992
+ /**
993
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
994
+ *
995
+ * @deprecated
996
+ * @unsupported
997
+ * @implements DOM API: `Document`
998
+ */
999
+ get onstalled(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1000
+ /**
1001
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1002
+ *
1003
+ * @deprecated
1004
+ * @unsupported
1005
+ * @implements DOM API: `Document`
1006
+ */
1007
+ get onsubmit(): ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
1008
+ /**
1009
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1010
+ *
1011
+ * @deprecated
1012
+ * @unsupported
1013
+ * @implements DOM API: `Document`
1014
+ */
1015
+ get onsuspend(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1016
+ /**
1017
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1018
+ *
1019
+ * @deprecated
1020
+ * @unsupported
1021
+ * @implements DOM API: `Document`
1022
+ */
1023
+ get ontimeupdate(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1024
+ /**
1025
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1026
+ *
1027
+ * @deprecated
1028
+ * @unsupported
1029
+ * @implements DOM API: `Document`
1030
+ */
1031
+ get ontoggle(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1032
+ /**
1033
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1034
+ *
1035
+ * @deprecated
1036
+ * @unsupported
1037
+ * @implements DOM API: `Document`
1038
+ */
1039
+ get ontransitioncancel(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1040
+ /**
1041
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1042
+ *
1043
+ * @deprecated
1044
+ * @unsupported
1045
+ * @implements DOM API: `Document`
1046
+ */
1047
+ get ontransitionend(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1048
+ /**
1049
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1050
+ *
1051
+ * @deprecated
1052
+ * @unsupported
1053
+ * @implements DOM API: `Document`
1054
+ */
1055
+ get ontransitionrun(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1056
+ /**
1057
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1058
+ *
1059
+ * @deprecated
1060
+ * @unsupported
1061
+ * @implements DOM API: `Document`
1062
+ */
1063
+ get ontransitionstart(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1064
+ /**
1065
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1066
+ *
1067
+ * @deprecated
1068
+ * @unsupported
1069
+ * @implements DOM API: `Document`
1070
+ */
1071
+ get onvisibilitychange(): ((this: Document, ev: Event) => any) | null;
1072
+ /**
1073
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1074
+ *
1075
+ * @deprecated
1076
+ * @unsupported
1077
+ * @implements DOM API: `Document`
1078
+ */
1079
+ get onvolumechange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1080
+ /**
1081
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1082
+ *
1083
+ * @deprecated
1084
+ * @unsupported
1085
+ * @implements DOM API: `Document`
1086
+ */
1087
+ get onwaiting(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1088
+ /**
1089
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1090
+ *
1091
+ * @deprecated
1092
+ * @unsupported
1093
+ * @implements DOM API: `Document`
1094
+ */
1095
+ get onwebkitanimationend(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1096
+ /**
1097
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1098
+ *
1099
+ * @deprecated
1100
+ * @unsupported
1101
+ * @implements DOM API: `Document`
1102
+ */
1103
+ get onwebkitanimationiteration(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1104
+ /**
1105
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1106
+ *
1107
+ * @deprecated
1108
+ * @unsupported
1109
+ * @implements DOM API: `Document`
1110
+ */
1111
+ get onwebkitanimationstart(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1112
+ /**
1113
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1114
+ *
1115
+ * @deprecated
1116
+ * @unsupported
1117
+ * @implements DOM API: `Document`
1118
+ */
1119
+ get onwebkittransitionend(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1120
+ /**
1121
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1122
+ *
1123
+ * @deprecated
1124
+ * @unsupported
1125
+ * @implements DOM API: `Document`
1126
+ */
1127
+ get onwheel(): ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1128
+ get ownerDocument(): null;
1129
+ get ownerMLDocument(): MLDocument<T, O>;
1130
+ /**
1131
+ * @implements DOM API: `Document`
1132
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-node-parentnode%E2%91%A0
1133
+ */
1134
+ get parentNode(): null;
1135
+ /**
1136
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1137
+ *
1138
+ * @unsupported
1139
+ * @implements DOM API: `Document`
1140
+ */
1141
+ get pictureInPictureElement(): Element | null;
1142
+ /**
1143
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1144
+ *
1145
+ * @unsupported
1146
+ * @implements DOM API: `Document`
1147
+ */
1148
+ get pictureInPictureEnabled(): boolean;
1149
+ /**
1150
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1151
+ *
1152
+ * @unsupported
1153
+ * @implements DOM API: `Document`
1154
+ */
1155
+ get plugins(): HTMLCollectionOf<HTMLEmbedElement>;
1156
+ /**
1157
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1158
+ *
1159
+ * @unsupported
1160
+ * @implements DOM API: `Document`
1161
+ */
1162
+ get pointerLockElement(): Element | null;
1163
+ /**
1164
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1165
+ *
1166
+ * @unsupported
1167
+ * @implements DOM API: `Document`
1168
+ */
1169
+ get readyState(): DocumentReadyState;
1170
+ /**
1171
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1172
+ *
1173
+ * @unsupported
1174
+ * @implements DOM API: `Document`
1175
+ */
1176
+ get referrer(): string;
1177
+ /**
1178
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1179
+ *
1180
+ * @deprecated
1181
+ * @unsupported
1182
+ * @implements DOM API: `Document`
1183
+ */
1184
+ get rootElement(): SVGSVGElement | null;
1185
+ /**
1186
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1187
+ *
1188
+ * @unsupported
1189
+ * @implements DOM API: `Document`
1190
+ */
1191
+ get scripts(): HTMLCollectionOf<HTMLScriptElement>;
1192
+ /**
1193
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1194
+ *
1195
+ * @unsupported
1196
+ * @implements DOM API: `Document`
1197
+ */
1198
+ get scrollingElement(): Element | null;
1199
+ /**
1200
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1201
+ *
1202
+ * @unsupported
1203
+ * @implements DOM API: `Document`
1204
+ */
1205
+ get styleSheets(): StyleSheetList;
1206
+ /**
1207
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1208
+ *
1209
+ * @unsupported
1210
+ * @implements DOM API: `Document`
1211
+ */
1212
+ get timeline(): DocumentTimeline;
1213
+ /**
1214
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1215
+ *
1216
+ * @unsupported
1217
+ * @implements DOM API: `Document`
1218
+ */
1219
+ get title(): string;
1220
+ /**
1221
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1222
+ *
1223
+ * @unsupported
1224
+ * @implements DOM API: `Document`
1225
+ */
1226
+ get visibilityState(): DocumentVisibilityState;
1227
+ /**
1228
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1229
+ *
1230
+ * @deprecated
1231
+ * @unsupported
1232
+ * @implements DOM API: `Document`
1233
+ */
1234
+ get vlinkColor(): string;
1235
+ /**
1236
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1237
+ *
1238
+ * @unsupported
1239
+ * @implements DOM API: `Document`
1240
+ */
1241
+ adoptNode<T extends Node>(node: T): T;
1242
+ /**
1243
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1244
+ *
1245
+ * @deprecated
1246
+ * @unsupported
1247
+ * @implements DOM API: `Document`
1248
+ */
1249
+ captureEvents(): void;
1250
+ /**
1251
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1252
+ *
1253
+ * @unsupported
1254
+ * @implements DOM API: `Document`
1255
+ */
1256
+ caretRangeFromPoint(x: number, y: number): Range | null;
1257
+ /**
1258
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1259
+ *
1260
+ * @deprecated
1261
+ * @unsupported
1262
+ * @implements DOM API: `Document`
1263
+ */
1264
+ clear(): void;
1265
+ /**
1266
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1267
+ *
1268
+ * @unsupported
1269
+ * @implements DOM API: `Document`
1270
+ */
1271
+ close(): void;
1272
+ /**
1273
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1274
+ *
1275
+ * @unsupported
1276
+ * @implements DOM API: `Document`
1277
+ */
1278
+ createAttribute(localName: string): Attr;
1279
+ /**
1280
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1281
+ *
1282
+ * @unsupported
1283
+ * @implements DOM API: `Document`
1284
+ */
1285
+ createAttributeNS(namespace: string | null, qualifiedName: string): Attr;
1286
+ /**
1287
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1288
+ *
1289
+ * @unsupported
1290
+ * @implements DOM API: `Document`
1291
+ */
1292
+ createCDATASection(data: string): CDATASection;
1293
+ /**
1294
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1295
+ *
1296
+ * @unsupported
1297
+ * @implements DOM API: `Document`
1298
+ */
1299
+ createComment(data: string): Comment;
1300
+ /**
1301
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1302
+ *
1303
+ * @unsupported
1304
+ * @implements DOM API: `Document`
1305
+ */
1306
+ createDocumentFragment(): DocumentFragment;
1307
+ /**
1308
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1309
+ *
1310
+ * @unsupported
1311
+ * @implements DOM API: `Document`
1312
+ */
1313
+ createElement(tagName: any, options?: any): any;
1314
+ /**
1315
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1316
+ *
1317
+ * @unsupported
1318
+ * @implements DOM API: `Document`
1319
+ */
1320
+ createElementNS(namespace: any, qualifiedName: any, options?: any): any;
1321
+ /**
1322
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1323
+ *
1324
+ * @unsupported
1325
+ * @implements DOM API: `Document`
1326
+ */
1327
+ createEvent(eventInterface: any): any;
1328
+ /**
1329
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1330
+ *
1331
+ * @unsupported
1332
+ * @implements DOM API: `Document`
1333
+ */
1334
+ createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;
1335
+ /**
1336
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1337
+ *
1338
+ * @unsupported
1339
+ * @implements DOM API: `Document`
1340
+ */
1341
+ createNSResolver(nodeResolver: Node): XPathNSResolver;
1342
+ /**
1343
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1344
+ *
1345
+ * @unsupported
1346
+ * @implements DOM API: `Document`
1347
+ */
1348
+ createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;
1349
+ /**
1350
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1351
+ *
1352
+ * @unsupported
1353
+ * @implements DOM API: `Document`
1354
+ */
1355
+ createProcessingInstruction(target: string, data: string): ProcessingInstruction;
1356
+ /**
1357
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1358
+ *
1359
+ * @unsupported
1360
+ * @implements DOM API: `Document`
1361
+ */
1362
+ createRange(): Range;
1363
+ /**
1364
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1365
+ *
1366
+ * @unsupported
1367
+ * @implements DOM API: `Document`
1368
+ */
1369
+ createTextNode(data: string): Text;
1370
+ /**
1371
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1372
+ *
1373
+ * @unsupported
1374
+ * @implements DOM API: `Document`
1375
+ */
1376
+ createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
1377
+ /**
1378
+ * @implements `@markuplint/ml-core` API: `MLDocument`
1379
+ */
1380
+ debugMap(): string[];
1381
+ /**
1382
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1383
+ *
1384
+ * @unsupported
1385
+ * @implements DOM API: `Document`
1386
+ */
1387
+ elementFromPoint(x: number, y: number): Element | null;
1388
+ /**
1389
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1390
+ *
1391
+ * @unsupported
1392
+ * @implements DOM API: `Document`
1393
+ */
1394
+ elementsFromPoint(x: number, y: number): Element[];
1395
+ /**
1396
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1397
+ *
1398
+ * @unsupported
1399
+ * @implements DOM API: `Document`
1400
+ */
1401
+ evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;
1402
+ /**
1403
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1404
+ *
1405
+ * @deprecated
1406
+ * @unsupported
1407
+ * @implements DOM API: `Document`
1408
+ */
1409
+ execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
1410
+ /**
1411
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1412
+ *
1413
+ * @unsupported
1414
+ * @implements DOM API: `Document`
1415
+ */
1416
+ exitFullscreen(): Promise<void>;
1417
+ /**
1418
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1419
+ *
1420
+ * @unsupported
1421
+ * @implements DOM API: `Document`
1422
+ */
1423
+ exitPictureInPicture(): Promise<void>;
1424
+ /**
1425
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1426
+ *
1427
+ * @unsupported
1428
+ * @implements DOM API: `Document`
1429
+ */
1430
+ exitPointerLock(): void;
1431
+ /**
1432
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1433
+ *
1434
+ * @unsupported
1435
+ * @implements DOM API: `Document`
1436
+ */
1437
+ getAnimations(): Animation[];
1438
+ /**
1439
+ * @implements DOM API: `Document`
1440
+ */
1441
+ getElementById(elementId: string): MLElement<T, O> | null;
1442
+ /**
1443
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1444
+ *
1445
+ * @unsupported
1446
+ * @implements DOM API: `Document`
1447
+ */
1448
+ getElementsByClassName(classNames: string): HTMLCollectionOf<MLElement<T, O>>;
1449
+ /**
1450
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1451
+ *
1452
+ * @unsupported
1453
+ * @implements DOM API: `Document`
1454
+ */
1455
+ getElementsByName(elementName: string): NodeListOf<HTMLElement>;
1456
+ /**
1457
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1458
+ *
1459
+ * @unsupported
1460
+ * @implements DOM API: `Document`
1461
+ */
1462
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<MLElement<T, O>>;
1463
+ /**
1464
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1465
+ *
1466
+ * @unsupported
1467
+ * @implements DOM API: `Document`
1468
+ */
1469
+ getElementsByTagNameNS(namespace: any, localName: any): any;
1470
+ /**
1471
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1472
+ *
1473
+ * @unsupported
1474
+ * @implements DOM API: `Document`
1475
+ */
1476
+ getSelection(): Selection | null;
1477
+ /**
1478
+ * @implements `@markuplint/ml-core` API: `MLDocument`
1479
+ */
1480
+ getTokenList(): readonly MLToken<import("@markuplint/ml-ast").MLToken>[];
1481
+ /**
1482
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1483
+ *
1484
+ * @unsupported
1485
+ * @implements DOM API: `Document`
1486
+ */
1487
+ hasFocus(): boolean;
1488
+ /**
1489
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1490
+ *
1491
+ * @unsupported
1492
+ * @implements DOM API: `Document`
1493
+ */
1494
+ hasStorageAccess(): Promise<boolean>;
1495
+ /**
1496
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1497
+ *
1498
+ * @unsupported
1499
+ * @implements DOM API: `Document`
1500
+ */
1501
+ importNode<T extends Node>(node: T, deep?: boolean): T;
1502
+ /**
1503
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1504
+ *
1505
+ * @unsupported
1506
+ * @implements DOM API: `Document`
1507
+ */
1508
+ open(url?: any, name?: any, features?: any): any;
1509
+ /**
1510
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1511
+ *
1512
+ * @deprecated
1513
+ * @unsupported
1514
+ * @implements DOM API: `Document`
1515
+ */
1516
+ queryCommandEnabled(commandId: string): boolean;
1517
+ /**
1518
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1519
+ *
1520
+ * @deprecated
1521
+ * @unsupported
1522
+ * @implements DOM API: `Document`
1523
+ */
1524
+ queryCommandIndeterm(commandId: string): boolean;
1525
+ /**
1526
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1527
+ *
1528
+ * @deprecated
1529
+ * @unsupported
1530
+ * @implements DOM API: `Document`
1531
+ */
1532
+ queryCommandState(commandId: string): boolean;
1533
+ /**
1534
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1535
+ *
1536
+ * @deprecated
1537
+ * @unsupported
1538
+ * @implements DOM API: `Document`
1539
+ */
1540
+ queryCommandSupported(commandId: string): boolean;
1541
+ /**
1542
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1543
+ *
1544
+ * @deprecated
1545
+ * @unsupported
1546
+ * @implements DOM API: `Document`
1547
+ */
1548
+ queryCommandValue(commandId: string): string;
1549
+ /**
1550
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1551
+ *
1552
+ * @deprecated
1553
+ * @unsupported
1554
+ * @implements DOM API: `Document`
1555
+ */
1556
+ releaseEvents(): void;
1557
+ /**
1558
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1559
+ *
1560
+ * @unsupported
1561
+ * @implements DOM API: `Document`
1562
+ */
1563
+ requestStorageAccess(): Promise<void>;
1564
+ /**
1565
+ * @implements `@markuplint/ml-core` API: `MLDocument`
1566
+ */
1567
+ searchNodeByLocation(line: number, col: number): MLNode<T, O, import("@markuplint/ml-ast").MLASTAbstractNode> | null;
1568
+ /**
1569
+ * @implements `@markuplint/ml-core` API: `MLDocument`
1570
+ */
1571
+ setRule(rule: Readonly<MLRule<T, O>> | null): void;
1572
+ /**
1573
+ * @implements `@markuplint/ml-core` API: `MLDocument`
1574
+ */
1575
+ toString(): string;
1576
+ /**
1577
+ * @implements `@markuplint/ml-core` API: `MLDocument`
1578
+ */
1579
+ walkOn(type: 'Element', walker: Walker<T, O, MLElement<T, O>>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1580
+ walkOn(type: 'Text', walker: Walker<T, O, MLText<T, O>>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1581
+ walkOn(type: 'Comment', walker: Walker<T, O, MLComment<T, O>>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1582
+ walkOn(type: 'Attr', walker: Walker<T, O, MLAttr<T, O>>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1583
+ walkOn(type: 'ElementCloseTag', walker: Walker<T, O, MLToken>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1584
+ /**
1585
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1586
+ *
1587
+ * @unsupported
1588
+ * @implements DOM API: `Document`
1589
+ */
1590
+ write(...text: readonly string[]): void;
1591
+ /**
1592
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1593
+ *
1594
+ * @unsupported
1595
+ * @implements DOM API: `Document`
1596
+ */
1597
+ writeln(...text: readonly string[]): void;
1598
+ private _pretending;
1599
+ private _ruleMapping;
1613
1600
  }