@markuplint/ml-core 3.2.0 → 3.3.1

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