@markuplint/ml-core 2.2.2 → 2.3.1

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