@markuplint/ml-core 3.0.0-canary.5 → 3.0.0-dev.176

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