@markuplint/ml-core 2.3.3 → 3.0.0-alpha.1

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