@markuplint/ml-core 2.3.4 → 2.3.5

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 (47) hide show
  1. package/lib/ml-core.d.ts +1 -1
  2. package/lib/ml-dom/manipulations/child-node-methods.d.ts +33 -0
  3. package/lib/ml-dom/manipulations/child-node-methods.js +73 -0
  4. package/lib/ml-dom/manipulations/get-children.d.ts +4 -0
  5. package/lib/ml-dom/manipulations/get-children.js +10 -0
  6. package/lib/ml-dom/node/attr.d.ts +98 -0
  7. package/lib/ml-dom/node/attr.js +157 -0
  8. package/lib/ml-dom/node/block.d.ts +38 -0
  9. package/lib/ml-dom/node/block.js +53 -0
  10. package/lib/ml-dom/node/character-data.d.ts +57 -0
  11. package/lib/ml-dom/node/character-data.js +87 -0
  12. package/lib/ml-dom/node/child-node.d.ts +9 -0
  13. package/lib/ml-dom/node/child-node.js +10 -0
  14. package/lib/ml-dom/node/comment.d.ts +17 -0
  15. package/lib/ml-dom/node/comment.js +24 -0
  16. package/lib/ml-dom/node/document-fragment.d.ts +24 -0
  17. package/lib/ml-dom/node/document-fragment.js +33 -0
  18. package/lib/ml-dom/node/document-type.d.ts +38 -0
  19. package/lib/ml-dom/node/document-type.js +52 -0
  20. package/lib/ml-dom/node/document.d.ts +1599 -0
  21. package/lib/ml-dom/node/document.js +2172 -0
  22. package/lib/ml-dom/node/dom-token-list.d.ts +33 -0
  23. package/lib/ml-dom/node/dom-token-list.js +137 -0
  24. package/lib/ml-dom/node/element.d.ts +1900 -0
  25. package/lib/ml-dom/node/element.js +2683 -0
  26. package/lib/ml-dom/node/named-node-map.d.ts +42 -0
  27. package/lib/ml-dom/node/named-node-map.js +64 -0
  28. package/lib/ml-dom/node/node-list.d.ts +6 -0
  29. package/lib/ml-dom/node/node-list.js +39 -0
  30. package/lib/ml-dom/node/node-store.d.ts +14 -0
  31. package/lib/ml-dom/node/node-store.js +32 -0
  32. package/lib/ml-dom/node/node.d.ts +482 -0
  33. package/lib/ml-dom/node/node.js +675 -0
  34. package/lib/ml-dom/node/parent-node.d.ts +66 -0
  35. package/lib/ml-dom/node/parent-node.js +131 -0
  36. package/lib/ml-dom/node/rule-mapper.d.ts +17 -0
  37. package/lib/ml-dom/node/rule-mapper.js +49 -0
  38. package/lib/ml-dom/node/text.d.ts +51 -0
  39. package/lib/ml-dom/node/text.js +76 -0
  40. package/lib/ml-dom/node/types.d.ts +35 -0
  41. package/lib/ml-dom/node/types.js +2 -0
  42. package/lib/ml-dom/node/unexpected-call-error.d.ts +2 -0
  43. package/lib/ml-dom/node/unexpected-call-error.js +5 -0
  44. package/lib/ml-dom/token/token.d.ts +47 -0
  45. package/lib/ml-dom/token/token.js +89 -0
  46. package/package.json +4 -4
  47. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,1599 @@
1
+ import type { MLRule } from '../../ml-rule';
2
+ import type Ruleset from '../../ruleset';
3
+ import type { Walker } from '../helper/walkers';
4
+ import type { MLToken } from '../token/token';
5
+ import type { MLAttr } from './attr';
6
+ import type { MLComment } from './comment';
7
+ import type { MLDocumentType } from './document-type';
8
+ import type { MLElement } from './element';
9
+ import type { MLNode } from './node';
10
+ import type { MLText } from './text';
11
+ import type { DocumentNodeType } from './types';
12
+ import type { EndTagType, MLASTDocument } from '@markuplint/ml-ast';
13
+ import type { Pretender, RuleConfigValue } from '@markuplint/ml-config';
14
+ import type { ExtendedSpec, MLMLSpec } from '@markuplint/ml-spec';
15
+ import { MLParentNode } from './parent-node';
16
+ export declare class MLDocument<T extends RuleConfigValue, O = null> extends MLParentNode<T, O> implements Document {
17
+ #private;
18
+ /**
19
+ * Detect value as a true if its attribute is booleanish value and omitted.
20
+ *
21
+ * Ex:
22
+ * ```jsx
23
+ * <Component aria-hidden />
24
+ * ```
25
+ *
26
+ * In the above, the `aria-hidden` is `true`.
27
+ *
28
+ * @default false
29
+ */
30
+ readonly booleanish: boolean;
31
+ /**
32
+ *
33
+ */
34
+ currentRule: MLRule<T, O> | null;
35
+ /**
36
+ * This is defined by the parser.
37
+ *
38
+ * @default "omittable"
39
+ */
40
+ readonly endTag: EndTagType;
41
+ /**
42
+ *
43
+ */
44
+ readonly isFragment: boolean;
45
+ /**
46
+ * An array of markuplint DOM nodes
47
+ */
48
+ readonly nodeList: ReadonlyArray<MLNode<T, O>>;
49
+ readonly ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
50
+ readonly ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
51
+ readonly ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
52
+ readonly ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
53
+ /**
54
+ *
55
+ */
56
+ readonly specs: Readonly<MLMLSpec>;
57
+ /**
58
+ *
59
+ * @param ast node list of markuplint AST
60
+ * @param ruleset ruleset object
61
+ */
62
+ constructor(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;
1599
+ }