@markuplint/ml-core 2.3.0 → 3.0.0-alpha.0

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