@markuplint/ml-core 2.3.3 → 3.0.0-alpha.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 (113) hide show
  1. package/lib/configs.d.ts +1 -1
  2. package/lib/configs.js +29 -9
  3. package/lib/index.d.ts +8 -8
  4. package/lib/index.js +18 -10
  5. package/lib/ml-core.d.ts +3 -3
  6. package/lib/ml-core.js +48 -44
  7. package/lib/ml-dom/helper/accname.d.ts +3 -2
  8. package/lib/ml-dom/helper/accname.js +53 -5
  9. package/lib/ml-dom/helper/create-node.d.ts +4 -5
  10. package/lib/ml-dom/helper/create-node.js +12 -16
  11. package/lib/ml-dom/helper/debug.d.ts +2 -2
  12. package/lib/ml-dom/helper/debug.js +35 -21
  13. package/lib/ml-dom/helper/getIndent.d.ts +5 -5
  14. package/lib/ml-dom/helper/getIndent.js +14 -14
  15. package/lib/ml-dom/helper/walkers.d.ts +5 -4
  16. package/lib/ml-dom/helper/walkers.js +39 -3
  17. package/lib/ml-dom/index.d.ts +8 -3
  18. package/lib/ml-dom/index.js +3 -15
  19. package/lib/ml-dom/manipulations/child-node-methods.d.ts +33 -0
  20. package/lib/ml-dom/manipulations/child-node-methods.js +73 -0
  21. package/lib/ml-dom/manipulations/get-children.d.ts +4 -0
  22. package/lib/ml-dom/manipulations/get-children.js +10 -0
  23. package/lib/ml-dom/node/attr.d.ts +98 -0
  24. package/lib/ml-dom/node/attr.js +157 -0
  25. package/lib/ml-dom/node/block.d.ts +38 -0
  26. package/lib/ml-dom/node/block.js +53 -0
  27. package/lib/ml-dom/node/character-data.d.ts +57 -0
  28. package/lib/ml-dom/node/character-data.js +87 -0
  29. package/lib/ml-dom/node/child-node.d.ts +9 -0
  30. package/lib/ml-dom/node/child-node.js +10 -0
  31. package/lib/ml-dom/node/comment.d.ts +17 -0
  32. package/lib/ml-dom/node/comment.js +24 -0
  33. package/lib/ml-dom/node/document-fragment.d.ts +24 -0
  34. package/lib/ml-dom/node/document-fragment.js +33 -0
  35. package/lib/ml-dom/node/document-type.d.ts +38 -0
  36. package/lib/ml-dom/node/document-type.js +52 -0
  37. package/lib/ml-dom/node/document.d.ts +1563 -0
  38. package/lib/ml-dom/node/document.js +2140 -0
  39. package/lib/ml-dom/node/dom-token-list.d.ts +33 -0
  40. package/lib/ml-dom/node/dom-token-list.js +137 -0
  41. package/lib/ml-dom/node/element.d.ts +1844 -0
  42. package/lib/ml-dom/node/element.js +2601 -0
  43. package/lib/ml-dom/node/named-node-map.d.ts +42 -0
  44. package/lib/ml-dom/node/named-node-map.js +64 -0
  45. package/lib/ml-dom/node/node-list.d.ts +6 -0
  46. package/lib/ml-dom/node/node-list.js +39 -0
  47. package/lib/ml-dom/node/node-store.d.ts +14 -0
  48. package/lib/ml-dom/{helper → node}/node-store.js +8 -4
  49. package/lib/ml-dom/node/node.d.ts +482 -0
  50. package/lib/ml-dom/node/node.js +675 -0
  51. package/lib/ml-dom/node/parent-node.d.ts +66 -0
  52. package/lib/ml-dom/node/parent-node.js +131 -0
  53. package/lib/ml-dom/node/rule-mapper.d.ts +17 -0
  54. package/lib/ml-dom/{rule-mapper.js → node/rule-mapper.js} +20 -28
  55. package/lib/ml-dom/node/text.d.ts +51 -0
  56. package/lib/ml-dom/node/text.js +76 -0
  57. package/lib/ml-dom/node/types.d.ts +35 -0
  58. package/lib/ml-dom/{types.js → node/types.js} +0 -0
  59. package/lib/ml-dom/node/unexpected-call-error.d.ts +2 -0
  60. package/lib/ml-dom/node/unexpected-call-error.js +5 -0
  61. package/lib/ml-dom/token/token.d.ts +47 -0
  62. package/lib/ml-dom/token/token.js +89 -0
  63. package/lib/ml-rule/ml-rule-context.d.ts +14 -10
  64. package/lib/ml-rule/ml-rule-context.js +29 -6
  65. package/lib/ml-rule/ml-rule.d.ts +12 -12
  66. package/lib/ml-rule/ml-rule.js +63 -63
  67. package/lib/ml-rule/types.d.ts +12 -2
  68. package/lib/ruleset/index.d.ts +2 -2
  69. package/lib/test/index.d.ts +3 -1
  70. package/lib/test/index.js +12 -5
  71. package/lib/types.d.ts +3 -2
  72. package/package.json +11 -10
  73. package/tsconfig.tsbuildinfo +1 -1
  74. package/lib/ml-dom/document.d.ts +0 -85
  75. package/lib/ml-dom/document.js +0 -273
  76. package/lib/ml-dom/helper/index.d.ts +0 -4
  77. package/lib/ml-dom/helper/index.js +0 -12
  78. package/lib/ml-dom/helper/mapped-nodes.d.ts +0 -4
  79. package/lib/ml-dom/helper/mapped-nodes.js +0 -2
  80. package/lib/ml-dom/helper/match-selector.d.ts +0 -16
  81. package/lib/ml-dom/helper/match-selector.js +0 -233
  82. package/lib/ml-dom/helper/node-store.d.ts +0 -9
  83. package/lib/ml-dom/helper/selector.d.ts +0 -11
  84. package/lib/ml-dom/helper/selector.js +0 -549
  85. package/lib/ml-dom/rule-mapper.d.ts +0 -16
  86. package/lib/ml-dom/tokens/abstract-element.d.ts +0 -49
  87. package/lib/ml-dom/tokens/abstract-element.js +0 -249
  88. package/lib/ml-dom/tokens/attribute.d.ts +0 -42
  89. package/lib/ml-dom/tokens/attribute.js +0 -85
  90. package/lib/ml-dom/tokens/comment.d.ts +0 -9
  91. package/lib/ml-dom/tokens/comment.js +0 -15
  92. package/lib/ml-dom/tokens/doctype.d.ts +0 -15
  93. package/lib/ml-dom/tokens/doctype.js +0 -32
  94. package/lib/ml-dom/tokens/element-close-tag.d.ts +0 -24
  95. package/lib/ml-dom/tokens/element-close-tag.js +0 -45
  96. package/lib/ml-dom/tokens/element.d.ts +0 -23
  97. package/lib/ml-dom/tokens/element.js +0 -66
  98. package/lib/ml-dom/tokens/index.d.ts +0 -10
  99. package/lib/ml-dom/tokens/index.js +0 -26
  100. package/lib/ml-dom/tokens/node.d.ts +0 -39
  101. package/lib/ml-dom/tokens/node.js +0 -126
  102. package/lib/ml-dom/tokens/omitted-element.d.ts +0 -10
  103. package/lib/ml-dom/tokens/omitted-element.js +0 -12
  104. package/lib/ml-dom/tokens/preprocessor-specific-attribute.d.ts +0 -24
  105. package/lib/ml-dom/tokens/preprocessor-specific-attribute.js +0 -37
  106. package/lib/ml-dom/tokens/preprocessor-specific-block.d.ts +0 -11
  107. package/lib/ml-dom/tokens/preprocessor-specific-block.js +0 -16
  108. package/lib/ml-dom/tokens/text.d.ts +0 -15
  109. package/lib/ml-dom/tokens/text.js +0 -26
  110. package/lib/ml-dom/tokens/token.d.ts +0 -16
  111. package/lib/ml-dom/tokens/token.js +0 -55
  112. package/lib/ml-dom/types.d.ts +0 -27
  113. package/markuplint-recommended.json +0 -196
@@ -0,0 +1,1563 @@
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 { Pretender, RuleConfigValue } from '@markuplint/ml-config';
14
+ import type { ExtendedSpec, MLMLSpec } from '@markuplint/ml-spec';
15
+ import { MLParentNode } from './parent-node';
16
+ export declare class MLDocument<T extends RuleConfigValue, O = null> extends MLParentNode<T, O> implements Document {
17
+ #private;
18
+ /**
19
+ *
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
+ *
44
+ * @param ast node list of markuplint AST
45
+ * @param ruleset ruleset object
46
+ */
47
+ constructor(ast: MLASTDocument, ruleset: Ruleset, schemas: readonly [MLMLSpec, ...ExtendedSpec[]], options?: {
48
+ filename?: string;
49
+ endTag?: 'xml' | 'omittable' | 'never';
50
+ pretenders?: Pretender[];
51
+ });
52
+ /**
53
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
54
+ *
55
+ * @unsupported
56
+ * @implements DOM API: `Document`
57
+ */
58
+ get URL(): string;
59
+ /**
60
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
61
+ *
62
+ * @unsupported
63
+ * @implements DOM API: `Document`
64
+ */
65
+ get activeElement(): Element | null;
66
+ /**
67
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
68
+ *
69
+ * @unsupported
70
+ * @implements DOM API: `Document`
71
+ */
72
+ get adoptedStyleSheets(): CSSStyleSheet[];
73
+ /**
74
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
75
+ *
76
+ * @deprecated
77
+ * @unsupported
78
+ * @implements DOM API: `Document`
79
+ */
80
+ get alinkColor(): string;
81
+ /**
82
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
83
+ *
84
+ * @deprecated
85
+ * @unsupported
86
+ * @implements DOM API: `Document`
87
+ */
88
+ get all(): HTMLAllCollection;
89
+ /**
90
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
91
+ *
92
+ * @deprecated
93
+ * @unsupported
94
+ * @implements DOM API: `Document`
95
+ */
96
+ get anchors(): HTMLCollectionOf<HTMLAnchorElement>;
97
+ /**
98
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
99
+ *
100
+ * @deprecated
101
+ * @unsupported
102
+ * @implements DOM API: `Document`
103
+ */
104
+ get applets(): HTMLCollection;
105
+ /**
106
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
107
+ *
108
+ * @deprecated
109
+ * @unsupported
110
+ * @implements DOM API: `Document`
111
+ */
112
+ get bgColor(): string;
113
+ /**
114
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
115
+ *
116
+ * @unsupported
117
+ * @implements DOM API: `Document`
118
+ */
119
+ get body(): HTMLElement;
120
+ /**
121
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
122
+ *
123
+ * @unsupported
124
+ * @implements DOM API: `Document`
125
+ */
126
+ get characterSet(): string;
127
+ /**
128
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
129
+ *
130
+ * @deprecated
131
+ * @unsupported
132
+ * @implements DOM API: `Document`
133
+ */
134
+ get charset(): string;
135
+ /**
136
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
137
+ *
138
+ * @unsupported
139
+ * @implements DOM API: `Document`
140
+ */
141
+ get compatMode(): string;
142
+ /**
143
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
144
+ *
145
+ * @unsupported
146
+ * @implements DOM API: `Document`
147
+ */
148
+ get contentType(): string;
149
+ /**
150
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
151
+ *
152
+ * @unsupported
153
+ * @implements DOM API: `Document`
154
+ */
155
+ get cookie(): string;
156
+ /**
157
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
158
+ *
159
+ * @unsupported
160
+ * @implements DOM API: `Document`
161
+ */
162
+ get currentScript(): HTMLOrSVGScriptElement | null;
163
+ /**
164
+ * Window object for calling the `getComputedStyle` and the `getPropertyValue` that
165
+ * are needed by **Accessible Name and Description Computation**.
166
+ * But it always returns the empty object.
167
+ * (It may improve to possible to compute the name from the `style` attribute in the future.)
168
+ *
169
+ * @implements DOM API: `Document`
170
+ */
171
+ get defaultView(): any;
172
+ /**
173
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
174
+ *
175
+ * @unsupported
176
+ * @implements DOM API: `Document`
177
+ */
178
+ get designMode(): string;
179
+ /**
180
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
181
+ *
182
+ * @unsupported
183
+ * @implements DOM API: `Document`
184
+ */
185
+ get dir(): string;
186
+ /**
187
+ * @implements DOM API: `Document`
188
+ */
189
+ get doctype(): MLDocumentType<T, O> | null;
190
+ /**
191
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
192
+ *
193
+ * @unsupported
194
+ * @implements DOM API: `Document`
195
+ */
196
+ get documentElement(): HTMLElement;
197
+ /**
198
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
199
+ *
200
+ * @unsupported
201
+ * @implements DOM API: `Document`
202
+ */
203
+ get documentURI(): string;
204
+ /**
205
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
206
+ *
207
+ * @unsupported
208
+ * @implements DOM API: `Document`
209
+ */
210
+ get domain(): string;
211
+ /**
212
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
213
+ *
214
+ * @unsupported
215
+ * @implements DOM API: `Document`
216
+ */
217
+ get embeds(): HTMLCollectionOf<HTMLEmbedElement>;
218
+ /**
219
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
220
+ *
221
+ * @deprecated
222
+ * @unsupported
223
+ * @implements DOM API: `Document`
224
+ */
225
+ get fgColor(): string;
226
+ /**
227
+ * It could be used in rule, make sure it is immutable
228
+ *
229
+ * @implements `@markuplint/ml-core` API: `MLDOMDocument`
230
+ */
231
+ get filename(): string | undefined;
232
+ /**
233
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
234
+ *
235
+ * @unsupported
236
+ * @implements DOM API: `Document`
237
+ */
238
+ get fonts(): FontFaceSet;
239
+ /**
240
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
241
+ *
242
+ * @unsupported
243
+ * @implements DOM API: `Document`
244
+ */
245
+ get forms(): HTMLCollectionOf<HTMLFormElement>;
246
+ /**
247
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
248
+ *
249
+ * @deprecated
250
+ * @unsupported
251
+ * @implements DOM API: `Document`
252
+ */
253
+ get fullscreen(): boolean;
254
+ /**
255
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
256
+ *
257
+ * @unsupported
258
+ * @implements DOM API: `Document`
259
+ */
260
+ get fullscreenElement(): Element | null;
261
+ /**
262
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
263
+ *
264
+ * @unsupported
265
+ * @implements DOM API: `Document`
266
+ */
267
+ get fullscreenEnabled(): boolean;
268
+ /**
269
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
270
+ *
271
+ * @unsupported
272
+ * @implements DOM API: `Document`
273
+ */
274
+ get head(): HTMLHeadElement;
275
+ /**
276
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
277
+ *
278
+ * @unsupported
279
+ * @implements DOM API: `Document`
280
+ */
281
+ get hidden(): boolean;
282
+ /**
283
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
284
+ *
285
+ * @unsupported
286
+ * @implements DOM API: `Document`
287
+ */
288
+ get images(): HTMLCollectionOf<HTMLImageElement>;
289
+ /**
290
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
291
+ *
292
+ * @unsupported
293
+ * @implements DOM API: `Document`
294
+ */
295
+ get implementation(): DOMImplementation;
296
+ /**
297
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
298
+ *
299
+ * @deprecated
300
+ * @unsupported
301
+ * @implements DOM API: `Document`
302
+ */
303
+ get inputEncoding(): string;
304
+ /**
305
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
306
+ *
307
+ * @unsupported
308
+ * @implements DOM API: `Document`
309
+ */
310
+ get lastModified(): string;
311
+ /**
312
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
313
+ *
314
+ * @deprecated
315
+ * @unsupported
316
+ * @implements DOM API: `Document`
317
+ */
318
+ get linkColor(): string;
319
+ /**
320
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
321
+ *
322
+ * @unsupported
323
+ * @implements DOM API: `Document`
324
+ */
325
+ get links(): HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
326
+ /**
327
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
328
+ *
329
+ * @unsupported
330
+ * @implements DOM API: `Document`
331
+ */
332
+ get location(): Location;
333
+ /**
334
+ * Returns a string appropriate for the type of node as `Document`
335
+ *
336
+ * @see https://dom.spec.whatwg.org/#ref-for-document%E2%91%A8
337
+ */
338
+ get nodeName(): "#document";
339
+ /**
340
+ * Returns a number appropriate for the type of `Document`
341
+ */
342
+ get nodeType(): DocumentNodeType;
343
+ /**
344
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
345
+ *
346
+ * @deprecated
347
+ * @unsupported
348
+ * @implements DOM API: `Document`
349
+ */
350
+ get onabort(): ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
351
+ /**
352
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
353
+ *
354
+ * @deprecated
355
+ * @unsupported
356
+ * @implements DOM API: `Document`
357
+ */
358
+ get onanimationcancel(): ((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 onanimationend(): ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
367
+ /**
368
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
369
+ *
370
+ * @deprecated
371
+ * @unsupported
372
+ * @implements DOM API: `Document`
373
+ */
374
+ get onanimationiteration(): ((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 onanimationstart(): ((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 onauxclick(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
391
+ /**
392
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
393
+ *
394
+ * @deprecated
395
+ * @unsupported
396
+ * @implements DOM API: `Document`
397
+ */
398
+ get onblur(): ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
399
+ /**
400
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
401
+ *
402
+ * @deprecated
403
+ * @unsupported
404
+ * @implements DOM API: `Document`
405
+ */
406
+ get oncanplay(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
407
+ /**
408
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
409
+ *
410
+ * @deprecated
411
+ * @unsupported
412
+ * @implements DOM API: `Document`
413
+ */
414
+ get oncanplaythrough(): ((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 onchange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
423
+ /**
424
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
425
+ *
426
+ * @deprecated
427
+ * @unsupported
428
+ * @implements DOM API: `Document`
429
+ */
430
+ get onclick(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
431
+ /**
432
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
433
+ *
434
+ * @deprecated
435
+ * @unsupported
436
+ * @implements DOM API: `Document`
437
+ */
438
+ get onclose(): ((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 oncontextmenu(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
447
+ /**
448
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
449
+ *
450
+ * @deprecated
451
+ * @unsupported
452
+ * @implements DOM API: `Document`
453
+ */
454
+ get oncopy(): ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
455
+ /**
456
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
457
+ *
458
+ * @deprecated
459
+ * @unsupported
460
+ * @implements DOM API: `Document`
461
+ */
462
+ get oncuechange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
463
+ /**
464
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
465
+ *
466
+ * @deprecated
467
+ * @unsupported
468
+ * @implements DOM API: `Document`
469
+ */
470
+ get oncut(): ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
471
+ /**
472
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
473
+ *
474
+ * @deprecated
475
+ * @unsupported
476
+ * @implements DOM API: `Document`
477
+ */
478
+ get ondblclick(): ((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 ondrag(): ((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 ondragend(): ((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 ondragenter(): ((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 ondragleave(): ((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 ondragover(): ((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 ondragstart(): ((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 ondrop(): ((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 ondurationchange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
543
+ /**
544
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
545
+ *
546
+ * @deprecated
547
+ * @unsupported
548
+ * @implements DOM API: `Document`
549
+ */
550
+ get onemptied(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
551
+ /**
552
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
553
+ *
554
+ * @deprecated
555
+ * @unsupported
556
+ * @implements DOM API: `Document`
557
+ */
558
+ get onended(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
559
+ /**
560
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
561
+ *
562
+ * @deprecated
563
+ * @unsupported
564
+ * @implements DOM API: `Document`
565
+ */
566
+ get onerror(): OnErrorEventHandler;
567
+ /**
568
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
569
+ *
570
+ * @deprecated
571
+ * @unsupported
572
+ * @implements DOM API: `Document`
573
+ */
574
+ get onfocus(): ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
575
+ /**
576
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
577
+ *
578
+ * @deprecated
579
+ * @unsupported
580
+ * @implements DOM API: `Document`
581
+ */
582
+ get onformdata(): ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
583
+ /**
584
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
585
+ *
586
+ * @deprecated
587
+ * @unsupported
588
+ * @implements DOM API: `Document`
589
+ */
590
+ get onfullscreenchange(): ((this: Document, 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 onfullscreenerror(): ((this: Document, 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 ongotpointercapture(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
607
+ /**
608
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
609
+ *
610
+ * @deprecated
611
+ * @unsupported
612
+ * @implements DOM API: `Document`
613
+ */
614
+ get oninput(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
615
+ /**
616
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
617
+ *
618
+ * @deprecated
619
+ * @unsupported
620
+ * @implements DOM API: `Document`
621
+ */
622
+ get oninvalid(): ((this: GlobalEventHandlers, 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 onkeydown(): ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
631
+ /**
632
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
633
+ *
634
+ * @deprecated
635
+ * @unsupported
636
+ * @implements DOM API: `Document`
637
+ */
638
+ get onkeypress(): ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
639
+ /**
640
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
641
+ *
642
+ * @deprecated
643
+ * @unsupported
644
+ * @implements DOM API: `Document`
645
+ */
646
+ get onkeyup(): ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
647
+ /**
648
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
649
+ *
650
+ * @deprecated
651
+ * @unsupported
652
+ * @implements DOM API: `Document`
653
+ */
654
+ get onload(): ((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 onloadeddata(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
663
+ /**
664
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
665
+ *
666
+ * @deprecated
667
+ * @unsupported
668
+ * @implements DOM API: `Document`
669
+ */
670
+ get onloadedmetadata(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
671
+ /**
672
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
673
+ *
674
+ * @deprecated
675
+ * @unsupported
676
+ * @implements DOM API: `Document`
677
+ */
678
+ get onloadstart(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
679
+ /**
680
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
681
+ *
682
+ * @deprecated
683
+ * @unsupported
684
+ * @implements DOM API: `Document`
685
+ */
686
+ get onlostpointercapture(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
687
+ /**
688
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
689
+ *
690
+ * @deprecated
691
+ * @unsupported
692
+ * @implements DOM API: `Document`
693
+ */
694
+ get onmousedown(): ((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 onmouseenter(): ((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 onmouseleave(): ((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 onmousemove(): ((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 onmouseout(): ((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 onmouseover(): ((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 onmouseup(): ((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 onpaste(): ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
751
+ /**
752
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
753
+ *
754
+ * @deprecated
755
+ * @unsupported
756
+ * @implements DOM API: `Document`
757
+ */
758
+ get onpause(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
759
+ /**
760
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
761
+ *
762
+ * @deprecated
763
+ * @unsupported
764
+ * @implements DOM API: `Document`
765
+ */
766
+ get onplay(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
767
+ /**
768
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
769
+ *
770
+ * @deprecated
771
+ * @unsupported
772
+ * @implements DOM API: `Document`
773
+ */
774
+ get onplaying(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
775
+ /**
776
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
777
+ *
778
+ * @deprecated
779
+ * @unsupported
780
+ * @implements DOM API: `Document`
781
+ */
782
+ get onpointercancel(): ((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 onpointerdown(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
791
+ /**
792
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
793
+ *
794
+ * @deprecated
795
+ * @unsupported
796
+ * @implements DOM API: `Document`
797
+ */
798
+ get onpointerenter(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
799
+ /**
800
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
801
+ *
802
+ * @deprecated
803
+ * @unsupported
804
+ * @implements DOM API: `Document`
805
+ */
806
+ get onpointerleave(): ((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 onpointerlockchange(): ((this: Document, ev: Event) => any) | null;
815
+ /**
816
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
817
+ *
818
+ * @deprecated
819
+ * @unsupported
820
+ * @implements DOM API: `Document`
821
+ */
822
+ get onpointerlockerror(): ((this: Document, ev: Event) => any) | null;
823
+ /**
824
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
825
+ *
826
+ * @deprecated
827
+ * @unsupported
828
+ * @implements DOM API: `Document`
829
+ */
830
+ get onpointermove(): ((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 onpointerout(): ((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 onpointerover(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
847
+ /**
848
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
849
+ *
850
+ * @deprecated
851
+ * @unsupported
852
+ * @implements DOM API: `Document`
853
+ */
854
+ get onpointerup(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
855
+ /**
856
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
857
+ *
858
+ * @deprecated
859
+ * @unsupported
860
+ * @implements DOM API: `Document`
861
+ */
862
+ get onprogress(): ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
863
+ /**
864
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
865
+ *
866
+ * @deprecated
867
+ * @unsupported
868
+ * @implements DOM API: `Document`
869
+ */
870
+ get onratechange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
871
+ /**
872
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
873
+ *
874
+ * @deprecated
875
+ * @unsupported
876
+ * @implements DOM API: `Document`
877
+ */
878
+ get onreadystatechange(): ((this: Document, 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 onreset(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
887
+ /**
888
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
889
+ *
890
+ * @deprecated
891
+ * @unsupported
892
+ * @implements DOM API: `Document`
893
+ */
894
+ get onresize(): ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
895
+ /**
896
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
897
+ *
898
+ * @deprecated
899
+ * @unsupported
900
+ * @implements DOM API: `Document`
901
+ */
902
+ get onscroll(): ((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 onsecuritypolicyviolation(): ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
911
+ /**
912
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
913
+ *
914
+ * @deprecated
915
+ * @unsupported
916
+ * @implements DOM API: `Document`
917
+ */
918
+ get onseeked(): ((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 onseeking(): ((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 onselect(): ((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 onselectionchange(): ((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 onselectstart(): ((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 onslotchange(): ((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 onstalled(): ((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 onsubmit(): ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
975
+ /**
976
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
977
+ *
978
+ * @deprecated
979
+ * @unsupported
980
+ * @implements DOM API: `Document`
981
+ */
982
+ get onsuspend(): ((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 ontimeupdate(): ((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 ontoggle(): ((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 ontransitioncancel(): ((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 ontransitionend(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1015
+ /**
1016
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1017
+ *
1018
+ * @deprecated
1019
+ * @unsupported
1020
+ * @implements DOM API: `Document`
1021
+ */
1022
+ get ontransitionrun(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1023
+ /**
1024
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1025
+ *
1026
+ * @deprecated
1027
+ * @unsupported
1028
+ * @implements DOM API: `Document`
1029
+ */
1030
+ get ontransitionstart(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1031
+ /**
1032
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1033
+ *
1034
+ * @deprecated
1035
+ * @unsupported
1036
+ * @implements DOM API: `Document`
1037
+ */
1038
+ get onvisibilitychange(): ((this: Document, 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 onvolumechange(): ((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 onwaiting(): ((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 onwebkitanimationend(): ((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 onwebkitanimationiteration(): ((this: GlobalEventHandlers, 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 onwebkitanimationstart(): ((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 onwebkittransitionend(): ((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 onwheel(): ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1095
+ get ownerDocument(): null;
1096
+ get ownerMLDocument(): MLDocument<T, O>;
1097
+ /**
1098
+ * @implements DOM API: `Document`
1099
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-node-parentnode%E2%91%A0
1100
+ */
1101
+ get parentNode(): null;
1102
+ /**
1103
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1104
+ *
1105
+ * @unsupported
1106
+ * @implements DOM API: `Document`
1107
+ */
1108
+ get pictureInPictureElement(): Element | null;
1109
+ /**
1110
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1111
+ *
1112
+ * @unsupported
1113
+ * @implements DOM API: `Document`
1114
+ */
1115
+ get pictureInPictureEnabled(): boolean;
1116
+ /**
1117
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1118
+ *
1119
+ * @unsupported
1120
+ * @implements DOM API: `Document`
1121
+ */
1122
+ get plugins(): HTMLCollectionOf<HTMLEmbedElement>;
1123
+ /**
1124
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1125
+ *
1126
+ * @unsupported
1127
+ * @implements DOM API: `Document`
1128
+ */
1129
+ get pointerLockElement(): Element | null;
1130
+ /**
1131
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1132
+ *
1133
+ * @unsupported
1134
+ * @implements DOM API: `Document`
1135
+ */
1136
+ get readyState(): DocumentReadyState;
1137
+ /**
1138
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1139
+ *
1140
+ * @unsupported
1141
+ * @implements DOM API: `Document`
1142
+ */
1143
+ get referrer(): string;
1144
+ /**
1145
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1146
+ *
1147
+ * @deprecated
1148
+ * @unsupported
1149
+ * @implements DOM API: `Document`
1150
+ */
1151
+ get rootElement(): SVGSVGElement | null;
1152
+ /**
1153
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1154
+ *
1155
+ * @unsupported
1156
+ * @implements DOM API: `Document`
1157
+ */
1158
+ get scripts(): HTMLCollectionOf<HTMLScriptElement>;
1159
+ /**
1160
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1161
+ *
1162
+ * @unsupported
1163
+ * @implements DOM API: `Document`
1164
+ */
1165
+ get scrollingElement(): Element | null;
1166
+ /**
1167
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1168
+ *
1169
+ * @unsupported
1170
+ * @implements DOM API: `Document`
1171
+ */
1172
+ get styleSheets(): StyleSheetList;
1173
+ /**
1174
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1175
+ *
1176
+ * @unsupported
1177
+ * @implements DOM API: `Document`
1178
+ */
1179
+ get timeline(): DocumentTimeline;
1180
+ /**
1181
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1182
+ *
1183
+ * @unsupported
1184
+ * @implements DOM API: `Document`
1185
+ */
1186
+ get title(): string;
1187
+ /**
1188
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1189
+ *
1190
+ * @unsupported
1191
+ * @implements DOM API: `Document`
1192
+ */
1193
+ get visibilityState(): DocumentVisibilityState;
1194
+ /**
1195
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1196
+ *
1197
+ * @deprecated
1198
+ * @unsupported
1199
+ * @implements DOM API: `Document`
1200
+ */
1201
+ get vlinkColor(): string;
1202
+ /**
1203
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1204
+ *
1205
+ * @unsupported
1206
+ * @implements DOM API: `Document`
1207
+ */
1208
+ adoptNode<T extends Node>(node: T): T;
1209
+ /**
1210
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1211
+ *
1212
+ * @deprecated
1213
+ * @unsupported
1214
+ * @implements DOM API: `Document`
1215
+ */
1216
+ captureEvents(): void;
1217
+ /**
1218
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1219
+ *
1220
+ * @unsupported
1221
+ * @implements DOM API: `Document`
1222
+ */
1223
+ caretRangeFromPoint(x: number, y: number): Range | null;
1224
+ /**
1225
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1226
+ *
1227
+ * @deprecated
1228
+ * @unsupported
1229
+ * @implements DOM API: `Document`
1230
+ */
1231
+ clear(): void;
1232
+ /**
1233
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1234
+ *
1235
+ * @unsupported
1236
+ * @implements DOM API: `Document`
1237
+ */
1238
+ close(): void;
1239
+ /**
1240
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1241
+ *
1242
+ * @unsupported
1243
+ * @implements DOM API: `Document`
1244
+ */
1245
+ createAttribute(localName: string): Attr;
1246
+ /**
1247
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1248
+ *
1249
+ * @unsupported
1250
+ * @implements DOM API: `Document`
1251
+ */
1252
+ createAttributeNS(namespace: string | null, qualifiedName: string): Attr;
1253
+ /**
1254
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1255
+ *
1256
+ * @unsupported
1257
+ * @implements DOM API: `Document`
1258
+ */
1259
+ createCDATASection(data: string): CDATASection;
1260
+ /**
1261
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1262
+ *
1263
+ * @unsupported
1264
+ * @implements DOM API: `Document`
1265
+ */
1266
+ createComment(data: string): Comment;
1267
+ /**
1268
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1269
+ *
1270
+ * @unsupported
1271
+ * @implements DOM API: `Document`
1272
+ */
1273
+ createDocumentFragment(): DocumentFragment;
1274
+ /**
1275
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1276
+ *
1277
+ * @unsupported
1278
+ * @implements DOM API: `Document`
1279
+ */
1280
+ createElement(tagName: any, options?: any): any;
1281
+ /**
1282
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1283
+ *
1284
+ * @unsupported
1285
+ * @implements DOM API: `Document`
1286
+ */
1287
+ createElementNS(namespace: any, qualifiedName: any, options?: any): any;
1288
+ /**
1289
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1290
+ *
1291
+ * @unsupported
1292
+ * @implements DOM API: `Document`
1293
+ */
1294
+ createEvent(eventInterface: any): any;
1295
+ /**
1296
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1297
+ *
1298
+ * @unsupported
1299
+ * @implements DOM API: `Document`
1300
+ */
1301
+ createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;
1302
+ /**
1303
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1304
+ *
1305
+ * @unsupported
1306
+ * @implements DOM API: `Document`
1307
+ */
1308
+ createNSResolver(nodeResolver: Node): XPathNSResolver;
1309
+ /**
1310
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1311
+ *
1312
+ * @unsupported
1313
+ * @implements DOM API: `Document`
1314
+ */
1315
+ createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;
1316
+ /**
1317
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1318
+ *
1319
+ * @unsupported
1320
+ * @implements DOM API: `Document`
1321
+ */
1322
+ createProcessingInstruction(target: string, data: string): ProcessingInstruction;
1323
+ /**
1324
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1325
+ *
1326
+ * @unsupported
1327
+ * @implements DOM API: `Document`
1328
+ */
1329
+ createRange(): Range;
1330
+ /**
1331
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1332
+ *
1333
+ * @unsupported
1334
+ * @implements DOM API: `Document`
1335
+ */
1336
+ createTextNode(data: string): Text;
1337
+ /**
1338
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1339
+ *
1340
+ * @unsupported
1341
+ * @implements DOM API: `Document`
1342
+ */
1343
+ createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
1344
+ /**
1345
+ * @implements `@markuplint/ml-core` API: `MLDocument`
1346
+ */
1347
+ debugMap(): string[];
1348
+ /**
1349
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1350
+ *
1351
+ * @unsupported
1352
+ * @implements DOM API: `Document`
1353
+ */
1354
+ elementFromPoint(x: number, y: number): Element | null;
1355
+ /**
1356
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1357
+ *
1358
+ * @unsupported
1359
+ * @implements DOM API: `Document`
1360
+ */
1361
+ elementsFromPoint(x: number, y: number): Element[];
1362
+ /**
1363
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1364
+ *
1365
+ * @unsupported
1366
+ * @implements DOM API: `Document`
1367
+ */
1368
+ evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;
1369
+ /**
1370
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1371
+ *
1372
+ * @deprecated
1373
+ * @unsupported
1374
+ * @implements DOM API: `Document`
1375
+ */
1376
+ execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
1377
+ /**
1378
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1379
+ *
1380
+ * @unsupported
1381
+ * @implements DOM API: `Document`
1382
+ */
1383
+ exitFullscreen(): Promise<void>;
1384
+ /**
1385
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1386
+ *
1387
+ * @unsupported
1388
+ * @implements DOM API: `Document`
1389
+ */
1390
+ exitPictureInPicture(): Promise<void>;
1391
+ /**
1392
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1393
+ *
1394
+ * @unsupported
1395
+ * @implements DOM API: `Document`
1396
+ */
1397
+ exitPointerLock(): void;
1398
+ /**
1399
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1400
+ *
1401
+ * @unsupported
1402
+ * @implements DOM API: `Document`
1403
+ */
1404
+ getAnimations(): Animation[];
1405
+ /**
1406
+ * @implements DOM API: `Document`
1407
+ */
1408
+ getElementById(elementId: string): MLElement<T, O> | null;
1409
+ /**
1410
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1411
+ *
1412
+ * @unsupported
1413
+ * @implements DOM API: `Document`
1414
+ */
1415
+ getElementsByClassName(classNames: string): HTMLCollectionOf<MLElement<T, O>>;
1416
+ /**
1417
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1418
+ *
1419
+ * @unsupported
1420
+ * @implements DOM API: `Document`
1421
+ */
1422
+ getElementsByName(elementName: string): NodeListOf<HTMLElement>;
1423
+ /**
1424
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1425
+ *
1426
+ * @unsupported
1427
+ * @implements DOM API: `Document`
1428
+ */
1429
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<MLElement<T, O>>;
1430
+ /**
1431
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1432
+ *
1433
+ * @unsupported
1434
+ * @implements DOM API: `Document`
1435
+ */
1436
+ getElementsByTagNameNS(namespace: any, localName: any): any;
1437
+ /**
1438
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1439
+ *
1440
+ * @unsupported
1441
+ * @implements DOM API: `Document`
1442
+ */
1443
+ getSelection(): Selection | null;
1444
+ /**
1445
+ * @implements `@markuplint/ml-core` API: `MLDocument`
1446
+ */
1447
+ getTokenList(): readonly MLToken<import("@markuplint/ml-ast").MLToken>[];
1448
+ /**
1449
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1450
+ *
1451
+ * @unsupported
1452
+ * @implements DOM API: `Document`
1453
+ */
1454
+ hasFocus(): boolean;
1455
+ /**
1456
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1457
+ *
1458
+ * @unsupported
1459
+ * @implements DOM API: `Document`
1460
+ */
1461
+ hasStorageAccess(): Promise<boolean>;
1462
+ /**
1463
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1464
+ *
1465
+ * @unsupported
1466
+ * @implements DOM API: `Document`
1467
+ */
1468
+ importNode<T extends Node>(node: T, deep?: boolean): T;
1469
+ /**
1470
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1471
+ *
1472
+ * @unsupported
1473
+ * @implements DOM API: `Document`
1474
+ */
1475
+ open(url?: any, name?: any, features?: any): any;
1476
+ /**
1477
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1478
+ *
1479
+ * @deprecated
1480
+ * @unsupported
1481
+ * @implements DOM API: `Document`
1482
+ */
1483
+ queryCommandEnabled(commandId: string): boolean;
1484
+ /**
1485
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1486
+ *
1487
+ * @deprecated
1488
+ * @unsupported
1489
+ * @implements DOM API: `Document`
1490
+ */
1491
+ queryCommandIndeterm(commandId: string): boolean;
1492
+ /**
1493
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1494
+ *
1495
+ * @deprecated
1496
+ * @unsupported
1497
+ * @implements DOM API: `Document`
1498
+ */
1499
+ queryCommandState(commandId: string): boolean;
1500
+ /**
1501
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1502
+ *
1503
+ * @deprecated
1504
+ * @unsupported
1505
+ * @implements DOM API: `Document`
1506
+ */
1507
+ queryCommandSupported(commandId: string): boolean;
1508
+ /**
1509
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1510
+ *
1511
+ * @deprecated
1512
+ * @unsupported
1513
+ * @implements DOM API: `Document`
1514
+ */
1515
+ queryCommandValue(commandId: string): string;
1516
+ /**
1517
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1518
+ *
1519
+ * @deprecated
1520
+ * @unsupported
1521
+ * @implements DOM API: `Document`
1522
+ */
1523
+ releaseEvents(): void;
1524
+ /**
1525
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1526
+ *
1527
+ * @unsupported
1528
+ * @implements DOM API: `Document`
1529
+ */
1530
+ requestStorageAccess(): Promise<void>;
1531
+ /**
1532
+ * @implements `@markuplint/ml-core` API: `MLDocument`
1533
+ */
1534
+ setRule(rule: MLRule<T, O> | null): void;
1535
+ /**
1536
+ * @implements `@markuplint/ml-core` API: `MLDocument`
1537
+ */
1538
+ toString(): string;
1539
+ /**
1540
+ * @implements `@markuplint/ml-core` API: `MLDocument`
1541
+ */
1542
+ walkOn(type: 'Element', walker: Walker<T, O, MLElement<T, O>>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1543
+ walkOn(type: 'Text', walker: Walker<T, O, MLText<T, O>>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1544
+ walkOn(type: 'Comment', walker: Walker<T, O, MLComment<T, O>>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1545
+ walkOn(type: 'Attr', walker: Walker<T, O, MLAttr<T, O>>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1546
+ walkOn(type: 'ElementCloseTag', walker: Walker<T, O, MLToken>, skipWhenRuleIsDisabled?: boolean): Promise<void>;
1547
+ /**
1548
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1549
+ *
1550
+ * @unsupported
1551
+ * @implements DOM API: `Document`
1552
+ */
1553
+ write(...text: string[]): void;
1554
+ /**
1555
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1556
+ *
1557
+ * @unsupported
1558
+ * @implements DOM API: `Document`
1559
+ */
1560
+ writeln(...text: string[]): void;
1561
+ private _pretending;
1562
+ private _ruleMapping;
1563
+ }