@markuplint/ml-core 3.9.0 → 3.11.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 (44) hide show
  1. package/lib/index.d.ts +1 -11
  2. package/lib/ml-core.d.ts +11 -22
  3. package/lib/ml-dom/helper/create-node.d.ts +1 -5
  4. package/lib/ml-dom/helper/getIndent.d.ts +7 -7
  5. package/lib/ml-dom/helper/walkers.d.ts +4 -14
  6. package/lib/ml-dom/manipulations/child-node-methods.d.ts +5 -18
  7. package/lib/ml-dom/manipulations/get-children.d.ts +1 -3
  8. package/lib/ml-dom/node/attr.d.ts +90 -93
  9. package/lib/ml-dom/node/block.d.ts +31 -35
  10. package/lib/ml-dom/node/character-data.d.ts +52 -59
  11. package/lib/ml-dom/node/child-node.d.ts +2 -9
  12. package/lib/ml-dom/node/comment.d.ts +12 -15
  13. package/lib/ml-dom/node/document-fragment.d.ts +19 -22
  14. package/lib/ml-dom/node/document-type.d.ts +31 -34
  15. package/lib/ml-dom/node/document.d.ts +1583 -1600
  16. package/lib/ml-dom/node/document.js +12 -1
  17. package/lib/ml-dom/node/dom-token-list.d.ts +26 -26
  18. package/lib/ml-dom/node/element.d.ts +1904 -1902
  19. package/lib/ml-dom/node/element.js +17 -1
  20. package/lib/ml-dom/node/named-node-map.d.ts +39 -44
  21. package/lib/ml-dom/node/node-list.d.ts +3 -9
  22. package/lib/ml-dom/node/node-store.d.ts +3 -8
  23. package/lib/ml-dom/node/node-store.js +1 -1
  24. package/lib/ml-dom/node/node.d.ts +471 -491
  25. package/lib/ml-dom/node/parent-node.d.ts +57 -66
  26. package/lib/ml-dom/node/rule-mapper.d.ts +7 -7
  27. package/lib/ml-dom/node/text.d.ts +46 -49
  28. package/lib/ml-dom/node/types.d.ts +12 -80
  29. package/lib/ml-dom/node/unexpected-call-error.d.ts +2 -1
  30. package/lib/ml-dom/token/token.d.ts +44 -44
  31. package/lib/ml-rule/create-rule.d.ts +1 -3
  32. package/lib/ml-rule/create-test-rule.d.ts +3 -5
  33. package/lib/ml-rule/ml-rule-context.d.ts +47 -55
  34. package/lib/ml-rule/ml-rule.d.ts +23 -33
  35. package/lib/ml-rule/ml-rule.js +5 -1
  36. package/lib/ml-rule/types.d.ts +13 -31
  37. package/lib/plugin/plugin.d.ts +1 -3
  38. package/lib/plugin/types.d.ts +5 -5
  39. package/lib/ruleset/index.d.ts +4 -4
  40. package/lib/test/index.d.ts +7 -19
  41. package/lib/types.d.ts +8 -8
  42. package/lib/utils/get-location-from-chars.d.ts +4 -9
  43. package/package.json +14 -14
  44. package/test/ml-dom/ml-rule/create-rule.spec.js +108 -0
@@ -14,1604 +14,1587 @@ import type { EndTagType, MLASTDocument } from '@markuplint/ml-ast';
14
14
  import type { PlainData, Pretender, RuleConfigValue } from '@markuplint/ml-config';
15
15
  import type { MLMLSpec } from '@markuplint/ml-spec';
16
16
  import { MLParentNode } from './parent-node';
17
- export declare class MLDocument<T extends RuleConfigValue, O extends PlainData = undefined>
18
- extends MLParentNode<T, O>
19
- implements Document
20
- {
21
- #private;
22
- /**
23
- * Detect value as a true if its attribute is booleanish value and omitted.
24
- *
25
- * Ex:
26
- * ```jsx
27
- * <Component aria-hidden />
28
- * ```
29
- *
30
- * In the above, the `aria-hidden` is `true`.
31
- *
32
- * @default false
33
- */
34
- readonly booleanish: boolean;
35
- /**
36
- *
37
- */
38
- currentRule: Readonly<MLRule<T, O>> | null;
39
- /**
40
- * This is defined by the parser.
41
- *
42
- * @default "omittable"
43
- */
44
- readonly endTag: EndTagType;
45
- /**
46
- *
47
- */
48
- readonly isFragment: boolean;
49
- /**
50
- * An array of markuplint DOM nodes
51
- */
52
- readonly nodeList: ReadonlyArray<MLNode<T, O>>;
53
- readonly ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
54
- readonly ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
55
- readonly ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
56
- readonly ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
57
- /**
58
- *
59
- */
60
- readonly specs: MLMLSpec;
61
- /**
62
- *
63
- * @param ast node list of markuplint AST
64
- * @param ruleset ruleset object
65
- */
66
- constructor(
67
- ast: MLASTDocument,
68
- ruleset: Ruleset,
69
- schemas: MLSchema,
70
- options?: {
71
- readonly filename?: string;
72
- readonly endTag?: 'xml' | 'omittable' | 'never';
73
- readonly booleanish?: boolean;
74
- readonly pretenders?: readonly Pretender[];
75
- },
76
- );
77
- /**
78
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
79
- *
80
- * @unsupported
81
- * @implements DOM API: `Document`
82
- */
83
- get URL(): string;
84
- /**
85
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
86
- *
87
- * @unsupported
88
- * @implements DOM API: `Document`
89
- */
90
- get activeElement(): Element | null;
91
- /**
92
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
93
- *
94
- * @unsupported
95
- * @implements DOM API: `Document`
96
- */
97
- get adoptedStyleSheets(): CSSStyleSheet[];
98
- /**
99
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
100
- *
101
- * @deprecated
102
- * @unsupported
103
- * @implements DOM API: `Document`
104
- */
105
- get alinkColor(): string;
106
- /**
107
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
108
- *
109
- * @deprecated
110
- * @unsupported
111
- * @implements DOM API: `Document`
112
- */
113
- get all(): HTMLAllCollection;
114
- /**
115
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
116
- *
117
- * @deprecated
118
- * @unsupported
119
- * @implements DOM API: `Document`
120
- */
121
- get anchors(): HTMLCollectionOf<HTMLAnchorElement>;
122
- /**
123
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
124
- *
125
- * @deprecated
126
- * @unsupported
127
- * @implements DOM API: `Document`
128
- */
129
- get applets(): HTMLCollection;
130
- /**
131
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
132
- *
133
- * @deprecated
134
- * @unsupported
135
- * @implements DOM API: `Document`
136
- */
137
- get bgColor(): string;
138
- /**
139
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
140
- *
141
- * @unsupported
142
- * @implements DOM API: `Document`
143
- */
144
- get body(): HTMLElement;
145
- /**
146
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
147
- *
148
- * @unsupported
149
- * @implements DOM API: `Document`
150
- */
151
- get characterSet(): string;
152
- /**
153
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
154
- *
155
- * @deprecated
156
- * @unsupported
157
- * @implements DOM API: `Document`
158
- */
159
- get charset(): string;
160
- /**
161
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
162
- *
163
- * @unsupported
164
- * @implements DOM API: `Document`
165
- */
166
- get compatMode(): string;
167
- /**
168
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
169
- *
170
- * @unsupported
171
- * @implements DOM API: `Document`
172
- */
173
- get contentType(): string;
174
- /**
175
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
176
- *
177
- * @unsupported
178
- * @implements DOM API: `Document`
179
- */
180
- get cookie(): string;
181
- /**
182
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
183
- *
184
- * @unsupported
185
- * @implements DOM API: `Document`
186
- */
187
- get currentScript(): HTMLOrSVGScriptElement | null;
188
- /**
189
- * Window object for calling the `getComputedStyle` and the `getPropertyValue` that
190
- * are needed by **Accessible Name and Description Computation**.
191
- * But it always returns the empty object.
192
- * (It may improve to possible to compute the name from the `style` attribute in the future.)
193
- *
194
- * @implements DOM API: `Document`
195
- */
196
- get defaultView(): any;
197
- /**
198
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
199
- *
200
- * @unsupported
201
- * @implements DOM API: `Document`
202
- */
203
- get designMode(): string;
204
- /**
205
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
206
- *
207
- * @unsupported
208
- * @implements DOM API: `Document`
209
- */
210
- get dir(): string;
211
- /**
212
- * @implements DOM API: `Document`
213
- */
214
- get doctype(): MLDocumentType<T, O> | null;
215
- /**
216
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
217
- *
218
- * @unsupported
219
- * @implements DOM API: `Document`
220
- */
221
- get documentElement(): HTMLElement;
222
- /**
223
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
224
- *
225
- * @unsupported
226
- * @implements DOM API: `Document`
227
- */
228
- get documentURI(): string;
229
- /**
230
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
231
- *
232
- * @unsupported
233
- * @implements DOM API: `Document`
234
- */
235
- get domain(): string;
236
- /**
237
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
238
- *
239
- * @unsupported
240
- * @implements DOM API: `Document`
241
- */
242
- get embeds(): HTMLCollectionOf<HTMLEmbedElement>;
243
- /**
244
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
245
- *
246
- * @deprecated
247
- * @unsupported
248
- * @implements DOM API: `Document`
249
- */
250
- get fgColor(): string;
251
- /**
252
- * It could be used in rule, make sure it is immutable
253
- *
254
- * @implements `@markuplint/ml-core` API: `MLDOMDocument`
255
- */
256
- get filename(): string | undefined;
257
- /**
258
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
259
- *
260
- * @unsupported
261
- * @implements DOM API: `Document`
262
- */
263
- get fonts(): FontFaceSet;
264
- /**
265
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
266
- *
267
- * @unsupported
268
- * @implements DOM API: `Document`
269
- */
270
- get forms(): HTMLCollectionOf<HTMLFormElement>;
271
- /**
272
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
273
- *
274
- * @deprecated
275
- * @unsupported
276
- * @implements DOM API: `Document`
277
- */
278
- get fullscreen(): boolean;
279
- /**
280
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
281
- *
282
- * @unsupported
283
- * @implements DOM API: `Document`
284
- */
285
- get fullscreenElement(): Element | null;
286
- /**
287
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
288
- *
289
- * @unsupported
290
- * @implements DOM API: `Document`
291
- */
292
- get fullscreenEnabled(): boolean;
293
- /**
294
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
295
- *
296
- * @unsupported
297
- * @implements DOM API: `Document`
298
- */
299
- get head(): HTMLHeadElement;
300
- /**
301
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
302
- *
303
- * @unsupported
304
- * @implements DOM API: `Document`
305
- */
306
- get hidden(): boolean;
307
- /**
308
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
309
- *
310
- * @unsupported
311
- * @implements DOM API: `Document`
312
- */
313
- get images(): HTMLCollectionOf<HTMLImageElement>;
314
- /**
315
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
316
- *
317
- * @unsupported
318
- * @implements DOM API: `Document`
319
- */
320
- get implementation(): DOMImplementation;
321
- /**
322
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
323
- *
324
- * @deprecated
325
- * @unsupported
326
- * @implements DOM API: `Document`
327
- */
328
- get inputEncoding(): string;
329
- /**
330
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
331
- *
332
- * @unsupported
333
- * @implements DOM API: `Document`
334
- */
335
- get lastModified(): string;
336
- /**
337
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
338
- *
339
- * @deprecated
340
- * @unsupported
341
- * @implements DOM API: `Document`
342
- */
343
- get linkColor(): string;
344
- /**
345
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
346
- *
347
- * @unsupported
348
- * @implements DOM API: `Document`
349
- */
350
- get links(): HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
351
- /**
352
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
353
- *
354
- * @unsupported
355
- * @implements DOM API: `Document`
356
- */
357
- get location(): Location;
358
- /**
359
- * Returns a string appropriate for the type of node as `Document`
360
- *
361
- * @see https://dom.spec.whatwg.org/#ref-for-document%E2%91%A8
362
- */
363
- get nodeName(): '#document';
364
- /**
365
- * Returns a number appropriate for the type of `Document`
366
- */
367
- get nodeType(): DocumentNodeType;
368
- /**
369
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
370
- *
371
- * @deprecated
372
- * @unsupported
373
- * @implements DOM API: `Document`
374
- */
375
- get onabort(): ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
376
- /**
377
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
378
- *
379
- * @deprecated
380
- * @unsupported
381
- * @implements DOM API: `Document`
382
- */
383
- get onanimationcancel(): ((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 onanimationend(): ((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 onanimationiteration(): ((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 onanimationstart(): ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
408
- /**
409
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
410
- *
411
- * @deprecated
412
- * @unsupported
413
- * @implements DOM API: `Document`
414
- */
415
- get onauxclick(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
416
- /**
417
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
418
- *
419
- * @deprecated
420
- * @unsupported
421
- * @implements DOM API: `Document`
422
- */
423
- get onbeforeinput(): ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
424
- /**
425
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
426
- *
427
- * @deprecated
428
- * @unsupported
429
- * @implements DOM API: `Document`
430
- */
431
- get onblur(): ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
432
- /**
433
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
434
- *
435
- * @deprecated
436
- * @unsupported
437
- * @implements DOM API: `Document`
438
- */
439
- get oncancel(): ((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 oncanplay(): ((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 oncanplaythrough(): ((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 onchange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
464
- /**
465
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
466
- *
467
- * @deprecated
468
- * @unsupported
469
- * @implements DOM API: `Document`
470
- */
471
- get onclick(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
472
- /**
473
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
474
- *
475
- * @deprecated
476
- * @unsupported
477
- * @implements DOM API: `Document`
478
- */
479
- get onclose(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
480
- /**
481
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
482
- *
483
- * @deprecated
484
- * @unsupported
485
- * @implements DOM API: `Document`
486
- */
487
- get oncontextmenu(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
488
- /**
489
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
490
- *
491
- * @deprecated
492
- * @unsupported
493
- * @implements DOM API: `Document`
494
- */
495
- get oncopy(): ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
496
- /**
497
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
498
- *
499
- * @deprecated
500
- * @unsupported
501
- * @implements DOM API: `Document`
502
- */
503
- get oncuechange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
504
- /**
505
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
506
- *
507
- * @deprecated
508
- * @unsupported
509
- * @implements DOM API: `Document`
510
- */
511
- get oncut(): ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
512
- /**
513
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
514
- *
515
- * @deprecated
516
- * @unsupported
517
- * @implements DOM API: `Document`
518
- */
519
- get ondblclick(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
520
- /**
521
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
522
- *
523
- * @deprecated
524
- * @unsupported
525
- * @implements DOM API: `Document`
526
- */
527
- get ondrag(): ((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 ondragend(): ((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 ondragenter(): ((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 ondragleave(): ((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 ondragover(): ((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 ondragstart(): ((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 ondrop(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
576
- /**
577
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
578
- *
579
- * @deprecated
580
- * @unsupported
581
- * @implements DOM API: `Document`
582
- */
583
- get ondurationchange(): ((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 onemptied(): ((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 onended(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
600
- /**
601
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
602
- *
603
- * @deprecated
604
- * @unsupported
605
- * @implements DOM API: `Document`
606
- */
607
- get onerror(): OnErrorEventHandler;
608
- /**
609
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
610
- *
611
- * @deprecated
612
- * @unsupported
613
- * @implements DOM API: `Document`
614
- */
615
- get onfocus(): ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
616
- /**
617
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
618
- *
619
- * @deprecated
620
- * @unsupported
621
- * @implements DOM API: `Document`
622
- */
623
- get onformdata(): ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
624
- /**
625
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
626
- *
627
- * @deprecated
628
- * @unsupported
629
- * @implements DOM API: `Document`
630
- */
631
- get onfullscreenchange(): ((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 onfullscreenerror(): ((this: Document, ev: Event) => any) | null;
640
- /**
641
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
642
- *
643
- * @deprecated
644
- * @unsupported
645
- * @implements DOM API: `Document`
646
- */
647
- get ongotpointercapture(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
648
- /**
649
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
650
- *
651
- * @deprecated
652
- * @unsupported
653
- * @implements DOM API: `Document`
654
- */
655
- get oninput(): ((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 oninvalid(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
664
- /**
665
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
666
- *
667
- * @deprecated
668
- * @unsupported
669
- * @implements DOM API: `Document`
670
- */
671
- get onkeydown(): ((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 onkeypress(): ((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 onkeyup(): ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
688
- /**
689
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
690
- *
691
- * @deprecated
692
- * @unsupported
693
- * @implements DOM API: `Document`
694
- */
695
- get onload(): ((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 onloadeddata(): ((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 onloadedmetadata(): ((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 onloadstart(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
720
- /**
721
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
722
- *
723
- * @deprecated
724
- * @unsupported
725
- * @implements DOM API: `Document`
726
- */
727
- get onlostpointercapture(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
728
- /**
729
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
730
- *
731
- * @deprecated
732
- * @unsupported
733
- * @implements DOM API: `Document`
734
- */
735
- get onmousedown(): ((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 onmouseenter(): ((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 onmouseleave(): ((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 onmousemove(): ((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 onmouseout(): ((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 onmouseover(): ((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 onmouseup(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
784
- /**
785
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
786
- *
787
- * @deprecated
788
- * @unsupported
789
- * @implements DOM API: `Document`
790
- */
791
- get onpaste(): ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
792
- /**
793
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
794
- *
795
- * @deprecated
796
- * @unsupported
797
- * @implements DOM API: `Document`
798
- */
799
- get onpause(): ((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 onplay(): ((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 onplaying(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
816
- /**
817
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
818
- *
819
- * @deprecated
820
- * @unsupported
821
- * @implements DOM API: `Document`
822
- */
823
- get onpointercancel(): ((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 onpointerdown(): ((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 onpointerenter(): ((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 onpointerleave(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
848
- /**
849
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
850
- *
851
- * @deprecated
852
- * @unsupported
853
- * @implements DOM API: `Document`
854
- */
855
- get onpointerlockchange(): ((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 onpointerlockerror(): ((this: Document, ev: Event) => any) | null;
864
- /**
865
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
866
- *
867
- * @deprecated
868
- * @unsupported
869
- * @implements DOM API: `Document`
870
- */
871
- get onpointermove(): ((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 onpointerout(): ((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 onpointerover(): ((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 onpointerup(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
896
- /**
897
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
898
- *
899
- * @deprecated
900
- * @unsupported
901
- * @implements DOM API: `Document`
902
- */
903
- get onprogress(): ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
904
- /**
905
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
906
- *
907
- * @deprecated
908
- * @unsupported
909
- * @implements DOM API: `Document`
910
- */
911
- get onratechange(): ((this: GlobalEventHandlers, 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 onreadystatechange(): ((this: Document, 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 onreset(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
928
- /**
929
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
930
- *
931
- * @deprecated
932
- * @unsupported
933
- * @implements DOM API: `Document`
934
- */
935
- get onresize(): ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
936
- /**
937
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
938
- *
939
- * @deprecated
940
- * @unsupported
941
- * @implements DOM API: `Document`
942
- */
943
- get onscroll(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
944
- /**
945
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
946
- *
947
- * @deprecated
948
- * @unsupported
949
- * @implements DOM API: `Document`
950
- */
951
- get onsecuritypolicyviolation(): ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
952
- /**
953
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
954
- *
955
- * @deprecated
956
- * @unsupported
957
- * @implements DOM API: `Document`
958
- */
959
- get onseeked(): ((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 onseeking(): ((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 onselect(): ((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 onselectionchange(): ((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 onselectstart(): ((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 onslotchange(): ((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 onstalled(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1008
- /**
1009
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1010
- *
1011
- * @deprecated
1012
- * @unsupported
1013
- * @implements DOM API: `Document`
1014
- */
1015
- get onsubmit(): ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
1016
- /**
1017
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1018
- *
1019
- * @deprecated
1020
- * @unsupported
1021
- * @implements DOM API: `Document`
1022
- */
1023
- get onsuspend(): ((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 ontimeupdate(): ((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 ontoggle(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1040
- /**
1041
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1042
- *
1043
- * @deprecated
1044
- * @unsupported
1045
- * @implements DOM API: `Document`
1046
- */
1047
- get ontransitioncancel(): ((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 ontransitionend(): ((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 ontransitionrun(): ((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 ontransitionstart(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1072
- /**
1073
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1074
- *
1075
- * @deprecated
1076
- * @unsupported
1077
- * @implements DOM API: `Document`
1078
- */
1079
- get onvisibilitychange(): ((this: Document, 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 onvolumechange(): ((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 onwaiting(): ((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 onwebkitanimationend(): ((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 onwebkitanimationiteration(): ((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 onwebkitanimationstart(): ((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 onwebkittransitionend(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1128
- /**
1129
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1130
- *
1131
- * @deprecated
1132
- * @unsupported
1133
- * @implements DOM API: `Document`
1134
- */
1135
- get onwheel(): ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1136
- get ownerDocument(): null;
1137
- get ownerMLDocument(): MLDocument<T, O>;
1138
- /**
1139
- * @implements DOM API: `Document`
1140
- * @see https://dom.spec.whatwg.org/#ref-for-dom-node-parentnode%E2%91%A0
1141
- */
1142
- get parentNode(): null;
1143
- /**
1144
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1145
- *
1146
- * @unsupported
1147
- * @implements DOM API: `Document`
1148
- */
1149
- get pictureInPictureElement(): Element | null;
1150
- /**
1151
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1152
- *
1153
- * @unsupported
1154
- * @implements DOM API: `Document`
1155
- */
1156
- get pictureInPictureEnabled(): boolean;
1157
- /**
1158
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1159
- *
1160
- * @unsupported
1161
- * @implements DOM API: `Document`
1162
- */
1163
- get plugins(): HTMLCollectionOf<HTMLEmbedElement>;
1164
- /**
1165
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1166
- *
1167
- * @unsupported
1168
- * @implements DOM API: `Document`
1169
- */
1170
- get pointerLockElement(): Element | null;
1171
- /**
1172
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1173
- *
1174
- * @unsupported
1175
- * @implements DOM API: `Document`
1176
- */
1177
- get readyState(): DocumentReadyState;
1178
- /**
1179
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1180
- *
1181
- * @unsupported
1182
- * @implements DOM API: `Document`
1183
- */
1184
- get referrer(): string;
1185
- /**
1186
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1187
- *
1188
- * @deprecated
1189
- * @unsupported
1190
- * @implements DOM API: `Document`
1191
- */
1192
- get rootElement(): SVGSVGElement | null;
1193
- /**
1194
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1195
- *
1196
- * @unsupported
1197
- * @implements DOM API: `Document`
1198
- */
1199
- get scripts(): HTMLCollectionOf<HTMLScriptElement>;
1200
- /**
1201
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1202
- *
1203
- * @unsupported
1204
- * @implements DOM API: `Document`
1205
- */
1206
- get scrollingElement(): Element | null;
1207
- /**
1208
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1209
- *
1210
- * @unsupported
1211
- * @implements DOM API: `Document`
1212
- */
1213
- get styleSheets(): StyleSheetList;
1214
- /**
1215
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1216
- *
1217
- * @unsupported
1218
- * @implements DOM API: `Document`
1219
- */
1220
- get timeline(): DocumentTimeline;
1221
- /**
1222
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1223
- *
1224
- * @unsupported
1225
- * @implements DOM API: `Document`
1226
- */
1227
- get title(): string;
1228
- /**
1229
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1230
- *
1231
- * @unsupported
1232
- * @implements DOM API: `Document`
1233
- */
1234
- get visibilityState(): DocumentVisibilityState;
1235
- /**
1236
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1237
- *
1238
- * @deprecated
1239
- * @unsupported
1240
- * @implements DOM API: `Document`
1241
- */
1242
- get vlinkColor(): string;
1243
- /**
1244
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1245
- *
1246
- * @unsupported
1247
- * @implements DOM API: `Document`
1248
- */
1249
- adoptNode<T extends Node>(node: T): T;
1250
- /**
1251
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1252
- *
1253
- * @deprecated
1254
- * @unsupported
1255
- * @implements DOM API: `Document`
1256
- */
1257
- captureEvents(): void;
1258
- /**
1259
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1260
- *
1261
- * @unsupported
1262
- * @implements DOM API: `Document`
1263
- */
1264
- caretRangeFromPoint(x: number, y: number): Range | null;
1265
- /**
1266
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1267
- *
1268
- * @deprecated
1269
- * @unsupported
1270
- * @implements DOM API: `Document`
1271
- */
1272
- clear(): void;
1273
- /**
1274
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1275
- *
1276
- * @unsupported
1277
- * @implements DOM API: `Document`
1278
- */
1279
- close(): void;
1280
- /**
1281
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1282
- *
1283
- * @unsupported
1284
- * @implements DOM API: `Document`
1285
- */
1286
- createAttribute(localName: string): Attr;
1287
- /**
1288
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1289
- *
1290
- * @unsupported
1291
- * @implements DOM API: `Document`
1292
- */
1293
- createAttributeNS(namespace: string | null, qualifiedName: string): Attr;
1294
- /**
1295
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1296
- *
1297
- * @unsupported
1298
- * @implements DOM API: `Document`
1299
- */
1300
- createCDATASection(data: string): CDATASection;
1301
- /**
1302
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1303
- *
1304
- * @unsupported
1305
- * @implements DOM API: `Document`
1306
- */
1307
- createComment(data: string): Comment;
1308
- /**
1309
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1310
- *
1311
- * @unsupported
1312
- * @implements DOM API: `Document`
1313
- */
1314
- createDocumentFragment(): DocumentFragment;
1315
- /**
1316
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1317
- *
1318
- * @unsupported
1319
- * @implements DOM API: `Document`
1320
- */
1321
- createElement(tagName: any, options?: any): any;
1322
- /**
1323
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1324
- *
1325
- * @unsupported
1326
- * @implements DOM API: `Document`
1327
- */
1328
- createElementNS(namespace: any, qualifiedName: any, options?: any): any;
1329
- /**
1330
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1331
- *
1332
- * @unsupported
1333
- * @implements DOM API: `Document`
1334
- */
1335
- createEvent(eventInterface: any): any;
1336
- /**
1337
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1338
- *
1339
- * @unsupported
1340
- * @implements DOM API: `Document`
1341
- */
1342
- createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;
1343
- /**
1344
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1345
- *
1346
- * @unsupported
1347
- * @implements DOM API: `Document`
1348
- */
1349
- createNSResolver(nodeResolver: Node): XPathNSResolver;
1350
- /**
1351
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1352
- *
1353
- * @unsupported
1354
- * @implements DOM API: `Document`
1355
- */
1356
- createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;
1357
- /**
1358
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1359
- *
1360
- * @unsupported
1361
- * @implements DOM API: `Document`
1362
- */
1363
- createProcessingInstruction(target: string, data: string): ProcessingInstruction;
1364
- /**
1365
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1366
- *
1367
- * @unsupported
1368
- * @implements DOM API: `Document`
1369
- */
1370
- createRange(): Range;
1371
- /**
1372
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1373
- *
1374
- * @unsupported
1375
- * @implements DOM API: `Document`
1376
- */
1377
- createTextNode(data: string): Text;
1378
- /**
1379
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1380
- *
1381
- * @unsupported
1382
- * @implements DOM API: `Document`
1383
- */
1384
- createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
1385
- /**
1386
- * @implements `@markuplint/ml-core` API: `MLDocument`
1387
- */
1388
- debugMap(): string[];
1389
- /**
1390
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1391
- *
1392
- * @unsupported
1393
- * @implements DOM API: `Document`
1394
- */
1395
- elementFromPoint(x: number, y: number): Element | null;
1396
- /**
1397
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1398
- *
1399
- * @unsupported
1400
- * @implements DOM API: `Document`
1401
- */
1402
- elementsFromPoint(x: number, y: number): Element[];
1403
- /**
1404
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1405
- *
1406
- * @unsupported
1407
- * @implements DOM API: `Document`
1408
- */
1409
- evaluate(
1410
- expression: string,
1411
- contextNode: Node,
1412
- resolver?: XPathNSResolver | null,
1413
- type?: number,
1414
- result?: XPathResult | null,
1415
- ): XPathResult;
1416
- /**
1417
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1418
- *
1419
- * @deprecated
1420
- * @unsupported
1421
- * @implements DOM API: `Document`
1422
- */
1423
- execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
1424
- /**
1425
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1426
- *
1427
- * @unsupported
1428
- * @implements DOM API: `Document`
1429
- */
1430
- exitFullscreen(): Promise<void>;
1431
- /**
1432
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1433
- *
1434
- * @unsupported
1435
- * @implements DOM API: `Document`
1436
- */
1437
- exitPictureInPicture(): Promise<void>;
1438
- /**
1439
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1440
- *
1441
- * @unsupported
1442
- * @implements DOM API: `Document`
1443
- */
1444
- exitPointerLock(): void;
1445
- /**
1446
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1447
- *
1448
- * @unsupported
1449
- * @implements DOM API: `Document`
1450
- */
1451
- getAnimations(): Animation[];
1452
- /**
1453
- * @implements DOM API: `Document`
1454
- */
1455
- getElementById(elementId: string): MLElement<T, O> | null;
1456
- /**
1457
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1458
- *
1459
- * @unsupported
1460
- * @implements DOM API: `Document`
1461
- */
1462
- getElementsByClassName(classNames: string): HTMLCollectionOf<MLElement<T, O>>;
1463
- /**
1464
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1465
- *
1466
- * @unsupported
1467
- * @implements DOM API: `Document`
1468
- */
1469
- getElementsByName(elementName: string): NodeListOf<HTMLElement>;
1470
- /**
1471
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1472
- *
1473
- * @unsupported
1474
- * @implements DOM API: `Document`
1475
- */
1476
- getElementsByTagName(qualifiedName: string): HTMLCollectionOf<MLElement<T, O>>;
1477
- /**
1478
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1479
- *
1480
- * @unsupported
1481
- * @implements DOM API: `Document`
1482
- */
1483
- getElementsByTagNameNS(namespace: any, localName: any): any;
1484
- /**
1485
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1486
- *
1487
- * @unsupported
1488
- * @implements DOM API: `Document`
1489
- */
1490
- getSelection(): Selection | null;
1491
- /**
1492
- * @implements `@markuplint/ml-core` API: `MLDocument`
1493
- */
1494
- getTokenList(): readonly MLToken<import('@markuplint/ml-ast').MLToken>[];
1495
- /**
1496
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1497
- *
1498
- * @unsupported
1499
- * @implements DOM API: `Document`
1500
- */
1501
- hasFocus(): boolean;
1502
- /**
1503
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1504
- *
1505
- * @unsupported
1506
- * @implements DOM API: `Document`
1507
- */
1508
- hasStorageAccess(): Promise<boolean>;
1509
- /**
1510
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1511
- *
1512
- * @unsupported
1513
- * @implements DOM API: `Document`
1514
- */
1515
- importNode<T extends Node>(node: T, deep?: boolean): T;
1516
- /**
1517
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1518
- *
1519
- * @unsupported
1520
- * @implements DOM API: `Document`
1521
- */
1522
- open(url?: any, name?: any, features?: any): any;
1523
- /**
1524
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1525
- *
1526
- * @deprecated
1527
- * @unsupported
1528
- * @implements DOM API: `Document`
1529
- */
1530
- queryCommandEnabled(commandId: string): boolean;
1531
- /**
1532
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1533
- *
1534
- * @deprecated
1535
- * @unsupported
1536
- * @implements DOM API: `Document`
1537
- */
1538
- queryCommandIndeterm(commandId: string): boolean;
1539
- /**
1540
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1541
- *
1542
- * @deprecated
1543
- * @unsupported
1544
- * @implements DOM API: `Document`
1545
- */
1546
- queryCommandState(commandId: string): boolean;
1547
- /**
1548
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1549
- *
1550
- * @deprecated
1551
- * @unsupported
1552
- * @implements DOM API: `Document`
1553
- */
1554
- queryCommandSupported(commandId: string): boolean;
1555
- /**
1556
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1557
- *
1558
- * @deprecated
1559
- * @unsupported
1560
- * @implements DOM API: `Document`
1561
- */
1562
- queryCommandValue(commandId: string): string;
1563
- /**
1564
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1565
- *
1566
- * @deprecated
1567
- * @unsupported
1568
- * @implements DOM API: `Document`
1569
- */
1570
- releaseEvents(): void;
1571
- /**
1572
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1573
- *
1574
- * @unsupported
1575
- * @implements DOM API: `Document`
1576
- */
1577
- requestStorageAccess(): Promise<void>;
1578
- /**
1579
- * @implements `@markuplint/ml-core` API: `MLDocument`
1580
- */
1581
- searchNodeByLocation(
1582
- line: number,
1583
- col: number,
1584
- ): MLNode<T, O, import('@markuplint/ml-ast').MLASTAbstractNode> | null;
1585
- /**
1586
- * @implements `@markuplint/ml-core` API: `MLDocument`
1587
- */
1588
- setRule(rule: Readonly<MLRule<T, O>> | null): void;
1589
- /**
1590
- * @implements `@markuplint/ml-core` API: `MLDocument`
1591
- */
1592
- toString(): string;
1593
- /**
1594
- * @implements `@markuplint/ml-core` API: `MLDocument`
1595
- */
1596
- walkOn(type: 'Element', walker: Walker<T, O, MLElement<T, O>>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1597
- walkOn(type: 'Text', walker: Walker<T, O, MLText<T, O>>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1598
- walkOn(type: 'Comment', walker: Walker<T, O, MLComment<T, O>>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1599
- walkOn(type: 'Attr', walker: Walker<T, O, MLAttr<T, O>>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1600
- walkOn(type: 'ElementCloseTag', walker: Walker<T, O, MLToken>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1601
- /**
1602
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1603
- *
1604
- * @unsupported
1605
- * @implements DOM API: `Document`
1606
- */
1607
- write(...text: readonly string[]): void;
1608
- /**
1609
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1610
- *
1611
- * @unsupported
1612
- * @implements DOM API: `Document`
1613
- */
1614
- writeln(...text: readonly string[]): void;
1615
- private _pretending;
1616
- 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): Node;
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;
1617
1600
  }