@markuplint/ml-core 3.15.0 → 4.0.0-alpha.10

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 (105) hide show
  1. package/LICENSE +1 -1
  2. package/lib/configs.browser.js +11 -11
  3. package/lib/convert-ruleset.d.ts +1 -1
  4. package/lib/convert-ruleset.js +3 -8
  5. package/lib/debug.js +9 -14
  6. package/lib/index.d.ts +13 -23
  7. package/lib/index.js +12 -29
  8. package/lib/ml-core.d.ts +5 -5
  9. package/lib/ml-core.js +94 -76
  10. package/lib/ml-dom/helper/accname.d.ts +1 -1
  11. package/lib/ml-dom/helper/accname.js +12 -19
  12. package/lib/ml-dom/helper/create-node.d.ts +4 -8
  13. package/lib/ml-dom/helper/create-node.js +38 -17
  14. package/lib/ml-dom/helper/debug.d.ts +1 -1
  15. package/lib/ml-dom/helper/debug.js +13 -22
  16. package/lib/ml-dom/helper/get-indent.d.ts +18 -0
  17. package/lib/ml-dom/helper/get-indent.js +112 -0
  18. package/lib/ml-dom/helper/walkers.d.ts +5 -15
  19. package/lib/ml-dom/helper/walkers.js +3 -8
  20. package/lib/ml-dom/index.d.ts +9 -9
  21. package/lib/ml-dom/index.js +1 -5
  22. package/lib/ml-dom/manipulations/child-node-methods.d.ts +7 -20
  23. package/lib/ml-dom/manipulations/child-node-methods.js +13 -25
  24. package/lib/ml-dom/manipulations/get-children.d.ts +3 -5
  25. package/lib/ml-dom/manipulations/get-children.js +3 -7
  26. package/lib/ml-dom/node/attr.d.ts +113 -98
  27. package/lib/ml-dom/node/attr.js +93 -50
  28. package/lib/ml-dom/node/block.d.ts +35 -39
  29. package/lib/ml-dom/node/block.js +8 -14
  30. package/lib/ml-dom/node/character-data.d.ts +55 -62
  31. package/lib/ml-dom/node/character-data.js +11 -16
  32. package/lib/ml-dom/node/child-node.d.ts +8 -15
  33. package/lib/ml-dom/node/child-node.js +1 -5
  34. package/lib/ml-dom/node/comment.d.ts +14 -17
  35. package/lib/ml-dom/node/comment.js +2 -6
  36. package/lib/ml-dom/node/document-fragment.d.ts +22 -25
  37. package/lib/ml-dom/node/document-fragment.js +4 -9
  38. package/lib/ml-dom/node/document-type.d.ts +35 -38
  39. package/lib/ml-dom/node/document-type.js +8 -14
  40. package/lib/ml-dom/node/document.d.ts +1598 -1614
  41. package/lib/ml-dom/node/document.js +330 -275
  42. package/lib/ml-dom/node/dom-token-list.d.ts +27 -27
  43. package/lib/ml-dom/node/dom-token-list.js +36 -32
  44. package/lib/ml-dom/node/element-close-tag.d.ts +20 -0
  45. package/lib/ml-dom/node/element-close-tag.js +39 -0
  46. package/lib/ml-dom/node/element.d.ts +1957 -1951
  47. package/lib/ml-dom/node/element.js +364 -348
  48. package/lib/ml-dom/node/named-node-map.d.ts +40 -45
  49. package/lib/ml-dom/node/named-node-map.js +10 -18
  50. package/lib/ml-dom/node/node-list.d.ts +5 -11
  51. package/lib/ml-dom/node/node-list.js +8 -16
  52. package/lib/ml-dom/node/node-store.d.ts +6 -11
  53. package/lib/ml-dom/node/node-store.js +14 -13
  54. package/lib/ml-dom/node/node.d.ts +480 -500
  55. package/lib/ml-dom/node/node.js +83 -73
  56. package/lib/ml-dom/node/parent-node.d.ts +60 -69
  57. package/lib/ml-dom/node/parent-node.js +32 -29
  58. package/lib/ml-dom/node/rule-mapper.d.ts +9 -9
  59. package/lib/ml-dom/node/rule-mapper.js +26 -21
  60. package/lib/ml-dom/node/text.d.ts +48 -51
  61. package/lib/ml-dom/node/text.js +8 -13
  62. package/lib/ml-dom/node/types.d.ts +42 -90
  63. package/lib/ml-dom/node/types.js +1 -2
  64. package/lib/ml-dom/node/unexpected-call-error.d.ts +2 -1
  65. package/lib/ml-dom/node/unexpected-call-error.js +1 -4
  66. package/lib/ml-dom/token/token.d.ts +45 -45
  67. package/lib/ml-dom/token/token.js +32 -26
  68. package/lib/ml-rule/create-rule.d.ts +2 -4
  69. package/lib/ml-rule/create-rule.js +1 -5
  70. package/lib/ml-rule/create-test-rule.d.ts +5 -7
  71. package/lib/ml-rule/create-test-rule.js +3 -7
  72. package/lib/ml-rule/index.d.ts +3 -3
  73. package/lib/ml-rule/index.js +3 -6
  74. package/lib/ml-rule/ml-rule-context.d.ts +49 -57
  75. package/lib/ml-rule/ml-rule-context.js +11 -11
  76. package/lib/ml-rule/ml-rule.d.ts +26 -36
  77. package/lib/ml-rule/ml-rule.js +34 -31
  78. package/lib/ml-rule/types.d.ts +18 -33
  79. package/lib/ml-rule/types.js +1 -2
  80. package/lib/plugin/index.d.ts +2 -2
  81. package/lib/plugin/index.js +2 -5
  82. package/lib/plugin/plugin.d.ts +2 -4
  83. package/lib/plugin/plugin.js +1 -5
  84. package/lib/plugin/types.d.ts +6 -6
  85. package/lib/plugin/types.js +1 -2
  86. package/lib/ruleset/index.d.ts +5 -5
  87. package/lib/ruleset/index.js +4 -8
  88. package/lib/test/index.d.ts +11 -21
  89. package/lib/test/index.js +18 -24
  90. package/lib/types.d.ts +11 -11
  91. package/lib/types.js +1 -2
  92. package/lib/utils/get-location-from-chars.d.ts +4 -9
  93. package/lib/utils/get-location-from-chars.js +4 -8
  94. package/lib/utils/index.d.ts +1 -1
  95. package/lib/utils/index.js +1 -5
  96. package/lib/utils/string-splice.js +1 -5
  97. package/package.json +19 -15
  98. package/lib/configs.d.ts +0 -2
  99. package/lib/configs.js +0 -34
  100. package/lib/ml-dom/helper/getIndent.d.ts +0 -18
  101. package/lib/ml-dom/helper/getIndent.js +0 -106
  102. package/test/ml-dom/helper/accname.spec.js +0 -85
  103. package/test/ml-dom/helper/create-node.spec.js +0 -18
  104. package/test/ml-dom/index.spec.js +0 -680
  105. package/test/ml-dom/ml-rule/create-rule.spec.js +0 -108
@@ -1,1955 +1,1961 @@
1
- import type { MLDocument } from './document';
2
- import type { MLNamedNodeMap } from './named-node-map';
3
- import type { MLText } from './text';
4
- import type { ElementNodeType, PretenderContext } from './types';
1
+ import type { MLDocument } from './document.js';
2
+ import type { MLNamedNodeMap } from './named-node-map.js';
3
+ import type { MLText } from './text.js';
4
+ import type { ElementNodeType, PretenderContext } from './types.js';
5
5
  import type { ElementType, MLASTElement, NamespaceURI } from '@markuplint/ml-ast';
6
6
  import type { PlainData, Pretender, RuleConfigValue, RuleInfo } from '@markuplint/ml-config';
7
7
  import type { ARIAVersion } from '@markuplint/ml-spec';
8
- import { MLToken } from '../token/token';
9
- import { MLAttr } from './attr';
10
- import { MLDomTokenList } from './dom-token-list';
11
- import { MLParentNode } from './parent-node';
12
- export declare class MLElement<T extends RuleConfigValue, O extends PlainData = undefined>
13
- extends MLParentNode<T, O, MLASTElement>
14
- implements Element, HTMLOrSVGElement, HTMLElement
15
- {
16
- #private;
17
- readonly closeTag: MLToken | null;
18
- readonly elementType: ElementType;
19
- readonly endSpace: MLToken | null;
20
- readonly hasSpreadAttr: boolean;
21
- readonly isForeignElement: boolean;
22
- readonly isOmitted: boolean;
23
- readonly namespaceURI: NamespaceURI;
24
- readonly ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
25
- readonly ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
26
- readonly ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
27
- readonly ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
28
- pretenderContext: PretenderContext<MLElement<T, O>, T, O> | null;
29
- readonly selfClosingSolidus: MLToken | null;
30
- constructor(astNode: MLASTElement, document: MLDocument<T, O>);
31
- /**
32
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
33
- *
34
- * @deprecated
35
- * @unsupported
36
- * @implements DOM API: `Element`
37
- */
38
- get accessKey(): string;
39
- /**
40
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
41
- *
42
- * @deprecated
43
- * @unsupported
44
- * @implements DOM API: `Element`
45
- */
46
- get accessKeyLabel(): string;
47
- /**
48
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
49
- *
50
- * @deprecated
51
- * @unsupported
52
- * @implements DOM API: `Element`
53
- */
54
- get ariaAtomic(): string | null;
55
- /**
56
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
57
- *
58
- * @deprecated
59
- * @unsupported
60
- * @implements DOM API: `Element`
61
- */
62
- get ariaAutoComplete(): string | null;
63
- /**
64
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
65
- *
66
- * @deprecated
67
- * @unsupported
68
- * @implements DOM API: `Element`
69
- */
70
- get ariaBusy(): string | null;
71
- /**
72
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
73
- *
74
- * @deprecated
75
- * @unsupported
76
- * @implements DOM API: `Element`
77
- */
78
- get ariaChecked(): string | null;
79
- /**
80
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
81
- *
82
- * @deprecated
83
- * @unsupported
84
- * @implements DOM API: `Element`
85
- */
86
- get ariaColCount(): string | null;
87
- /**
88
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
89
- *
90
- * @deprecated
91
- * @unsupported
92
- * @implements DOM API: `Element`
93
- */
94
- get ariaColIndex(): string | null;
95
- /**
96
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
97
- *
98
- * @deprecated
99
- * @unsupported
100
- * @implements DOM API: `Element`
101
- */
102
- get ariaColIndexText(): string | null;
103
- /**
104
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
105
- *
106
- * @deprecated
107
- * @unsupported
108
- * @implements DOM API: `Element`
109
- */
110
- get ariaColSpan(): string | null;
111
- /**
112
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
113
- *
114
- * @deprecated
115
- * @unsupported
116
- * @implements DOM API: `Element`
117
- */
118
- get ariaCurrent(): string | null;
119
- /**
120
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
121
- *
122
- * @deprecated
123
- * @unsupported
124
- * @implements DOM API: `Element`
125
- */
126
- get ariaDisabled(): string | null;
127
- /**
128
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
129
- *
130
- * @deprecated
131
- * @unsupported
132
- * @implements DOM API: `Element`
133
- */
134
- get ariaExpanded(): string | null;
135
- /**
136
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
137
- *
138
- * @deprecated
139
- * @unsupported
140
- * @implements DOM API: `Element`
141
- */
142
- get ariaHasPopup(): string | null;
143
- /**
144
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
145
- *
146
- * @deprecated
147
- * @unsupported
148
- * @implements DOM API: `Element`
149
- */
150
- get ariaHidden(): string | null;
151
- /**
152
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
153
- *
154
- * @deprecated
155
- * @unsupported
156
- * @implements DOM API: `Element`
157
- */
158
- get ariaInvalid(): string | null;
159
- /**
160
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
161
- *
162
- * @deprecated
163
- * @unsupported
164
- * @implements DOM API: `Element`
165
- */
166
- get ariaKeyShortcuts(): string | null;
167
- /**
168
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
169
- *
170
- * @deprecated
171
- * @unsupported
172
- * @implements DOM API: `Element`
173
- */
174
- get ariaLabel(): string | null;
175
- /**
176
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
177
- *
178
- * @deprecated
179
- * @unsupported
180
- * @implements DOM API: `Element`
181
- */
182
- get ariaLevel(): string | null;
183
- /**
184
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
185
- *
186
- * @deprecated
187
- * @unsupported
188
- * @implements DOM API: `Element`
189
- */
190
- get ariaLive(): string | null;
191
- /**
192
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
193
- *
194
- * @deprecated
195
- * @unsupported
196
- * @implements DOM API: `Element`
197
- */
198
- get ariaModal(): string | null;
199
- /**
200
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
201
- *
202
- * @deprecated
203
- * @unsupported
204
- * @implements DOM API: `Element`
205
- */
206
- get ariaMultiLine(): string | null;
207
- /**
208
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
209
- *
210
- * @deprecated
211
- * @unsupported
212
- * @implements DOM API: `Element`
213
- */
214
- get ariaMultiSelectable(): string | null;
215
- /**
216
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
217
- *
218
- * @deprecated
219
- * @unsupported
220
- * @implements DOM API: `Element`
221
- */
222
- get ariaOrientation(): string | null;
223
- /**
224
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
225
- *
226
- * @deprecated
227
- * @unsupported
228
- * @implements DOM API: `Element`
229
- */
230
- get ariaPlaceholder(): string | null;
231
- /**
232
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
233
- *
234
- * @deprecated
235
- * @unsupported
236
- * @implements DOM API: `Element`
237
- */
238
- get ariaPosInSet(): string | null;
239
- /**
240
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
241
- *
242
- * @deprecated
243
- * @unsupported
244
- * @implements DOM API: `Element`
245
- */
246
- get ariaPressed(): string | null;
247
- /**
248
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
249
- *
250
- * @deprecated
251
- * @unsupported
252
- * @implements DOM API: `Element`
253
- */
254
- get ariaReadOnly(): string | null;
255
- /**
256
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
257
- *
258
- * @deprecated
259
- * @unsupported
260
- * @implements DOM API: `Element`
261
- */
262
- get ariaRequired(): string | null;
263
- /**
264
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
265
- *
266
- * @deprecated
267
- * @unsupported
268
- * @implements DOM API: `Element`
269
- */
270
- get ariaRoleDescription(): string | null;
271
- /**
272
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
273
- *
274
- * @deprecated
275
- * @unsupported
276
- * @implements DOM API: `Element`
277
- */
278
- get ariaRowCount(): string | null;
279
- /**
280
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
281
- *
282
- * @deprecated
283
- * @unsupported
284
- * @implements DOM API: `Element`
285
- */
286
- get ariaRowIndex(): string | null;
287
- /**
288
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
289
- *
290
- * @deprecated
291
- * @unsupported
292
- * @implements DOM API: `Element`
293
- */
294
- get ariaRowIndexText(): string | null;
295
- /**
296
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
297
- *
298
- * @deprecated
299
- * @unsupported
300
- * @implements DOM API: `Element`
301
- */
302
- get ariaRowSpan(): string | null;
303
- /**
304
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
305
- *
306
- * @deprecated
307
- * @unsupported
308
- * @implements DOM API: `Element`
309
- */
310
- get ariaSelected(): string | null;
311
- /**
312
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
313
- *
314
- * @deprecated
315
- * @unsupported
316
- * @implements DOM API: `Element`
317
- */
318
- get ariaSetSize(): string | null;
319
- /**
320
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
321
- *
322
- * @deprecated
323
- * @unsupported
324
- * @implements DOM API: `Element`
325
- */
326
- get ariaSort(): string | null;
327
- /**
328
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
329
- *
330
- * @deprecated
331
- * @unsupported
332
- * @implements DOM API: `Element`
333
- */
334
- get ariaValueMax(): string | null;
335
- /**
336
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
337
- *
338
- * @deprecated
339
- * @unsupported
340
- * @implements DOM API: `Element`
341
- */
342
- get ariaValueMin(): string | null;
343
- /**
344
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
345
- *
346
- * @deprecated
347
- * @unsupported
348
- * @implements DOM API: `Element`
349
- */
350
- get ariaValueNow(): string | null;
351
- /**
352
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
353
- *
354
- * @deprecated
355
- * @unsupported
356
- * @implements DOM API: `Element`
357
- */
358
- get ariaValueText(): string | null;
359
- /**
360
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
361
- *
362
- * @unsupported
363
- * @implements DOM API: `Element`
364
- * @see https://dom.spec.whatwg.org/#dom-slotable-assignedslot
365
- */
366
- get assignedSlot(): HTMLSlotElement | null;
367
- get attributeStyleMap(): StylePropertyMap;
368
- /**
369
- * @implements DOM API: `Element`
370
- * @see https://dom.spec.whatwg.org/#dom-element-attributes
371
- */
372
- get attributes(): MLNamedNodeMap<T, O>;
373
- /**
374
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
375
- *
376
- * @deprecated
377
- * @unsupported
378
- * @implements DOM API: `Element`
379
- */
380
- get autocapitalize(): string;
381
- /**
382
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
383
- *
384
- * @deprecated
385
- * @unsupported
386
- * @implements DOM API: `Element`
387
- */
388
- get autofocus(): boolean;
389
- /**
390
- * @implements DOM API: `Element`
391
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-classlist%E2%91%A0
392
- */
393
- get classList(): MLDomTokenList;
394
- /**
395
- * @implements DOM API: `Element`
396
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-classname%E2%91%A0
397
- */
398
- get className(): string;
399
- /**
400
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
401
- *
402
- * @unsupported
403
- * @implements DOM API: `Element`
404
- * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-clientheight-1
405
- */
406
- get clientHeight(): number;
407
- /**
408
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
409
- *
410
- * @unsupported
411
- * @implements DOM API: `Element`
412
- * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-clientleft-1
413
- */
414
- get clientLeft(): number;
415
- /**
416
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
417
- *
418
- * @unsupported
419
- * @implements DOM API: `Element`
420
- * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-clienttop-1
421
- */
422
- get clientTop(): number;
423
- /**
424
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
425
- *
426
- * @unsupported
427
- * @implements DOM API: `Element`
428
- * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-clientwidth-1
429
- */
430
- get clientWidth(): number;
431
- /**
432
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
433
- *
434
- * @deprecated
435
- * @unsupported
436
- * @implements DOM API: `Element`
437
- */
438
- get contentEditable(): string;
439
- /**
440
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
441
- *
442
- * @deprecated
443
- * @unsupported
444
- * @implements DOM API: `Element`
445
- */
446
- get dataset(): DOMStringMap;
447
- /**
448
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
449
- *
450
- * @deprecated
451
- * @unsupported
452
- * @implements DOM API: `Element`
453
- */
454
- get dir(): string;
455
- /**
456
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
457
- *
458
- * @deprecated
459
- * @unsupported
460
- * @implements DOM API: `Element`
461
- */
462
- get draggable(): boolean;
463
- /**
464
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
465
- *
466
- * @deprecated
467
- * @unsupported
468
- * @implements DOM API: `Element`
469
- */
470
- get enterKeyHint(): string;
471
- /**
472
- * @implements `@markuplint/ml-core` API: `MLElement`
473
- */
474
- get fixedNodeName(): string;
475
- /**
476
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
477
- *
478
- * @deprecated
479
- * @unsupported
480
- * @implements DOM API: `Element`
481
- */
482
- get hidden(): boolean;
483
- /**
484
- * @implements DOM API: `Element`
485
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-id%E2%91%A0
486
- */
487
- get id(): string;
488
- /**
489
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
490
- *
491
- * @deprecated
492
- * @unsupported
493
- * @implements DOM API: `Element`
494
- * @see https://html.spec.whatwg.org/multipage/interaction.html#dom-inert
495
- */
496
- get inert(): boolean;
497
- /**
498
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
499
- *
500
- * @unsupported
501
- * @implements DOM API: `Element`
502
- * @see https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
503
- */
504
- get innerHTML(): string;
505
- /**
506
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
507
- *
508
- * @deprecated
509
- * @unsupported
510
- * @implements DOM API: `Element`
511
- */
512
- get innerText(): string;
513
- /**
514
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
515
- *
516
- * @deprecated
517
- * @unsupported
518
- * @implements DOM API: `Element`
519
- */
520
- get inputMode(): string;
521
- /**
522
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
523
- *
524
- * @deprecated
525
- * @unsupported
526
- * @implements DOM API: `Element`
527
- */
528
- get isContentEditable(): boolean;
529
- /**
530
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
531
- *
532
- * @deprecated
533
- * @unsupported
534
- * @implements DOM API: `Element`
535
- */
536
- get lang(): string;
537
- /**
538
- * Returns a lowercase name if it is an HTML element.
539
- *
540
- * ```html
541
- * <div> => "div"
542
- * <DIV> => "div"
543
- * <svg> => "svg"
544
- * <foreignObject> => "foreignObject"
545
- * <x-foo> => "x-foo"
546
- * <X-FOO> => "x-foo"
547
- * ```
548
- *
549
- * @implements DOM API: `Element`
550
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-localname%E2%91%A0
551
- */
552
- get localName(): string;
553
- /**
554
- * The element immediately following the specified one in its parent's children list.
555
- *
556
- * @readonly
557
- * @implements DOM API: `Element`
558
- * @see https://dom.spec.whatwg.org/#ref-for-dom-nondocumenttypechildnode-nextelementsibling%E2%91%A1
559
- */
560
- get nextElementSibling(): MLElement<T, O> | null;
561
- /**
562
- * Returns a string appropriate for the type of node as `Element`
563
- *
564
- * @see https://dom.spec.whatwg.org/#ref-for-element%E2%91%A2%E2%93%AA
565
- */
566
- get nodeName(): string;
567
- /**
568
- * Returns a number appropriate for the type of `Element`
569
- */
570
- get nodeType(): ElementNodeType;
571
- /**
572
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
573
- *
574
- * @deprecated
575
- * @unsupported
576
- * @implements DOM API: `Element`
577
- */
578
- get nonce(): string | undefined;
579
- /**
580
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
581
- *
582
- * @deprecated
583
- * @unsupported
584
- * @implements DOM API: `Element`
585
- */
586
- get offsetHeight(): number;
587
- /**
588
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
589
- *
590
- * @deprecated
591
- * @unsupported
592
- * @implements DOM API: `Element`
593
- */
594
- get offsetLeft(): number;
595
- /**
596
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
597
- *
598
- * @deprecated
599
- * @unsupported
600
- * @implements DOM API: `Element`
601
- */
602
- get offsetParent(): Element | null;
603
- /**
604
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
605
- *
606
- * @deprecated
607
- * @unsupported
608
- * @implements DOM API: `Element`
609
- */
610
- get offsetTop(): number;
611
- /**
612
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
613
- *
614
- * @deprecated
615
- * @unsupported
616
- * @implements DOM API: `Element`
617
- */
618
- get offsetWidth(): number;
619
- /**
620
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
621
- *
622
- * @deprecated
623
- * @unsupported
624
- * @implements DOM API: `Element`
625
- */
626
- get onabort(): ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
627
- /**
628
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
629
- *
630
- * @deprecated
631
- * @unsupported
632
- * @implements DOM API: `Element`
633
- */
634
- get onanimationcancel(): ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
635
- /**
636
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
637
- *
638
- * @deprecated
639
- * @unsupported
640
- * @implements DOM API: `Element`
641
- */
642
- get onanimationend(): ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
643
- /**
644
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
645
- *
646
- * @deprecated
647
- * @unsupported
648
- * @implements DOM API: `Element`
649
- */
650
- get onanimationiteration(): ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
651
- /**
652
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
653
- *
654
- * @deprecated
655
- * @unsupported
656
- * @implements DOM API: `Element`
657
- */
658
- get onanimationstart(): ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
659
- /**
660
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
661
- *
662
- * @deprecated
663
- * @unsupported
664
- * @implements DOM API: `Element`
665
- */
666
- get onauxclick(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
667
- /**
668
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
669
- *
670
- * @deprecated
671
- * @unsupported
672
- * @implements DOM API: `Element`
673
- */
674
- get onbeforeinput(): ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
675
- /**
676
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
677
- *
678
- * @deprecated
679
- * @unsupported
680
- * @implements DOM API: `Element`
681
- */
682
- get onblur(): ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
683
- /**
684
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
685
- *
686
- * @deprecated
687
- * @unsupported
688
- * @implements DOM API: `Element`
689
- */
690
- get oncancel(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
691
- /**
692
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
693
- *
694
- * @deprecated
695
- * @unsupported
696
- * @implements DOM API: `Element`
697
- */
698
- get oncanplay(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
699
- /**
700
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
701
- *
702
- * @deprecated
703
- * @unsupported
704
- * @implements DOM API: `Element`
705
- */
706
- get oncanplaythrough(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
707
- /**
708
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
709
- *
710
- * @deprecated
711
- * @unsupported
712
- * @implements DOM API: `Element`
713
- */
714
- get onchange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
715
- /**
716
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
717
- *
718
- * @deprecated
719
- * @unsupported
720
- * @implements DOM API: `Element`
721
- */
722
- get onclick(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
723
- /**
724
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
725
- *
726
- * @deprecated
727
- * @unsupported
728
- * @implements DOM API: `Element`
729
- */
730
- get onclose(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
731
- /**
732
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
733
- *
734
- * @deprecated
735
- * @unsupported
736
- * @implements DOM API: `Element`
737
- */
738
- get oncontextmenu(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
739
- /**
740
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
741
- *
742
- * @deprecated
743
- * @unsupported
744
- * @implements DOM API: `Element`
745
- */
746
- get oncopy(): ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
747
- /**
748
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
749
- *
750
- * @deprecated
751
- * @unsupported
752
- * @implements DOM API: `Element`
753
- */
754
- get oncuechange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
755
- /**
756
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
757
- *
758
- * @deprecated
759
- * @unsupported
760
- * @implements DOM API: `Element`
761
- */
762
- get oncut(): ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
763
- /**
764
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
765
- *
766
- * @deprecated
767
- * @unsupported
768
- * @implements DOM API: `Element`
769
- */
770
- get ondblclick(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
771
- /**
772
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
773
- *
774
- * @deprecated
775
- * @unsupported
776
- * @implements DOM API: `Element`
777
- */
778
- get ondrag(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
779
- /**
780
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
781
- *
782
- * @deprecated
783
- * @unsupported
784
- * @implements DOM API: `Element`
785
- */
786
- get ondragend(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
787
- /**
788
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
789
- *
790
- * @deprecated
791
- * @unsupported
792
- * @implements DOM API: `Element`
793
- */
794
- get ondragenter(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
795
- /**
796
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
797
- *
798
- * @deprecated
799
- * @unsupported
800
- * @implements DOM API: `Element`
801
- */
802
- get ondragleave(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
803
- /**
804
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
805
- *
806
- * @deprecated
807
- * @unsupported
808
- * @implements DOM API: `Element`
809
- */
810
- get ondragover(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
811
- /**
812
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
813
- *
814
- * @deprecated
815
- * @unsupported
816
- * @implements DOM API: `Element`
817
- */
818
- get ondragstart(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
819
- /**
820
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
821
- *
822
- * @deprecated
823
- * @unsupported
824
- * @implements DOM API: `Element`
825
- */
826
- get ondrop(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
827
- /**
828
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
829
- *
830
- * @deprecated
831
- * @unsupported
832
- * @implements DOM API: `Element`
833
- */
834
- get ondurationchange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
835
- /**
836
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
837
- *
838
- * @deprecated
839
- * @unsupported
840
- * @implements DOM API: `Element`
841
- */
842
- get onemptied(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
843
- /**
844
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
845
- *
846
- * @deprecated
847
- * @unsupported
848
- * @implements DOM API: `Element`
849
- */
850
- get onended(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
851
- /**
852
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
853
- *
854
- * @deprecated
855
- * @unsupported
856
- * @implements DOM API: `Element`
857
- */
858
- get onerror(): OnErrorEventHandler;
859
- /**
860
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
861
- *
862
- * @deprecated
863
- * @unsupported
864
- * @implements DOM API: `Element`
865
- */
866
- get onfocus(): ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
867
- /**
868
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
869
- *
870
- * @deprecated
871
- * @unsupported
872
- * @implements DOM API: `Element`
873
- */
874
- get onformdata(): ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
875
- /**
876
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
877
- *
878
- * @deprecated
879
- * @unsupported
880
- * @implements DOM API: `Element`
881
- */
882
- get onfullscreenchange(): ((this: Element, ev: Event) => any) | null;
883
- /**
884
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
885
- *
886
- * @deprecated
887
- * @unsupported
888
- * @implements DOM API: `Element`
889
- */
890
- get onfullscreenerror(): ((this: Element, ev: Event) => any) | null;
891
- /**
892
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
893
- *
894
- * @deprecated
895
- * @unsupported
896
- * @implements DOM API: `Element`
897
- */
898
- get ongotpointercapture(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
899
- /**
900
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
901
- *
902
- * @deprecated
903
- * @unsupported
904
- * @implements DOM API: `Element`
905
- */
906
- get oninput(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
907
- /**
908
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
909
- *
910
- * @deprecated
911
- * @unsupported
912
- * @implements DOM API: `Element`
913
- */
914
- get oninvalid(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
915
- /**
916
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
917
- *
918
- * @deprecated
919
- * @unsupported
920
- * @implements DOM API: `Element`
921
- */
922
- get onkeydown(): ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
923
- /**
924
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
925
- *
926
- * @deprecated
927
- * @unsupported
928
- * @implements DOM API: `Element`
929
- */
930
- get onkeypress(): ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
931
- /**
932
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
933
- *
934
- * @deprecated
935
- * @unsupported
936
- * @implements DOM API: `Element`
937
- */
938
- get onkeyup(): ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
939
- /**
940
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
941
- *
942
- * @deprecated
943
- * @unsupported
944
- * @implements DOM API: `Element`
945
- */
946
- get onload(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
947
- /**
948
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
949
- *
950
- * @deprecated
951
- * @unsupported
952
- * @implements DOM API: `Element`
953
- */
954
- get onloadeddata(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
955
- /**
956
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
957
- *
958
- * @deprecated
959
- * @unsupported
960
- * @implements DOM API: `Element`
961
- */
962
- get onloadedmetadata(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
963
- /**
964
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
965
- *
966
- * @deprecated
967
- * @unsupported
968
- * @implements DOM API: `Element`
969
- */
970
- get onloadstart(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
971
- /**
972
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
973
- *
974
- * @deprecated
975
- * @unsupported
976
- * @implements DOM API: `Element`
977
- */
978
- get onlostpointercapture(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
979
- /**
980
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
981
- *
982
- * @deprecated
983
- * @unsupported
984
- * @implements DOM API: `Element`
985
- */
986
- get onmousedown(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
987
- /**
988
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
989
- *
990
- * @deprecated
991
- * @unsupported
992
- * @implements DOM API: `Element`
993
- */
994
- get onmouseenter(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
995
- /**
996
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
997
- *
998
- * @deprecated
999
- * @unsupported
1000
- * @implements DOM API: `Element`
1001
- */
1002
- get onmouseleave(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1003
- /**
1004
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1005
- *
1006
- * @deprecated
1007
- * @unsupported
1008
- * @implements DOM API: `Element`
1009
- */
1010
- get onmousemove(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1011
- /**
1012
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1013
- *
1014
- * @deprecated
1015
- * @unsupported
1016
- * @implements DOM API: `Element`
1017
- */
1018
- get onmouseout(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1019
- /**
1020
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1021
- *
1022
- * @deprecated
1023
- * @unsupported
1024
- * @implements DOM API: `Element`
1025
- */
1026
- get onmouseover(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1027
- /**
1028
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1029
- *
1030
- * @deprecated
1031
- * @unsupported
1032
- * @implements DOM API: `Element`
1033
- */
1034
- get onmouseup(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1035
- /**
1036
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1037
- *
1038
- * @deprecated
1039
- * @unsupported
1040
- * @implements DOM API: `Element`
1041
- */
1042
- get onpaste(): ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
1043
- /**
1044
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1045
- *
1046
- * @deprecated
1047
- * @unsupported
1048
- * @implements DOM API: `Element`
1049
- */
1050
- get onpause(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1051
- /**
1052
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1053
- *
1054
- * @deprecated
1055
- * @unsupported
1056
- * @implements DOM API: `Element`
1057
- */
1058
- get onplay(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1059
- /**
1060
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1061
- *
1062
- * @deprecated
1063
- * @unsupported
1064
- * @implements DOM API: `Element`
1065
- */
1066
- get onplaying(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1067
- /**
1068
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1069
- *
1070
- * @deprecated
1071
- * @unsupported
1072
- * @implements DOM API: `Element`
1073
- */
1074
- get onpointercancel(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1075
- /**
1076
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1077
- *
1078
- * @deprecated
1079
- * @unsupported
1080
- * @implements DOM API: `Element`
1081
- */
1082
- get onpointerdown(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1083
- /**
1084
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1085
- *
1086
- * @deprecated
1087
- * @unsupported
1088
- * @implements DOM API: `Element`
1089
- */
1090
- get onpointerenter(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1091
- /**
1092
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1093
- *
1094
- * @deprecated
1095
- * @unsupported
1096
- * @implements DOM API: `Element`
1097
- */
1098
- get onpointerleave(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1099
- /**
1100
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1101
- *
1102
- * @deprecated
1103
- * @unsupported
1104
- * @implements DOM API: `Element`
1105
- */
1106
- get onpointermove(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1107
- /**
1108
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1109
- *
1110
- * @deprecated
1111
- * @unsupported
1112
- * @implements DOM API: `Element`
1113
- */
1114
- get onpointerout(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1115
- /**
1116
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1117
- *
1118
- * @deprecated
1119
- * @unsupported
1120
- * @implements DOM API: `Element`
1121
- */
1122
- get onpointerover(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1123
- /**
1124
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1125
- *
1126
- * @deprecated
1127
- * @unsupported
1128
- * @implements DOM API: `Element`
1129
- */
1130
- get onpointerup(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1131
- /**
1132
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1133
- *
1134
- * @deprecated
1135
- * @unsupported
1136
- * @implements DOM API: `Element`
1137
- */
1138
- get onprogress(): ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
1139
- /**
1140
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1141
- *
1142
- * @deprecated
1143
- * @unsupported
1144
- * @implements DOM API: `Element`
1145
- */
1146
- get onratechange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1147
- /**
1148
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1149
- *
1150
- * @deprecated
1151
- * @unsupported
1152
- * @implements DOM API: `Element`
1153
- */
1154
- get onreset(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1155
- /**
1156
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1157
- *
1158
- * @deprecated
1159
- * @unsupported
1160
- * @implements DOM API: `Element`
1161
- */
1162
- get onresize(): ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
1163
- /**
1164
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1165
- *
1166
- * @deprecated
1167
- * @unsupported
1168
- * @implements DOM API: `Element`
1169
- */
1170
- get onscroll(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1171
- get onscrollend(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1172
- /**
1173
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1174
- *
1175
- * @deprecated
1176
- * @unsupported
1177
- * @implements DOM API: `Element`
1178
- */
1179
- get onsecuritypolicyviolation(): ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
1180
- /**
1181
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1182
- *
1183
- * @deprecated
1184
- * @unsupported
1185
- * @implements DOM API: `Element`
1186
- */
1187
- get onseeked(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1188
- /**
1189
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1190
- *
1191
- * @deprecated
1192
- * @unsupported
1193
- * @implements DOM API: `Element`
1194
- */
1195
- get onseeking(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1196
- /**
1197
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1198
- *
1199
- * @deprecated
1200
- * @unsupported
1201
- * @implements DOM API: `Element`
1202
- */
1203
- get onselect(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1204
- /**
1205
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1206
- *
1207
- * @deprecated
1208
- * @unsupported
1209
- * @implements DOM API: `Element`
1210
- */
1211
- get onselectionchange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1212
- /**
1213
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1214
- *
1215
- * @deprecated
1216
- * @unsupported
1217
- * @implements DOM API: `Element`
1218
- */
1219
- get onselectstart(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1220
- /**
1221
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1222
- *
1223
- * @deprecated
1224
- * @unsupported
1225
- * @implements DOM API: `Element`
1226
- */
1227
- get onslotchange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1228
- /**
1229
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1230
- *
1231
- * @deprecated
1232
- * @unsupported
1233
- * @implements DOM API: `Element`
1234
- */
1235
- get onstalled(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1236
- /**
1237
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1238
- *
1239
- * @deprecated
1240
- * @unsupported
1241
- * @implements DOM API: `Element`
1242
- */
1243
- get onsubmit(): ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
1244
- /**
1245
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1246
- *
1247
- * @deprecated
1248
- * @unsupported
1249
- * @implements DOM API: `Element`
1250
- */
1251
- get onsuspend(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1252
- /**
1253
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1254
- *
1255
- * @deprecated
1256
- * @unsupported
1257
- * @implements DOM API: `Element`
1258
- */
1259
- get ontimeupdate(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1260
- /**
1261
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1262
- *
1263
- * @deprecated
1264
- * @unsupported
1265
- * @implements DOM API: `Element`
1266
- */
1267
- get ontoggle(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1268
- /**
1269
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1270
- *
1271
- * @deprecated
1272
- * @unsupported
1273
- * @implements DOM API: `Element`
1274
- */
1275
- get ontransitioncancel(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1276
- /**
1277
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1278
- *
1279
- * @deprecated
1280
- * @unsupported
1281
- * @implements DOM API: `Element`
1282
- */
1283
- get ontransitionend(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1284
- /**
1285
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1286
- *
1287
- * @deprecated
1288
- * @unsupported
1289
- * @implements DOM API: `Element`
1290
- */
1291
- get ontransitionrun(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1292
- /**
1293
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1294
- *
1295
- * @deprecated
1296
- * @unsupported
1297
- * @implements DOM API: `Element`
1298
- */
1299
- get ontransitionstart(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1300
- /**
1301
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1302
- *
1303
- * @deprecated
1304
- * @unsupported
1305
- * @implements DOM API: `Element`
1306
- */
1307
- get onvolumechange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1308
- /**
1309
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1310
- *
1311
- * @deprecated
1312
- * @unsupported
1313
- * @implements DOM API: `Element`
1314
- */
1315
- get onwaiting(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1316
- /**
1317
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1318
- *
1319
- * @deprecated
1320
- * @unsupported
1321
- * @implements DOM API: `Element`
1322
- */
1323
- get onwebkitanimationend(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1324
- /**
1325
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1326
- *
1327
- * @deprecated
1328
- * @unsupported
1329
- * @implements DOM API: `Element`
1330
- */
1331
- get onwebkitanimationiteration(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1332
- /**
1333
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1334
- *
1335
- * @deprecated
1336
- * @unsupported
1337
- * @implements DOM API: `Element`
1338
- */
1339
- get onwebkitanimationstart(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1340
- /**
1341
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1342
- *
1343
- * @deprecated
1344
- * @unsupported
1345
- * @implements DOM API: `Element`
1346
- */
1347
- get onwebkittransitionend(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1348
- /**
1349
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1350
- *
1351
- * @deprecated
1352
- * @unsupported
1353
- * @implements DOM API: `Element`
1354
- */
1355
- get onwheel(): ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1356
- /**
1357
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1358
- *
1359
- * @unsupported
1360
- * @implements DOM API: `Element`
1361
- * @see https://w3c.github.io/DOM-Parsing/#dom-element-outerhtml
1362
- */
1363
- get outerHTML(): string;
1364
- /**
1365
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1366
- *
1367
- * @deprecated
1368
- * @unsupported
1369
- * @implements DOM API: `Element`
1370
- */
1371
- get outerText(): string;
1372
- /**
1373
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1374
- *
1375
- * @unsupported
1376
- * @implements DOM API: `Element`
1377
- * @see https://www.w3.org/TR/css-shadow-parts-1/#idl
1378
- */
1379
- get part(): DOMTokenList;
1380
- /**
1381
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1382
- *
1383
- * @unsupported
1384
- * @implements DOM API: `Element`
1385
- * @see https://html.spec.whatwg.org/multipage/popover.html#dom-popover
1386
- */
1387
- get popover(): string | null;
1388
- /**
1389
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1390
- *
1391
- * @unsupported
1392
- * @implements DOM API: `Element`
1393
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-prefix%E2%91%A0
1394
- */
1395
- get prefix(): string | null;
1396
- /**
1397
- * The element immediately prior the specified one in its parent's children list.
1398
- *
1399
- * @readonly
1400
- * @implements DOM API: `Element`
1401
- * @see https://dom.spec.whatwg.org/#ref-for-dom-nondocumenttypechildnode-previouselementsibling%E2%91%A1
1402
- */
1403
- get previousElementSibling(): MLElement<T, O> | null;
1404
- get raw(): string;
1405
- /**
1406
- * @implements `@markuplint/ml-core` API: `MLElement`
1407
- */
1408
- get rawName(): string;
1409
- /**
1410
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1411
- *
1412
- * @unsupported
1413
- * @implements DOM API: `Element`
1414
- * @see https://w3c.github.io/aria/#ARIAMixin
1415
- */
1416
- get role(): string;
1417
- /**
1418
- * @implements `@markuplint/ml-core` API: `MLNode`
1419
- */
1420
- get rule(): RuleInfo<T, O>;
1421
- /**
1422
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1423
- *
1424
- * @unsupported
1425
- * @implements DOM API: `Element`
1426
- * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-scrollheight-1
1427
- */
1428
- get scrollHeight(): number;
1429
- /**
1430
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1431
- *
1432
- * @unsupported
1433
- * @implements DOM API: `Element`
1434
- * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-scrollleft-1
1435
- */
1436
- get scrollLeft(): number;
1437
- /**
1438
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1439
- *
1440
- * @unsupported
1441
- * @implements DOM API: `Element`
1442
- * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-scrolltop-1
1443
- */
1444
- get scrollTop(): number;
1445
- /**
1446
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1447
- *
1448
- * @unsupported
1449
- * @implements DOM API: `Element`
1450
- * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-scrollwidth-1
1451
- */
1452
- get scrollWidth(): number;
1453
- /**
1454
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1455
- *
1456
- * @unsupported
1457
- * @implements DOM API: `Element`
1458
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-shadowroot%E2%91%A0
1459
- */
1460
- get shadowRoot(): ShadowRoot | null;
1461
- /**
1462
- * @implements DOM API: `Element`
1463
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-slot%E2%91%A0
1464
- */
1465
- get slot(): string;
1466
- /**
1467
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1468
- *
1469
- * @deprecated
1470
- * @unsupported
1471
- * @implements DOM API: `Element`
1472
- */
1473
- get spellcheck(): boolean;
1474
- /**
1475
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1476
- *
1477
- * @deprecated
1478
- * @unsupported
1479
- * @implements DOM API: `Element`
1480
- */
1481
- get style(): CSSStyleDeclaration;
1482
- /**
1483
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1484
- *
1485
- * @deprecated
1486
- * @unsupported
1487
- * @implements DOM API: `Element`
1488
- */
1489
- get tabIndex(): number;
1490
- /**
1491
- * Returns the HTML-uppercased qualified name.
1492
- *
1493
- * If this is in the HTML namespace and its node document is an HTML document, then set qualifiedName to qualifiedName in ASCII uppercase.
1494
- *
1495
- * (In markuplint evaluation, the node document always is an HTML document.)
1496
- *
1497
- * ```html
1498
- * <div> => "DIV"
1499
- * <svg> => "svg"
1500
- * <x-foo> => "X-FOO"
1501
- * ```
1502
- *
1503
- * @implements DOM API: `Element`
1504
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-tagname%E2%91%A0
1505
- */
1506
- get tagName(): string;
1507
- get textContent(): string;
1508
- /**
1509
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1510
- *
1511
- * @deprecated
1512
- * @unsupported
1513
- * @implements DOM API: `Element`
1514
- */
1515
- get title(): string;
1516
- /**
1517
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1518
- *
1519
- * @deprecated
1520
- * @unsupported
1521
- * @implements DOM API: `Element`
1522
- */
1523
- get translate(): boolean;
1524
- /**
1525
- * @implements DOM API: `Element`
1526
- */
1527
- after(...nodes: (string | MLElement<any, any>)[]): void;
1528
- /**
1529
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1530
- *
1531
- * @unsupported
1532
- * @implements DOM API: `Element`
1533
- * @see https://www.w3.org/TR/web-animations-1/#dom-animatable-animate
1534
- */
1535
- animate(
1536
- keyframes: Keyframe[] | PropertyIndexedKeyframes | null,
1537
- options?: number | KeyframeAnimationOptions,
1538
- ): Animation;
1539
- /**
1540
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1541
- *
1542
- * @deprecated
1543
- * @unsupported
1544
- * @implements DOM API: `Element`
1545
- */
1546
- attachInternals(): ElementInternals;
1547
- /**
1548
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1549
- *
1550
- * @unsupported
1551
- * @implements DOM API: `Element`
1552
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-attachshadow%E2%91%A0
1553
- */
1554
- attachShadow(init: ShadowRootInit): ShadowRoot;
1555
- /**
1556
- * @implements DOM API: `Element`
1557
- */
1558
- before(...nodes: (string | MLElement<any, any>)[]): void;
1559
- /**
1560
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1561
- *
1562
- * @deprecated
1563
- * @unsupported
1564
- * @implements DOM API: `Element`
1565
- */
1566
- blur(): void;
1567
- /**
1568
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1569
- *
1570
- * @deprecated
1571
- * @unsupported
1572
- * @implements DOM API: `Element`
1573
- */
1574
- checkVisibility(options?: CheckVisibilityOptions): boolean;
1575
- /**
1576
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1577
- *
1578
- * @deprecated
1579
- * @unsupported
1580
- * @implements DOM API: `Element`
1581
- */
1582
- click(): void;
1583
- /**
1584
- * @implements DOM API: `Element`
1585
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-closest%E2%91%A0
1586
- */
1587
- closest(selectors: string): MLElement<T, O> | null;
1588
- /**
1589
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1590
- *
1591
- * @unsupported
1592
- * @implements DOM API: `Element`
1593
- */
1594
- computedStyleMap(): StylePropertyMapReadOnly;
1595
- fixNodeName(name: string): void;
1596
- /**
1597
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1598
- *
1599
- * @deprecated
1600
- * @unsupported
1601
- * @implements DOM API: `Element`
1602
- */
1603
- focus(options?: FocusOptions): void;
1604
- /**
1605
- * @implements `@markuplint/ml-core` API: `MLElement`
1606
- */
1607
- getAccessibleName(version: ARIAVersion): string;
1608
- /**
1609
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1610
- *
1611
- * @unsupported
1612
- * @implements DOM API: `Element`
1613
- * @see https://www.w3.org/TR/web-animations-1/#dom-animatable-getanimations
1614
- */
1615
- getAnimations(options?: GetAnimationsOptions): Animation[];
1616
- /**
1617
- * @implements DOM API: `Element`
1618
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-getattribute%E2%91%A0
1619
- */
1620
- getAttribute(attrName: string): string | null;
1621
- /**
1622
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1623
- *
1624
- * @unsupported
1625
- * @implements DOM API: `Element`
1626
- * @see https://dom.spec.whatwg.org/#dom-element-getattributenodens
1627
- */
1628
- getAttributeNS(namespace: string | null, localName: string): string | null;
1629
- /**
1630
- * @implements DOM API: `Element`
1631
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-getattributenames%E2%91%A0
1632
- */
1633
- getAttributeNames(): string[];
1634
- /**
1635
- * @implements DOM API: `Element`
1636
- * @see https://dom.spec.whatwg.org/#dom-element-getattributenode
1637
- */
1638
- getAttributeNode(qualifiedName: string): MLAttr<T, O> | null;
1639
- /**
1640
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1641
- *
1642
- * @unsupported
1643
- * @implements DOM API: `Element`
1644
- * @see https://dom.spec.whatwg.org/#dom-element-getattributenodens
1645
- */
1646
- getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
1647
- /**
1648
- * @implements `@markuplint/ml-core` API: `MLElement`
1649
- */
1650
- getAttributePretended(attrName: string): string | null;
1651
- /**
1652
- * @implements `@markuplint/ml-core` API: `MLElement`
1653
- */
1654
- getAttributeToken(attrName: string): MLAttr<T, O>[];
1655
- /**
1656
- * @implements `@markuplint/ml-core` API: `MLElement`
1657
- */
1658
- getAttributeTokens(): readonly MLAttr<T, O>[];
1659
- /**
1660
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1661
- *
1662
- * @unsupported
1663
- * @implements DOM API: `Element`
1664
- * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-getboundingclientrect-1
1665
- */
1666
- getBoundingClientRect(): DOMRect;
1667
- getChildElementsAndTextNodeWithoutWhitespaces(): (MLElement<T, O> | MLText<T, O>)[];
1668
- /**
1669
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1670
- *
1671
- * @unsupported
1672
- * @implements DOM API: `Element`
1673
- * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-getclientrects-1
1674
- */
1675
- getClientRects(): DOMRectList;
1676
- /**
1677
- * @implements DOM API: `Element`
1678
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-getelementsbyclassname
1679
- */
1680
- getElementsByClassName(classNames: string): HTMLCollectionOf<MLElement<T, O>>;
1681
- /**
1682
- * @implements DOM API: `Element`
1683
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-getelementsbyclassname
1684
- */
1685
- getElementsByTagName(qualifiedName: string): ReturnType<(typeof Element)['prototype']['getElementsByTagName']>;
1686
- /**
1687
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1688
- *
1689
- * @unsupported
1690
- * @implements DOM API: `Element`
1691
- * @see https://dom.spec.whatwg.org/#dom-element-getelementsbytagnamens
1692
- */
1693
- getElementsByTagNameNS(namespace: any, localName: any): any;
1694
- /**
1695
- * @implements `@markuplint/ml-core` API: `MLElement`
1696
- */
1697
- getNameLocation(): {
1698
- offset: number;
1699
- line: number;
1700
- col: number;
1701
- };
1702
- /**
1703
- * @implements DOM API: `Element`
1704
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-hasattribute%E2%91%A0
1705
- */
1706
- hasAttribute(qualifiedName: string): boolean;
1707
- /**
1708
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1709
- *
1710
- * @unsupported
1711
- * @implements DOM API: `Element`
1712
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-hasattributens%E2%91%A0
1713
- */
1714
- hasAttributeNS(namespace: string | null, localName: string): boolean;
1715
- /**
1716
- * @implements DOM API: `Element`
1717
- * @see https://dom.spec.whatwg.org/#dom-element-hasattributes
1718
- */
1719
- hasAttributes(): boolean;
1720
- /**
1721
- * @implements `@markuplint/ml-core` API: `MLElement`
1722
- */
1723
- hasMutableAttributes(): boolean;
1724
- /**
1725
- * This element has "Preprocessor Specific Block". In other words, Its children are potentially mutable.
1726
- *
1727
- * @implements `@markuplint/ml-core` API: `MLElement`
1728
- */
1729
- hasMutableChildren(attr?: boolean): boolean;
1730
- /**
1731
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1732
- *
1733
- * @unsupported
1734
- * @implements DOM API: `Element`
1735
- * @see https://www.w3.org/TR/pointerevents2/#dom-element-haspointercapture
1736
- */
1737
- hasPointerCapture(pointerId: number): boolean;
1738
- /**
1739
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1740
- *
1741
- * @unsupported
1742
- * @implements DOM API: `Element`
1743
- * @see https://html.spec.whatwg.org/multipage/popover.html#dom-hidepopover
1744
- */
1745
- hidePopover(): void;
1746
- /**
1747
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1748
- *
1749
- * @unsupported
1750
- * @implements DOM API: `Element`
1751
- * @see https://dom.spec.whatwg.org/#dom-element-insertadjacentelement
1752
- */
1753
- insertAdjacentElement(where: InsertPosition, element: MLElement<T, O>): MLElement<T, O> | null;
1754
- /**
1755
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1756
- *
1757
- * @unsupported
1758
- * @implements DOM API: `Element`
1759
- * @see https://w3c.github.io/DOM-Parsing/#widl-Element-insertAdjacentHTML-void-DOMString-position-DOMString-text
1760
- */
1761
- insertAdjacentHTML(position: InsertPosition, text: string): void;
1762
- /**
1763
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1764
- *
1765
- * @unsupported
1766
- * @implements DOM API: `Element`
1767
- * @see https://dom.spec.whatwg.org/#dom-element-insertadjacenttext
1768
- */
1769
- insertAdjacentText(where: InsertPosition, data: string): void;
1770
- /**
1771
- * @implements `@markuplint/ml-core` API: `MLElement`
1772
- */
1773
- isDescendantByUUIDList(uuidList: readonly string[]): boolean;
1774
- /**
1775
- * @implements `@markuplint/ml-core` API: `MLElement`
1776
- */
1777
- isEmpty(): boolean;
1778
- /**
1779
- * @implements DOM API: `Element`
1780
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-matches%E2%91%A0
1781
- */
1782
- matches(selector: string): boolean;
1783
- /**
1784
- * Pretenders Initialization
1785
- */
1786
- pretending(pretenders: readonly Pretender[]): void;
1787
- /**
1788
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1789
- *
1790
- * @unsupported
1791
- * @implements DOM API: `Element`
1792
- * @see https://www.w3.org/TR/pointerevents2/#dom-element-releasepointercapture
1793
- */
1794
- releasePointerCapture(pointerId: number): void;
1795
- /**
1796
- * @implements DOM API: `Element`
1797
- */
1798
- remove(): void;
1799
- /**
1800
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1801
- *
1802
- * @unsupported
1803
- * @implements DOM API: `Element`
1804
- * @see https://dom.spec.whatwg.org/#dom-element-removeattribute
1805
- */
1806
- removeAttribute(qualifiedName: string): void;
1807
- /**
1808
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1809
- *
1810
- * @unsupported
1811
- * @implements DOM API: `Element`
1812
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-removeattributens%E2%91%A0
1813
- */
1814
- removeAttributeNS(namespace: string | null, localName: string): void;
1815
- /**
1816
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1817
- *
1818
- * @unsupported
1819
- * @implements DOM API: `Element`
1820
- * @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-D589198
1821
- */
1822
- removeAttributeNode(attr: Attr): Attr;
1823
- /**
1824
- * @implements DOM API: `Element`
1825
- */
1826
- replaceWith(...nodes: (string | MLElement<any, any>)[]): void;
1827
- /**
1828
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1829
- *
1830
- * @unsupported
1831
- * @implements DOM API: `Element`
1832
- * @see https://fullscreen.spec.whatwg.org/#dom-element-requestfullscreen
1833
- */
1834
- requestFullscreen(options?: FullscreenOptions): Promise<void>;
1835
- /**
1836
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1837
- *
1838
- * @unsupported
1839
- * @implements DOM API: `Element`
1840
- * @see https://w3c.github.io/pointerlock/#dom-element-requestpointerlock
1841
- */
1842
- requestPointerLock(): void;
1843
- /**
1844
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1845
- *
1846
- * @unsupported
1847
- * @implements DOM API: `Element`
1848
- * @see https://www.w3.org/TR/cssom-view-1/#dom-element-scroll
1849
- */
1850
- scroll(x?: any, y?: any): void;
1851
- /**
1852
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1853
- *
1854
- * @unsupported
1855
- * @implements DOM API: `Element`
1856
- * @see https://www.w3.org/TR/cssom-view-1/#dom-element-scrollby
1857
- */
1858
- scrollBy(x?: any, y?: any): void;
1859
- /**
1860
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1861
- *
1862
- * @unsupported
1863
- * @implements DOM API: `Element`
1864
- * @see https://www.w3.org/TR/cssom-view-1/#dom-element-scrollintoview
1865
- */
1866
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
1867
- /**
1868
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1869
- *
1870
- * @unsupported
1871
- * @implements DOM API: `Element`
1872
- * @see https://www.w3.org/TR/cssom-view-1/#dom-element-scrollto
1873
- */
1874
- scrollTo(x?: any, y?: any): void;
1875
- /**
1876
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1877
- *
1878
- * @unsupported
1879
- * @implements DOM API: `Element`
1880
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-setattribute%E2%91%A0
1881
- */
1882
- setAttribute(qualifiedName: string, value: string): void;
1883
- /**
1884
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1885
- *
1886
- * @unsupported
1887
- * @implements DOM API: `Element`
1888
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-setattributens%E2%91%A0
1889
- */
1890
- setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
1891
- /**
1892
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1893
- *
1894
- * @unsupported
1895
- * @implements DOM API: `Element`
1896
- * @see https://dom.spec.whatwg.org/#dom-element-setattributenode
1897
- */
1898
- setAttributeNode(attr: Attr): Attr | null;
1899
- /**
1900
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1901
- *
1902
- * @unsupported
1903
- * @implements DOM API: `Element`
1904
- * @see https://dom.spec.whatwg.org/#dom-element-setattributenodens
1905
- */
1906
- setAttributeNodeNS(attr: Attr): Attr | null;
1907
- /**
1908
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1909
- *
1910
- * @unsupported
1911
- * @implements DOM API: `Element`
1912
- * @see https://www.w3.org/TR/pointerevents2/#idl-def-element-setpointercapture-pointerid
1913
- */
1914
- setPointerCapture(pointerId: number): void;
1915
- /**
1916
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1917
- *
1918
- * @unsupported
1919
- * @implements DOM API: `Element`
1920
- * @see https://html.spec.whatwg.org/multipage/popover.html#dom-showpopover
1921
- */
1922
- showPopover(): void;
1923
- /**
1924
- * @implements `@markuplint/ml-core` API: `MLElement`
1925
- */
1926
- toNormalizeString(): string;
1927
- /**
1928
- * @implements `@markuplint/ml-core` API: `MLElement`
1929
- */
1930
- toString(): string;
1931
- /**
1932
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1933
- *
1934
- * @unsupported
1935
- * @implements DOM API: `Element`
1936
- * @see https://dom.spec.whatwg.org/#ref-for-dom-element-toggleattribute%E2%91%A0
1937
- */
1938
- toggleAttribute(qualifiedName: string, force?: boolean): boolean;
1939
- /**
1940
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1941
- *
1942
- * @unsupported
1943
- * @implements DOM API: `Element`
1944
- * @see https://html.spec.whatwg.org/multipage/popover.html#dom-togglepopover
1945
- */
1946
- togglePopover(force?: boolean): void;
1947
- /**
1948
- * **IT THROWS AN ERROR WHEN CALLING THIS.**
1949
- *
1950
- * @deprecated
1951
- * @unsupported
1952
- * @implements DOM API: `Element`
1953
- */
1954
- webkitMatchesSelector(selectors: string): boolean;
8
+ import { MLToken } from '../token/token.js';
9
+ import { MLAttr } from './attr.js';
10
+ import { MLDomTokenList } from './dom-token-list.js';
11
+ import { MLElementCloseTag } from './element-close-tag.js';
12
+ import { MLParentNode } from './parent-node.js';
13
+ export declare class MLElement<T extends RuleConfigValue, O extends PlainData = undefined> extends MLParentNode<T, O, MLASTElement> implements Element, HTMLOrSVGElement, HTMLElement {
14
+ #private;
15
+ readonly closeTag: MLElementCloseTag<T, O> | null;
16
+ /**
17
+ * Element type
18
+ *
19
+ * - `html`: From native HTML Standard
20
+ * - `web-component`: As the Web Component according to HTML Standard
21
+ * - `authored`: Authored element (JSX Element etc.) through the view framework or the template engine.
22
+ */
23
+ readonly elementType: ElementType;
24
+ readonly isForeignElement: boolean;
25
+ readonly isOmitted: boolean;
26
+ readonly namespaceURI: NamespaceURI;
27
+ readonly ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
28
+ readonly ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
29
+ readonly ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
30
+ readonly ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
31
+ pretenderContext: PretenderContext<MLElement<T, O>, T, O> | null;
32
+ readonly selfClosingSolidus: MLToken | null;
33
+ readonly tagCloseChar: string;
34
+ readonly tagOpenChar: string;
35
+ constructor(astNode: MLASTElement, document: MLDocument<T, O>);
36
+ /**
37
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
38
+ *
39
+ * @deprecated
40
+ * @unsupported
41
+ * @implements DOM API: `Element`
42
+ */
43
+ get accessKey(): string;
44
+ /**
45
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
46
+ *
47
+ * @deprecated
48
+ * @unsupported
49
+ * @implements DOM API: `Element`
50
+ */
51
+ get accessKeyLabel(): string;
52
+ /**
53
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
54
+ *
55
+ * @deprecated
56
+ * @unsupported
57
+ * @implements DOM API: `Element`
58
+ */
59
+ get ariaAtomic(): string | null;
60
+ /**
61
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
62
+ *
63
+ * @deprecated
64
+ * @unsupported
65
+ * @implements DOM API: `Element`
66
+ */
67
+ get ariaAutoComplete(): string | null;
68
+ /**
69
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
70
+ *
71
+ * @deprecated
72
+ * @unsupported
73
+ * @implements DOM API: `Element`
74
+ */
75
+ get ariaBusy(): string | null;
76
+ /**
77
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
78
+ *
79
+ * @deprecated
80
+ * @unsupported
81
+ * @implements DOM API: `Element`
82
+ */
83
+ get ariaChecked(): string | null;
84
+ /**
85
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
86
+ *
87
+ * @deprecated
88
+ * @unsupported
89
+ * @implements DOM API: `Element`
90
+ */
91
+ get ariaColCount(): string | null;
92
+ /**
93
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
94
+ *
95
+ * @deprecated
96
+ * @unsupported
97
+ * @implements DOM API: `Element`
98
+ */
99
+ get ariaColIndex(): string | null;
100
+ /**
101
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
102
+ *
103
+ * @deprecated
104
+ * @unsupported
105
+ * @implements DOM API: `Element`
106
+ */
107
+ get ariaColIndexText(): string | null;
108
+ /**
109
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
110
+ *
111
+ * @deprecated
112
+ * @unsupported
113
+ * @implements DOM API: `Element`
114
+ */
115
+ get ariaColSpan(): string | null;
116
+ /**
117
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
118
+ *
119
+ * @deprecated
120
+ * @unsupported
121
+ * @implements DOM API: `Element`
122
+ */
123
+ get ariaCurrent(): string | null;
124
+ /**
125
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
126
+ *
127
+ * @deprecated
128
+ * @unsupported
129
+ * @implements DOM API: `Element`
130
+ */
131
+ get ariaDisabled(): string | null;
132
+ /**
133
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
134
+ *
135
+ * @deprecated
136
+ * @unsupported
137
+ * @implements DOM API: `Element`
138
+ */
139
+ get ariaExpanded(): string | null;
140
+ /**
141
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
142
+ *
143
+ * @deprecated
144
+ * @unsupported
145
+ * @implements DOM API: `Element`
146
+ */
147
+ get ariaHasPopup(): string | null;
148
+ /**
149
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
150
+ *
151
+ * @deprecated
152
+ * @unsupported
153
+ * @implements DOM API: `Element`
154
+ */
155
+ get ariaHidden(): string | null;
156
+ /**
157
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
158
+ *
159
+ * @deprecated
160
+ * @unsupported
161
+ * @implements DOM API: `Element`
162
+ */
163
+ get ariaInvalid(): string | null;
164
+ /**
165
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
166
+ *
167
+ * @deprecated
168
+ * @unsupported
169
+ * @implements DOM API: `Element`
170
+ */
171
+ get ariaKeyShortcuts(): string | null;
172
+ /**
173
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
174
+ *
175
+ * @deprecated
176
+ * @unsupported
177
+ * @implements DOM API: `Element`
178
+ */
179
+ get ariaLabel(): string | null;
180
+ /**
181
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
182
+ *
183
+ * @deprecated
184
+ * @unsupported
185
+ * @implements DOM API: `Element`
186
+ */
187
+ get ariaLevel(): string | null;
188
+ /**
189
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
190
+ *
191
+ * @deprecated
192
+ * @unsupported
193
+ * @implements DOM API: `Element`
194
+ */
195
+ get ariaLive(): string | null;
196
+ /**
197
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
198
+ *
199
+ * @deprecated
200
+ * @unsupported
201
+ * @implements DOM API: `Element`
202
+ */
203
+ get ariaModal(): string | null;
204
+ /**
205
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
206
+ *
207
+ * @deprecated
208
+ * @unsupported
209
+ * @implements DOM API: `Element`
210
+ */
211
+ get ariaMultiLine(): string | null;
212
+ /**
213
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
214
+ *
215
+ * @deprecated
216
+ * @unsupported
217
+ * @implements DOM API: `Element`
218
+ */
219
+ get ariaMultiSelectable(): string | null;
220
+ /**
221
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
222
+ *
223
+ * @deprecated
224
+ * @unsupported
225
+ * @implements DOM API: `Element`
226
+ */
227
+ get ariaOrientation(): string | null;
228
+ /**
229
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
230
+ *
231
+ * @deprecated
232
+ * @unsupported
233
+ * @implements DOM API: `Element`
234
+ */
235
+ get ariaPlaceholder(): string | null;
236
+ /**
237
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
238
+ *
239
+ * @deprecated
240
+ * @unsupported
241
+ * @implements DOM API: `Element`
242
+ */
243
+ get ariaPosInSet(): string | null;
244
+ /**
245
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
246
+ *
247
+ * @deprecated
248
+ * @unsupported
249
+ * @implements DOM API: `Element`
250
+ */
251
+ get ariaPressed(): string | null;
252
+ /**
253
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
254
+ *
255
+ * @deprecated
256
+ * @unsupported
257
+ * @implements DOM API: `Element`
258
+ */
259
+ get ariaReadOnly(): string | null;
260
+ /**
261
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
262
+ *
263
+ * @deprecated
264
+ * @unsupported
265
+ * @implements DOM API: `Element`
266
+ */
267
+ get ariaRequired(): string | null;
268
+ /**
269
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
270
+ *
271
+ * @deprecated
272
+ * @unsupported
273
+ * @implements DOM API: `Element`
274
+ */
275
+ get ariaRoleDescription(): string | null;
276
+ /**
277
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
278
+ *
279
+ * @deprecated
280
+ * @unsupported
281
+ * @implements DOM API: `Element`
282
+ */
283
+ get ariaRowCount(): string | null;
284
+ /**
285
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
286
+ *
287
+ * @deprecated
288
+ * @unsupported
289
+ * @implements DOM API: `Element`
290
+ */
291
+ get ariaRowIndex(): string | null;
292
+ /**
293
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
294
+ *
295
+ * @deprecated
296
+ * @unsupported
297
+ * @implements DOM API: `Element`
298
+ */
299
+ get ariaRowIndexText(): string | null;
300
+ /**
301
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
302
+ *
303
+ * @deprecated
304
+ * @unsupported
305
+ * @implements DOM API: `Element`
306
+ */
307
+ get ariaRowSpan(): string | null;
308
+ /**
309
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
310
+ *
311
+ * @deprecated
312
+ * @unsupported
313
+ * @implements DOM API: `Element`
314
+ */
315
+ get ariaSelected(): string | null;
316
+ /**
317
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
318
+ *
319
+ * @deprecated
320
+ * @unsupported
321
+ * @implements DOM API: `Element`
322
+ */
323
+ get ariaSetSize(): string | null;
324
+ /**
325
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
326
+ *
327
+ * @deprecated
328
+ * @unsupported
329
+ * @implements DOM API: `Element`
330
+ */
331
+ get ariaSort(): string | null;
332
+ /**
333
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
334
+ *
335
+ * @deprecated
336
+ * @unsupported
337
+ * @implements DOM API: `Element`
338
+ */
339
+ get ariaValueMax(): string | null;
340
+ /**
341
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
342
+ *
343
+ * @deprecated
344
+ * @unsupported
345
+ * @implements DOM API: `Element`
346
+ */
347
+ get ariaValueMin(): string | null;
348
+ /**
349
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
350
+ *
351
+ * @deprecated
352
+ * @unsupported
353
+ * @implements DOM API: `Element`
354
+ */
355
+ get ariaValueNow(): string | null;
356
+ /**
357
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
358
+ *
359
+ * @deprecated
360
+ * @unsupported
361
+ * @implements DOM API: `Element`
362
+ */
363
+ get ariaValueText(): string | null;
364
+ /**
365
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
366
+ *
367
+ * @unsupported
368
+ * @implements DOM API: `Element`
369
+ * @see https://dom.spec.whatwg.org/#dom-slotable-assignedslot
370
+ */
371
+ get assignedSlot(): HTMLSlotElement | null;
372
+ get attributeStyleMap(): StylePropertyMap;
373
+ /**
374
+ * @implements DOM API: `Element`
375
+ * @see https://dom.spec.whatwg.org/#dom-element-attributes
376
+ */
377
+ get attributes(): MLNamedNodeMap<T, O>;
378
+ /**
379
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
380
+ *
381
+ * @deprecated
382
+ * @unsupported
383
+ * @implements DOM API: `Element`
384
+ */
385
+ get autocapitalize(): string;
386
+ /**
387
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
388
+ *
389
+ * @deprecated
390
+ * @unsupported
391
+ * @implements DOM API: `Element`
392
+ */
393
+ get autofocus(): boolean;
394
+ /**
395
+ * @implements DOM API: `Element`
396
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-classlist%E2%91%A0
397
+ */
398
+ get classList(): MLDomTokenList;
399
+ /**
400
+ * @implements DOM API: `Element`
401
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-classname%E2%91%A0
402
+ */
403
+ get className(): string;
404
+ /**
405
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
406
+ *
407
+ * @unsupported
408
+ * @implements DOM API: `Element`
409
+ * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-clientheight-1
410
+ */
411
+ get clientHeight(): number;
412
+ /**
413
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
414
+ *
415
+ * @unsupported
416
+ * @implements DOM API: `Element`
417
+ * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-clientleft-1
418
+ */
419
+ get clientLeft(): number;
420
+ /**
421
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
422
+ *
423
+ * @unsupported
424
+ * @implements DOM API: `Element`
425
+ * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-clienttop-1
426
+ */
427
+ get clientTop(): number;
428
+ /**
429
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
430
+ *
431
+ * @unsupported
432
+ * @implements DOM API: `Element`
433
+ * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-clientwidth-1
434
+ */
435
+ get clientWidth(): number;
436
+ /**
437
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
438
+ *
439
+ * @deprecated
440
+ * @unsupported
441
+ * @implements DOM API: `Element`
442
+ */
443
+ get contentEditable(): string;
444
+ /**
445
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
446
+ *
447
+ * @deprecated
448
+ * @unsupported
449
+ * @implements DOM API: `Element`
450
+ */
451
+ get dataset(): DOMStringMap;
452
+ /**
453
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
454
+ *
455
+ * @deprecated
456
+ * @unsupported
457
+ * @implements DOM API: `Element`
458
+ */
459
+ get dir(): string;
460
+ /**
461
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
462
+ *
463
+ * @deprecated
464
+ * @unsupported
465
+ * @implements DOM API: `Element`
466
+ */
467
+ get draggable(): boolean;
468
+ /**
469
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
470
+ *
471
+ * @deprecated
472
+ * @unsupported
473
+ * @implements DOM API: `Element`
474
+ */
475
+ get enterKeyHint(): string;
476
+ /**
477
+ * @implements `@markuplint/ml-core` API: `MLElement`
478
+ */
479
+ get fixedNodeName(): string;
480
+ get hasSpreadAttr(): boolean;
481
+ /**
482
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
483
+ *
484
+ * @deprecated
485
+ * @unsupported
486
+ * @implements DOM API: `Element`
487
+ */
488
+ get hidden(): boolean;
489
+ /**
490
+ * @implements DOM API: `Element`
491
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-id%E2%91%A0
492
+ */
493
+ get id(): string;
494
+ /**
495
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
496
+ *
497
+ * @deprecated
498
+ * @unsupported
499
+ * @implements DOM API: `Element`
500
+ * @see https://html.spec.whatwg.org/multipage/interaction.html#dom-inert
501
+ */
502
+ get inert(): boolean;
503
+ /**
504
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
505
+ *
506
+ * @unsupported
507
+ * @implements DOM API: `Element`
508
+ * @see https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
509
+ */
510
+ get innerHTML(): string;
511
+ /**
512
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
513
+ *
514
+ * @deprecated
515
+ * @unsupported
516
+ * @implements DOM API: `Element`
517
+ */
518
+ get innerText(): string;
519
+ /**
520
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
521
+ *
522
+ * @deprecated
523
+ * @unsupported
524
+ * @implements DOM API: `Element`
525
+ */
526
+ get inputMode(): string;
527
+ /**
528
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
529
+ *
530
+ * @deprecated
531
+ * @unsupported
532
+ * @implements DOM API: `Element`
533
+ */
534
+ get isContentEditable(): boolean;
535
+ /**
536
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
537
+ *
538
+ * @deprecated
539
+ * @unsupported
540
+ * @implements DOM API: `Element`
541
+ */
542
+ get lang(): string;
543
+ /**
544
+ * Returns a lowercase name if it is an HTML element.
545
+ *
546
+ * ```html
547
+ * <div> => "div"
548
+ * <DIV> => "div"
549
+ * <svg> => "svg"
550
+ * <foreignObject> => "foreignObject"
551
+ * <x-foo> => "x-foo"
552
+ * <X-FOO> => "x-foo"
553
+ * ```
554
+ *
555
+ * @implements DOM API: `Element`
556
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-localname%E2%91%A0
557
+ */
558
+ get localName(): string;
559
+ /**
560
+ * The element immediately following the specified one in its parent's children list.
561
+ *
562
+ * @readonly
563
+ * @implements DOM API: `Element`
564
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-nondocumenttypechildnode-nextelementsibling%E2%91%A1
565
+ */
566
+ get nextElementSibling(): MLElement<T, O> | null;
567
+ /**
568
+ * Returns a string appropriate for the type of node as `Element`
569
+ *
570
+ * @see https://dom.spec.whatwg.org/#ref-for-element%E2%91%A2%E2%93%AA
571
+ */
572
+ get nodeName(): string;
573
+ /**
574
+ * Returns a number appropriate for the type of `Element`
575
+ */
576
+ get nodeType(): ElementNodeType;
577
+ /**
578
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
579
+ *
580
+ * @deprecated
581
+ * @unsupported
582
+ * @implements DOM API: `Element`
583
+ */
584
+ get nonce(): string | undefined;
585
+ /**
586
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
587
+ *
588
+ * @deprecated
589
+ * @unsupported
590
+ * @implements DOM API: `Element`
591
+ */
592
+ get offsetHeight(): number;
593
+ /**
594
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
595
+ *
596
+ * @deprecated
597
+ * @unsupported
598
+ * @implements DOM API: `Element`
599
+ */
600
+ get offsetLeft(): number;
601
+ /**
602
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
603
+ *
604
+ * @deprecated
605
+ * @unsupported
606
+ * @implements DOM API: `Element`
607
+ */
608
+ get offsetParent(): Element | null;
609
+ /**
610
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
611
+ *
612
+ * @deprecated
613
+ * @unsupported
614
+ * @implements DOM API: `Element`
615
+ */
616
+ get offsetTop(): number;
617
+ /**
618
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
619
+ *
620
+ * @deprecated
621
+ * @unsupported
622
+ * @implements DOM API: `Element`
623
+ */
624
+ get offsetWidth(): number;
625
+ /**
626
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
627
+ *
628
+ * @deprecated
629
+ * @unsupported
630
+ * @implements DOM API: `Element`
631
+ */
632
+ get onabort(): ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
633
+ /**
634
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
635
+ *
636
+ * @deprecated
637
+ * @unsupported
638
+ * @implements DOM API: `Element`
639
+ */
640
+ get onanimationcancel(): ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
641
+ /**
642
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
643
+ *
644
+ * @deprecated
645
+ * @unsupported
646
+ * @implements DOM API: `Element`
647
+ */
648
+ get onanimationend(): ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
649
+ /**
650
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
651
+ *
652
+ * @deprecated
653
+ * @unsupported
654
+ * @implements DOM API: `Element`
655
+ */
656
+ get onanimationiteration(): ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
657
+ /**
658
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
659
+ *
660
+ * @deprecated
661
+ * @unsupported
662
+ * @implements DOM API: `Element`
663
+ */
664
+ get onanimationstart(): ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
665
+ /**
666
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
667
+ *
668
+ * @deprecated
669
+ * @unsupported
670
+ * @implements DOM API: `Element`
671
+ */
672
+ get onauxclick(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
673
+ /**
674
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
675
+ *
676
+ * @deprecated
677
+ * @unsupported
678
+ * @implements DOM API: `Element`
679
+ */
680
+ get onbeforeinput(): ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
681
+ /**
682
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
683
+ *
684
+ * @deprecated
685
+ * @unsupported
686
+ * @implements DOM API: `Element`
687
+ */
688
+ get onblur(): ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
689
+ /**
690
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
691
+ *
692
+ * @deprecated
693
+ * @unsupported
694
+ * @implements DOM API: `Element`
695
+ */
696
+ get oncancel(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
697
+ /**
698
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
699
+ *
700
+ * @deprecated
701
+ * @unsupported
702
+ * @implements DOM API: `Element`
703
+ */
704
+ get oncanplay(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
705
+ /**
706
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
707
+ *
708
+ * @deprecated
709
+ * @unsupported
710
+ * @implements DOM API: `Element`
711
+ */
712
+ get oncanplaythrough(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
713
+ /**
714
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
715
+ *
716
+ * @deprecated
717
+ * @unsupported
718
+ * @implements DOM API: `Element`
719
+ */
720
+ get onchange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
721
+ /**
722
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
723
+ *
724
+ * @deprecated
725
+ * @unsupported
726
+ * @implements DOM API: `Element`
727
+ */
728
+ get onclick(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
729
+ /**
730
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
731
+ *
732
+ * @deprecated
733
+ * @unsupported
734
+ * @implements DOM API: `Element`
735
+ */
736
+ get onclose(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
737
+ /**
738
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
739
+ *
740
+ * @deprecated
741
+ * @unsupported
742
+ * @implements DOM API: `Element`
743
+ */
744
+ get oncontextmenu(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
745
+ /**
746
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
747
+ *
748
+ * @deprecated
749
+ * @unsupported
750
+ * @implements DOM API: `Element`
751
+ */
752
+ get oncopy(): ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
753
+ /**
754
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
755
+ *
756
+ * @deprecated
757
+ * @unsupported
758
+ * @implements DOM API: `Element`
759
+ */
760
+ get oncuechange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
761
+ /**
762
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
763
+ *
764
+ * @deprecated
765
+ * @unsupported
766
+ * @implements DOM API: `Element`
767
+ */
768
+ get oncut(): ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
769
+ /**
770
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
771
+ *
772
+ * @deprecated
773
+ * @unsupported
774
+ * @implements DOM API: `Element`
775
+ */
776
+ get ondblclick(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
777
+ /**
778
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
779
+ *
780
+ * @deprecated
781
+ * @unsupported
782
+ * @implements DOM API: `Element`
783
+ */
784
+ get ondrag(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
785
+ /**
786
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
787
+ *
788
+ * @deprecated
789
+ * @unsupported
790
+ * @implements DOM API: `Element`
791
+ */
792
+ get ondragend(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
793
+ /**
794
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
795
+ *
796
+ * @deprecated
797
+ * @unsupported
798
+ * @implements DOM API: `Element`
799
+ */
800
+ get ondragenter(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
801
+ /**
802
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
803
+ *
804
+ * @deprecated
805
+ * @unsupported
806
+ * @implements DOM API: `Element`
807
+ */
808
+ get ondragleave(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
809
+ /**
810
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
811
+ *
812
+ * @deprecated
813
+ * @unsupported
814
+ * @implements DOM API: `Element`
815
+ */
816
+ get ondragover(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
817
+ /**
818
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
819
+ *
820
+ * @deprecated
821
+ * @unsupported
822
+ * @implements DOM API: `Element`
823
+ */
824
+ get ondragstart(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
825
+ /**
826
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
827
+ *
828
+ * @deprecated
829
+ * @unsupported
830
+ * @implements DOM API: `Element`
831
+ */
832
+ get ondrop(): ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
833
+ /**
834
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
835
+ *
836
+ * @deprecated
837
+ * @unsupported
838
+ * @implements DOM API: `Element`
839
+ */
840
+ get ondurationchange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
841
+ /**
842
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
843
+ *
844
+ * @deprecated
845
+ * @unsupported
846
+ * @implements DOM API: `Element`
847
+ */
848
+ get onemptied(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
849
+ /**
850
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
851
+ *
852
+ * @deprecated
853
+ * @unsupported
854
+ * @implements DOM API: `Element`
855
+ */
856
+ get onended(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
857
+ /**
858
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
859
+ *
860
+ * @deprecated
861
+ * @unsupported
862
+ * @implements DOM API: `Element`
863
+ */
864
+ get onerror(): OnErrorEventHandler;
865
+ /**
866
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
867
+ *
868
+ * @deprecated
869
+ * @unsupported
870
+ * @implements DOM API: `Element`
871
+ */
872
+ get onfocus(): ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
873
+ /**
874
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
875
+ *
876
+ * @deprecated
877
+ * @unsupported
878
+ * @implements DOM API: `Element`
879
+ */
880
+ get onformdata(): ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
881
+ /**
882
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
883
+ *
884
+ * @deprecated
885
+ * @unsupported
886
+ * @implements DOM API: `Element`
887
+ */
888
+ get onfullscreenchange(): ((this: Element, ev: Event) => any) | null;
889
+ /**
890
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
891
+ *
892
+ * @deprecated
893
+ * @unsupported
894
+ * @implements DOM API: `Element`
895
+ */
896
+ get onfullscreenerror(): ((this: Element, ev: Event) => any) | null;
897
+ /**
898
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
899
+ *
900
+ * @deprecated
901
+ * @unsupported
902
+ * @implements DOM API: `Element`
903
+ */
904
+ get ongotpointercapture(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
905
+ /**
906
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
907
+ *
908
+ * @deprecated
909
+ * @unsupported
910
+ * @implements DOM API: `Element`
911
+ */
912
+ get oninput(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
913
+ /**
914
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
915
+ *
916
+ * @deprecated
917
+ * @unsupported
918
+ * @implements DOM API: `Element`
919
+ */
920
+ get oninvalid(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
921
+ /**
922
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
923
+ *
924
+ * @deprecated
925
+ * @unsupported
926
+ * @implements DOM API: `Element`
927
+ */
928
+ get onkeydown(): ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
929
+ /**
930
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
931
+ *
932
+ * @deprecated
933
+ * @unsupported
934
+ * @implements DOM API: `Element`
935
+ */
936
+ get onkeypress(): ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
937
+ /**
938
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
939
+ *
940
+ * @deprecated
941
+ * @unsupported
942
+ * @implements DOM API: `Element`
943
+ */
944
+ get onkeyup(): ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
945
+ /**
946
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
947
+ *
948
+ * @deprecated
949
+ * @unsupported
950
+ * @implements DOM API: `Element`
951
+ */
952
+ get onload(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
953
+ /**
954
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
955
+ *
956
+ * @deprecated
957
+ * @unsupported
958
+ * @implements DOM API: `Element`
959
+ */
960
+ get onloadeddata(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
961
+ /**
962
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
963
+ *
964
+ * @deprecated
965
+ * @unsupported
966
+ * @implements DOM API: `Element`
967
+ */
968
+ get onloadedmetadata(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
969
+ /**
970
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
971
+ *
972
+ * @deprecated
973
+ * @unsupported
974
+ * @implements DOM API: `Element`
975
+ */
976
+ get onloadstart(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
977
+ /**
978
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
979
+ *
980
+ * @deprecated
981
+ * @unsupported
982
+ * @implements DOM API: `Element`
983
+ */
984
+ get onlostpointercapture(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
985
+ /**
986
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
987
+ *
988
+ * @deprecated
989
+ * @unsupported
990
+ * @implements DOM API: `Element`
991
+ */
992
+ get onmousedown(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
993
+ /**
994
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
995
+ *
996
+ * @deprecated
997
+ * @unsupported
998
+ * @implements DOM API: `Element`
999
+ */
1000
+ get onmouseenter(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1001
+ /**
1002
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1003
+ *
1004
+ * @deprecated
1005
+ * @unsupported
1006
+ * @implements DOM API: `Element`
1007
+ */
1008
+ get onmouseleave(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1009
+ /**
1010
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1011
+ *
1012
+ * @deprecated
1013
+ * @unsupported
1014
+ * @implements DOM API: `Element`
1015
+ */
1016
+ get onmousemove(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1017
+ /**
1018
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1019
+ *
1020
+ * @deprecated
1021
+ * @unsupported
1022
+ * @implements DOM API: `Element`
1023
+ */
1024
+ get onmouseout(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1025
+ /**
1026
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1027
+ *
1028
+ * @deprecated
1029
+ * @unsupported
1030
+ * @implements DOM API: `Element`
1031
+ */
1032
+ get onmouseover(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1033
+ /**
1034
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1035
+ *
1036
+ * @deprecated
1037
+ * @unsupported
1038
+ * @implements DOM API: `Element`
1039
+ */
1040
+ get onmouseup(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1041
+ /**
1042
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1043
+ *
1044
+ * @deprecated
1045
+ * @unsupported
1046
+ * @implements DOM API: `Element`
1047
+ */
1048
+ get onpaste(): ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
1049
+ /**
1050
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1051
+ *
1052
+ * @deprecated
1053
+ * @unsupported
1054
+ * @implements DOM API: `Element`
1055
+ */
1056
+ get onpause(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1057
+ /**
1058
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1059
+ *
1060
+ * @deprecated
1061
+ * @unsupported
1062
+ * @implements DOM API: `Element`
1063
+ */
1064
+ get onplay(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1065
+ /**
1066
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1067
+ *
1068
+ * @deprecated
1069
+ * @unsupported
1070
+ * @implements DOM API: `Element`
1071
+ */
1072
+ get onplaying(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1073
+ /**
1074
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1075
+ *
1076
+ * @deprecated
1077
+ * @unsupported
1078
+ * @implements DOM API: `Element`
1079
+ */
1080
+ get onpointercancel(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1081
+ /**
1082
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1083
+ *
1084
+ * @deprecated
1085
+ * @unsupported
1086
+ * @implements DOM API: `Element`
1087
+ */
1088
+ get onpointerdown(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1089
+ /**
1090
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1091
+ *
1092
+ * @deprecated
1093
+ * @unsupported
1094
+ * @implements DOM API: `Element`
1095
+ */
1096
+ get onpointerenter(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1097
+ /**
1098
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1099
+ *
1100
+ * @deprecated
1101
+ * @unsupported
1102
+ * @implements DOM API: `Element`
1103
+ */
1104
+ get onpointerleave(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1105
+ /**
1106
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1107
+ *
1108
+ * @deprecated
1109
+ * @unsupported
1110
+ * @implements DOM API: `Element`
1111
+ */
1112
+ get onpointermove(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1113
+ /**
1114
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1115
+ *
1116
+ * @deprecated
1117
+ * @unsupported
1118
+ * @implements DOM API: `Element`
1119
+ */
1120
+ get onpointerout(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1121
+ /**
1122
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1123
+ *
1124
+ * @deprecated
1125
+ * @unsupported
1126
+ * @implements DOM API: `Element`
1127
+ */
1128
+ get onpointerover(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1129
+ /**
1130
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1131
+ *
1132
+ * @deprecated
1133
+ * @unsupported
1134
+ * @implements DOM API: `Element`
1135
+ */
1136
+ get onpointerup(): ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1137
+ /**
1138
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1139
+ *
1140
+ * @deprecated
1141
+ * @unsupported
1142
+ * @implements DOM API: `Element`
1143
+ */
1144
+ get onprogress(): ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
1145
+ /**
1146
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1147
+ *
1148
+ * @deprecated
1149
+ * @unsupported
1150
+ * @implements DOM API: `Element`
1151
+ */
1152
+ get onratechange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1153
+ /**
1154
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1155
+ *
1156
+ * @deprecated
1157
+ * @unsupported
1158
+ * @implements DOM API: `Element`
1159
+ */
1160
+ get onreset(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1161
+ /**
1162
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1163
+ *
1164
+ * @deprecated
1165
+ * @unsupported
1166
+ * @implements DOM API: `Element`
1167
+ */
1168
+ get onresize(): ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
1169
+ /**
1170
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1171
+ *
1172
+ * @deprecated
1173
+ * @unsupported
1174
+ * @implements DOM API: `Element`
1175
+ */
1176
+ get onscroll(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1177
+ get onscrollend(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1178
+ /**
1179
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1180
+ *
1181
+ * @deprecated
1182
+ * @unsupported
1183
+ * @implements DOM API: `Element`
1184
+ */
1185
+ get onsecuritypolicyviolation(): ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
1186
+ /**
1187
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1188
+ *
1189
+ * @deprecated
1190
+ * @unsupported
1191
+ * @implements DOM API: `Element`
1192
+ */
1193
+ get onseeked(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1194
+ /**
1195
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1196
+ *
1197
+ * @deprecated
1198
+ * @unsupported
1199
+ * @implements DOM API: `Element`
1200
+ */
1201
+ get onseeking(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1202
+ /**
1203
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1204
+ *
1205
+ * @deprecated
1206
+ * @unsupported
1207
+ * @implements DOM API: `Element`
1208
+ */
1209
+ get onselect(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1210
+ /**
1211
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1212
+ *
1213
+ * @deprecated
1214
+ * @unsupported
1215
+ * @implements DOM API: `Element`
1216
+ */
1217
+ get onselectionchange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1218
+ /**
1219
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1220
+ *
1221
+ * @deprecated
1222
+ * @unsupported
1223
+ * @implements DOM API: `Element`
1224
+ */
1225
+ get onselectstart(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1226
+ /**
1227
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1228
+ *
1229
+ * @deprecated
1230
+ * @unsupported
1231
+ * @implements DOM API: `Element`
1232
+ */
1233
+ get onslotchange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1234
+ /**
1235
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1236
+ *
1237
+ * @deprecated
1238
+ * @unsupported
1239
+ * @implements DOM API: `Element`
1240
+ */
1241
+ get onstalled(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1242
+ /**
1243
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1244
+ *
1245
+ * @deprecated
1246
+ * @unsupported
1247
+ * @implements DOM API: `Element`
1248
+ */
1249
+ get onsubmit(): ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
1250
+ /**
1251
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1252
+ *
1253
+ * @deprecated
1254
+ * @unsupported
1255
+ * @implements DOM API: `Element`
1256
+ */
1257
+ get onsuspend(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1258
+ /**
1259
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1260
+ *
1261
+ * @deprecated
1262
+ * @unsupported
1263
+ * @implements DOM API: `Element`
1264
+ */
1265
+ get ontimeupdate(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1266
+ /**
1267
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1268
+ *
1269
+ * @deprecated
1270
+ * @unsupported
1271
+ * @implements DOM API: `Element`
1272
+ */
1273
+ get ontoggle(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1274
+ /**
1275
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1276
+ *
1277
+ * @deprecated
1278
+ * @unsupported
1279
+ * @implements DOM API: `Element`
1280
+ */
1281
+ get ontransitioncancel(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1282
+ /**
1283
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1284
+ *
1285
+ * @deprecated
1286
+ * @unsupported
1287
+ * @implements DOM API: `Element`
1288
+ */
1289
+ get ontransitionend(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1290
+ /**
1291
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1292
+ *
1293
+ * @deprecated
1294
+ * @unsupported
1295
+ * @implements DOM API: `Element`
1296
+ */
1297
+ get ontransitionrun(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1298
+ /**
1299
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1300
+ *
1301
+ * @deprecated
1302
+ * @unsupported
1303
+ * @implements DOM API: `Element`
1304
+ */
1305
+ get ontransitionstart(): ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1306
+ /**
1307
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1308
+ *
1309
+ * @deprecated
1310
+ * @unsupported
1311
+ * @implements DOM API: `Element`
1312
+ */
1313
+ get onvolumechange(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1314
+ /**
1315
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1316
+ *
1317
+ * @deprecated
1318
+ * @unsupported
1319
+ * @implements DOM API: `Element`
1320
+ */
1321
+ get onwaiting(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1322
+ /**
1323
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1324
+ *
1325
+ * @deprecated
1326
+ * @unsupported
1327
+ * @implements DOM API: `Element`
1328
+ */
1329
+ get onwebkitanimationend(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1330
+ /**
1331
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1332
+ *
1333
+ * @deprecated
1334
+ * @unsupported
1335
+ * @implements DOM API: `Element`
1336
+ */
1337
+ get onwebkitanimationiteration(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1338
+ /**
1339
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1340
+ *
1341
+ * @deprecated
1342
+ * @unsupported
1343
+ * @implements DOM API: `Element`
1344
+ */
1345
+ get onwebkitanimationstart(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1346
+ /**
1347
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1348
+ *
1349
+ * @deprecated
1350
+ * @unsupported
1351
+ * @implements DOM API: `Element`
1352
+ */
1353
+ get onwebkittransitionend(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
1354
+ /**
1355
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1356
+ *
1357
+ * @deprecated
1358
+ * @unsupported
1359
+ * @implements DOM API: `Element`
1360
+ */
1361
+ get onwheel(): ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1362
+ /**
1363
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1364
+ *
1365
+ * @unsupported
1366
+ * @implements DOM API: `Element`
1367
+ * @see https://w3c.github.io/DOM-Parsing/#dom-element-outerhtml
1368
+ */
1369
+ get outerHTML(): string;
1370
+ /**
1371
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1372
+ *
1373
+ * @deprecated
1374
+ * @unsupported
1375
+ * @implements DOM API: `Element`
1376
+ */
1377
+ get outerText(): string;
1378
+ /**
1379
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1380
+ *
1381
+ * @unsupported
1382
+ * @implements DOM API: `Element`
1383
+ * @see https://www.w3.org/TR/css-shadow-parts-1/#idl
1384
+ */
1385
+ get part(): DOMTokenList;
1386
+ /**
1387
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1388
+ *
1389
+ * @unsupported
1390
+ * @implements DOM API: `Element`
1391
+ * @see https://html.spec.whatwg.org/multipage/popover.html#dom-popover
1392
+ */
1393
+ get popover(): string | null;
1394
+ /**
1395
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1396
+ *
1397
+ * @unsupported
1398
+ * @implements DOM API: `Element`
1399
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-prefix%E2%91%A0
1400
+ */
1401
+ get prefix(): string | null;
1402
+ /**
1403
+ * The element immediately prior the specified one in its parent's children list.
1404
+ *
1405
+ * @readonly
1406
+ * @implements DOM API: `Element`
1407
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-nondocumenttypechildnode-previouselementsibling%E2%91%A1
1408
+ */
1409
+ get previousElementSibling(): MLElement<T, O> | null;
1410
+ /**
1411
+ * @implements `@markuplint/ml-core` API: `MLElement`
1412
+ */
1413
+ get rawName(): string;
1414
+ /**
1415
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1416
+ *
1417
+ * @unsupported
1418
+ * @implements DOM API: `Element`
1419
+ * @see https://w3c.github.io/aria/#ARIAMixin
1420
+ */
1421
+ get role(): string;
1422
+ /**
1423
+ * @implements `@markuplint/ml-core` API: `MLNode`
1424
+ */
1425
+ get rule(): RuleInfo<T, O>;
1426
+ /**
1427
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1428
+ *
1429
+ * @unsupported
1430
+ * @implements DOM API: `Element`
1431
+ * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-scrollheight-1
1432
+ */
1433
+ get scrollHeight(): number;
1434
+ /**
1435
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1436
+ *
1437
+ * @unsupported
1438
+ * @implements DOM API: `Element`
1439
+ * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-scrollleft-1
1440
+ */
1441
+ get scrollLeft(): number;
1442
+ /**
1443
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1444
+ *
1445
+ * @unsupported
1446
+ * @implements DOM API: `Element`
1447
+ * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-scrolltop-1
1448
+ */
1449
+ get scrollTop(): number;
1450
+ /**
1451
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1452
+ *
1453
+ * @unsupported
1454
+ * @implements DOM API: `Element`
1455
+ * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-scrollwidth-1
1456
+ */
1457
+ get scrollWidth(): number;
1458
+ /**
1459
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1460
+ *
1461
+ * @unsupported
1462
+ * @implements DOM API: `Element`
1463
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-shadowroot%E2%91%A0
1464
+ */
1465
+ get shadowRoot(): ShadowRoot | null;
1466
+ /**
1467
+ * @implements DOM API: `Element`
1468
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-slot%E2%91%A0
1469
+ */
1470
+ get slot(): string;
1471
+ /**
1472
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1473
+ *
1474
+ * @deprecated
1475
+ * @unsupported
1476
+ * @implements DOM API: `Element`
1477
+ */
1478
+ get spellcheck(): boolean;
1479
+ /**
1480
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1481
+ *
1482
+ * @deprecated
1483
+ * @unsupported
1484
+ * @implements DOM API: `Element`
1485
+ */
1486
+ get style(): CSSStyleDeclaration;
1487
+ /**
1488
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1489
+ *
1490
+ * @deprecated
1491
+ * @unsupported
1492
+ * @implements DOM API: `Element`
1493
+ */
1494
+ get tabIndex(): number;
1495
+ /**
1496
+ * Returns the HTML-uppercased qualified name.
1497
+ *
1498
+ * If this is in the HTML namespace and its node document is an HTML document, then set qualifiedName to qualifiedName in ASCII uppercase.
1499
+ *
1500
+ * (In markuplint evaluation, the node document always is an HTML document.)
1501
+ *
1502
+ * ```html
1503
+ * <div> => "DIV"
1504
+ * <svg> => "svg"
1505
+ * <x-foo> => "X-FOO"
1506
+ * ```
1507
+ *
1508
+ * @implements DOM API: `Element`
1509
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-tagname%E2%91%A0
1510
+ */
1511
+ get tagName(): string;
1512
+ get textContent(): string;
1513
+ /**
1514
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1515
+ *
1516
+ * @deprecated
1517
+ * @unsupported
1518
+ * @implements DOM API: `Element`
1519
+ */
1520
+ get title(): string;
1521
+ /**
1522
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1523
+ *
1524
+ * @deprecated
1525
+ * @unsupported
1526
+ * @implements DOM API: `Element`
1527
+ */
1528
+ get translate(): boolean;
1529
+ /**
1530
+ * @implements DOM API: `Element`
1531
+ */
1532
+ after(...nodes: (string | MLElement<any, any>)[]): void;
1533
+ /**
1534
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1535
+ *
1536
+ * @unsupported
1537
+ * @implements DOM API: `Element`
1538
+ * @see https://www.w3.org/TR/web-animations-1/#dom-animatable-animate
1539
+ */
1540
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
1541
+ /**
1542
+ * @see https://html.spec.whatwg.org/multipage/scripting.html#dom-slot-assignednodes
1543
+ */
1544
+ assignedNodes(): never[];
1545
+ /**
1546
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1547
+ *
1548
+ * @deprecated
1549
+ * @unsupported
1550
+ * @implements DOM API: `Element`
1551
+ */
1552
+ attachInternals(): ElementInternals;
1553
+ /**
1554
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1555
+ *
1556
+ * @unsupported
1557
+ * @implements DOM API: `Element`
1558
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-attachshadow%E2%91%A0
1559
+ */
1560
+ attachShadow(init: ShadowRootInit): ShadowRoot;
1561
+ /**
1562
+ * @implements DOM API: `Element`
1563
+ */
1564
+ before(...nodes: (string | MLElement<any, any>)[]): void;
1565
+ /**
1566
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1567
+ *
1568
+ * @deprecated
1569
+ * @unsupported
1570
+ * @implements DOM API: `Element`
1571
+ */
1572
+ blur(): void;
1573
+ /**
1574
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1575
+ *
1576
+ * @deprecated
1577
+ * @unsupported
1578
+ * @implements DOM API: `Element`
1579
+ */
1580
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
1581
+ /**
1582
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1583
+ *
1584
+ * @deprecated
1585
+ * @unsupported
1586
+ * @implements DOM API: `Element`
1587
+ */
1588
+ click(): void;
1589
+ /**
1590
+ * @implements DOM API: `Element`
1591
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-closest%E2%91%A0
1592
+ */
1593
+ closest(selectors: string): MLElement<T, O> | null;
1594
+ /**
1595
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1596
+ *
1597
+ * @unsupported
1598
+ * @implements DOM API: `Element`
1599
+ */
1600
+ computedStyleMap(): StylePropertyMapReadOnly;
1601
+ fixNodeName(name: string): void;
1602
+ /**
1603
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1604
+ *
1605
+ * @deprecated
1606
+ * @unsupported
1607
+ * @implements DOM API: `Element`
1608
+ */
1609
+ focus(options?: FocusOptions): void;
1610
+ /**
1611
+ * @implements `@markuplint/ml-core` API: `MLElement`
1612
+ */
1613
+ getAccessibleName(version: ARIAVersion): string;
1614
+ /**
1615
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1616
+ *
1617
+ * @unsupported
1618
+ * @implements DOM API: `Element`
1619
+ * @see https://www.w3.org/TR/web-animations-1/#dom-animatable-getanimations
1620
+ */
1621
+ getAnimations(options?: GetAnimationsOptions): Animation[];
1622
+ /**
1623
+ * @implements DOM API: `Element`
1624
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-getattribute%E2%91%A0
1625
+ */
1626
+ getAttribute(attrName: string): string | null;
1627
+ /**
1628
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1629
+ *
1630
+ * @unsupported
1631
+ * @implements DOM API: `Element`
1632
+ * @see https://dom.spec.whatwg.org/#dom-element-getattributenodens
1633
+ */
1634
+ getAttributeNS(namespace: string | null, localName: string): string | null;
1635
+ /**
1636
+ * @implements DOM API: `Element`
1637
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-getattributenames%E2%91%A0
1638
+ */
1639
+ getAttributeNames(): string[];
1640
+ /**
1641
+ * @implements DOM API: `Element`
1642
+ * @see https://dom.spec.whatwg.org/#dom-element-getattributenode
1643
+ */
1644
+ getAttributeNode(qualifiedName: string): MLAttr<T, O> | null;
1645
+ /**
1646
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1647
+ *
1648
+ * @unsupported
1649
+ * @implements DOM API: `Element`
1650
+ * @see https://dom.spec.whatwg.org/#dom-element-getattributenodens
1651
+ */
1652
+ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
1653
+ /**
1654
+ * @implements `@markuplint/ml-core` API: `MLElement`
1655
+ */
1656
+ getAttributePretended(attrName: string): string | null;
1657
+ /**
1658
+ * @implements `@markuplint/ml-core` API: `MLElement`
1659
+ */
1660
+ getAttributeToken(attrName: string): MLAttr<T, O>[];
1661
+ /**
1662
+ * @implements `@markuplint/ml-core` API: `MLElement`
1663
+ */
1664
+ getAttributeTokens(): readonly MLAttr<T, O>[];
1665
+ /**
1666
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1667
+ *
1668
+ * @unsupported
1669
+ * @implements DOM API: `Element`
1670
+ * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-getboundingclientrect-1
1671
+ */
1672
+ getBoundingClientRect(): DOMRect;
1673
+ getChildElementsAndTextNodeWithoutWhitespaces(): (MLElement<T, O> | MLText<T, O>)[];
1674
+ /**
1675
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1676
+ *
1677
+ * @unsupported
1678
+ * @implements DOM API: `Element`
1679
+ * @see https://www.w3.org/TR/cssom-view-1/#ref-for-dom-element-getclientrects-1
1680
+ */
1681
+ getClientRects(): DOMRectList;
1682
+ /**
1683
+ * @implements DOM API: `Element`
1684
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-getelementsbyclassname
1685
+ */
1686
+ getElementsByClassName(classNames: string): HTMLCollectionOf<MLElement<T, O>>;
1687
+ /**
1688
+ * @implements DOM API: `Element`
1689
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-getelementsbyclassname
1690
+ */
1691
+ getElementsByTagName(qualifiedName: string): ReturnType<(typeof Element)['prototype']['getElementsByTagName']>;
1692
+ /**
1693
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1694
+ *
1695
+ * @unsupported
1696
+ * @implements DOM API: `Element`
1697
+ * @see https://dom.spec.whatwg.org/#dom-element-getelementsbytagnamens
1698
+ */
1699
+ getElementsByTagNameNS(namespace: any, localName: any): any;
1700
+ /**
1701
+ * @implements `@markuplint/ml-core` API: `MLElement`
1702
+ */
1703
+ getNameLocation(): {
1704
+ offset: number;
1705
+ line: number;
1706
+ col: number;
1707
+ };
1708
+ /**
1709
+ * @implements DOM API: `Element`
1710
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-hasattribute%E2%91%A0
1711
+ */
1712
+ hasAttribute(qualifiedName: string): boolean;
1713
+ /**
1714
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1715
+ *
1716
+ * @unsupported
1717
+ * @implements DOM API: `Element`
1718
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-hasattributens%E2%91%A0
1719
+ */
1720
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
1721
+ /**
1722
+ * @implements DOM API: `Element`
1723
+ * @see https://dom.spec.whatwg.org/#dom-element-hasattributes
1724
+ */
1725
+ hasAttributes(): boolean;
1726
+ /**
1727
+ * @implements `@markuplint/ml-core` API: `MLElement`
1728
+ */
1729
+ hasMutableAttributes(): boolean;
1730
+ /**
1731
+ * This element has "Preprocessor Specific Block". In other words, Its children are potentially mutable.
1732
+ *
1733
+ * @implements `@markuplint/ml-core` API: `MLElement`
1734
+ */
1735
+ hasMutableChildren(attr?: boolean): boolean;
1736
+ /**
1737
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1738
+ *
1739
+ * @unsupported
1740
+ * @implements DOM API: `Element`
1741
+ * @see https://www.w3.org/TR/pointerevents2/#dom-element-haspointercapture
1742
+ */
1743
+ hasPointerCapture(pointerId: number): boolean;
1744
+ /**
1745
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1746
+ *
1747
+ * @unsupported
1748
+ * @implements DOM API: `Element`
1749
+ * @see https://html.spec.whatwg.org/multipage/popover.html#dom-hidepopover
1750
+ */
1751
+ hidePopover(): void;
1752
+ /**
1753
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1754
+ *
1755
+ * @unsupported
1756
+ * @implements DOM API: `Element`
1757
+ * @see https://dom.spec.whatwg.org/#dom-element-insertadjacentelement
1758
+ */
1759
+ insertAdjacentElement(where: InsertPosition, element: MLElement<T, O>): MLElement<T, O> | null;
1760
+ /**
1761
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1762
+ *
1763
+ * @unsupported
1764
+ * @implements DOM API: `Element`
1765
+ * @see https://w3c.github.io/DOM-Parsing/#widl-Element-insertAdjacentHTML-void-DOMString-position-DOMString-text
1766
+ */
1767
+ insertAdjacentHTML(position: InsertPosition, text: string): void;
1768
+ /**
1769
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1770
+ *
1771
+ * @unsupported
1772
+ * @implements DOM API: `Element`
1773
+ * @see https://dom.spec.whatwg.org/#dom-element-insertadjacenttext
1774
+ */
1775
+ insertAdjacentText(where: InsertPosition, data: string): void;
1776
+ /**
1777
+ * @implements `@markuplint/ml-core` API: `MLElement`
1778
+ */
1779
+ isDescendantByUUIDList(uuidList: readonly string[]): boolean;
1780
+ /**
1781
+ * @implements `@markuplint/ml-core` API: `MLElement`
1782
+ */
1783
+ isEmpty(): boolean;
1784
+ /**
1785
+ * @implements DOM API: `Element`
1786
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-matches%E2%91%A0
1787
+ */
1788
+ matches(selector: string): boolean;
1789
+ /**
1790
+ * Pretenders Initialization
1791
+ */
1792
+ pretending(pretenders?: readonly Pretender[]): void;
1793
+ /**
1794
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1795
+ *
1796
+ * @unsupported
1797
+ * @implements DOM API: `Element`
1798
+ * @see https://www.w3.org/TR/pointerevents2/#dom-element-releasepointercapture
1799
+ */
1800
+ releasePointerCapture(pointerId: number): void;
1801
+ /**
1802
+ * @implements DOM API: `Element`
1803
+ */
1804
+ remove(): void;
1805
+ /**
1806
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1807
+ *
1808
+ * @unsupported
1809
+ * @implements DOM API: `Element`
1810
+ * @see https://dom.spec.whatwg.org/#dom-element-removeattribute
1811
+ */
1812
+ removeAttribute(qualifiedName: string): void;
1813
+ /**
1814
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1815
+ *
1816
+ * @unsupported
1817
+ * @implements DOM API: `Element`
1818
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-removeattributens%E2%91%A0
1819
+ */
1820
+ removeAttributeNS(namespace: string | null, localName: string): void;
1821
+ /**
1822
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1823
+ *
1824
+ * @unsupported
1825
+ * @implements DOM API: `Element`
1826
+ * @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-D589198
1827
+ */
1828
+ removeAttributeNode(attr: Attr): Attr;
1829
+ /**
1830
+ * @implements DOM API: `Element`
1831
+ */
1832
+ replaceWith(...nodes: (string | MLElement<any, any>)[]): void;
1833
+ /**
1834
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1835
+ *
1836
+ * @unsupported
1837
+ * @implements DOM API: `Element`
1838
+ * @see https://fullscreen.spec.whatwg.org/#dom-element-requestfullscreen
1839
+ */
1840
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
1841
+ /**
1842
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1843
+ *
1844
+ * @unsupported
1845
+ * @implements DOM API: `Element`
1846
+ * @see https://w3c.github.io/pointerlock/#dom-element-requestpointerlock
1847
+ */
1848
+ requestPointerLock(): void;
1849
+ /**
1850
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1851
+ *
1852
+ * @unsupported
1853
+ * @implements DOM API: `Element`
1854
+ * @see https://www.w3.org/TR/cssom-view-1/#dom-element-scroll
1855
+ */
1856
+ scroll(x?: any, y?: any): void;
1857
+ /**
1858
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1859
+ *
1860
+ * @unsupported
1861
+ * @implements DOM API: `Element`
1862
+ * @see https://www.w3.org/TR/cssom-view-1/#dom-element-scrollby
1863
+ */
1864
+ scrollBy(x?: any, y?: any): void;
1865
+ /**
1866
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1867
+ *
1868
+ * @unsupported
1869
+ * @implements DOM API: `Element`
1870
+ * @see https://www.w3.org/TR/cssom-view-1/#dom-element-scrollintoview
1871
+ */
1872
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
1873
+ /**
1874
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1875
+ *
1876
+ * @unsupported
1877
+ * @implements DOM API: `Element`
1878
+ * @see https://www.w3.org/TR/cssom-view-1/#dom-element-scrollto
1879
+ */
1880
+ scrollTo(x?: any, y?: any): void;
1881
+ /**
1882
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1883
+ *
1884
+ * @unsupported
1885
+ * @implements DOM API: `Element`
1886
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-setattribute%E2%91%A0
1887
+ */
1888
+ setAttribute(qualifiedName: string, value: string): void;
1889
+ /**
1890
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1891
+ *
1892
+ * @unsupported
1893
+ * @implements DOM API: `Element`
1894
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-setattributens%E2%91%A0
1895
+ */
1896
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
1897
+ /**
1898
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1899
+ *
1900
+ * @unsupported
1901
+ * @implements DOM API: `Element`
1902
+ * @see https://dom.spec.whatwg.org/#dom-element-setattributenode
1903
+ */
1904
+ setAttributeNode(attr: Attr): Attr | null;
1905
+ /**
1906
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1907
+ *
1908
+ * @unsupported
1909
+ * @implements DOM API: `Element`
1910
+ * @see https://dom.spec.whatwg.org/#dom-element-setattributenodens
1911
+ */
1912
+ setAttributeNodeNS(attr: Attr): Attr | null;
1913
+ /**
1914
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1915
+ *
1916
+ * @unsupported
1917
+ * @implements DOM API: `Element`
1918
+ * @see https://www.w3.org/TR/pointerevents2/#idl-def-element-setpointercapture-pointerid
1919
+ */
1920
+ setPointerCapture(pointerId: number): void;
1921
+ /**
1922
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1923
+ *
1924
+ * @unsupported
1925
+ * @implements DOM API: `Element`
1926
+ * @see https://html.spec.whatwg.org/multipage/popover.html#dom-showpopover
1927
+ */
1928
+ showPopover(): void;
1929
+ /**
1930
+ * @implements `@markuplint/ml-core` API: `MLElement`
1931
+ */
1932
+ toNormalizeString(): string;
1933
+ /**
1934
+ * @implements `@markuplint/ml-core` API: `MLElement`
1935
+ */
1936
+ toString(fixed?: boolean): string;
1937
+ /**
1938
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1939
+ *
1940
+ * @unsupported
1941
+ * @implements DOM API: `Element`
1942
+ * @see https://dom.spec.whatwg.org/#ref-for-dom-element-toggleattribute%E2%91%A0
1943
+ */
1944
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
1945
+ /**
1946
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1947
+ *
1948
+ * @unsupported
1949
+ * @implements DOM API: `Element`
1950
+ * @see https://html.spec.whatwg.org/multipage/popover.html#dom-togglepopover
1951
+ */
1952
+ togglePopover(force?: boolean): void;
1953
+ /**
1954
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1955
+ *
1956
+ * @deprecated
1957
+ * @unsupported
1958
+ * @implements DOM API: `Element`
1959
+ */
1960
+ webkitMatchesSelector(selectors: string): boolean;
1955
1961
  }