marko 5.25.4 → 5.25.6

Sign up to get free protection for your applications and to get access to all the features.
package/tags-html.d.ts ADDED
@@ -0,0 +1,3799 @@
1
+ import * as csstype from "csstype";
2
+
3
+ /**
4
+ * Potential improvements:
5
+ * - Share properties between input interfaces
6
+ * - Add more interfaces of `Link` which restrict specific attributes based on type.
7
+ * - Isolate some event handlers to specific elements (eg media events).
8
+ * - Create more interface for individual aria roles.
9
+ */
10
+
11
+ declare global {
12
+ namespace Marko {
13
+ interface NativeTags {
14
+ a: Tag<_.Marko·Inputᐸʺaʺᐳ>;
15
+ abbr: Tag<_.Marko·Inputᐸʺabbrʺᐳ>;
16
+ address: Tag<_.Marko·Inputᐸʺaddressʺᐳ>;
17
+ area: Tag<_.Marko·Inputᐸʺareaʺᐳ>;
18
+ article: Tag<_.Marko·Inputᐸʺarticleʺᐳ>;
19
+ aside: Tag<_.Marko·Inputᐸʺasideʺᐳ>;
20
+ audio: Tag<_.Marko·Inputᐸʺaudioʺᐳ>;
21
+ b: Tag<_.Marko·Inputᐸʺbʺᐳ>;
22
+ base: Tag<_.Marko·Inputᐸʺbaseʺᐳ>;
23
+ bdi: Tag<_.Marko·Inputᐸʺbdiʺᐳ>;
24
+ bdo: Tag<_.Marko·Inputᐸʺbdoʺᐳ>;
25
+ blockquote: Tag<_.Marko·Inputᐸʺblockquoteʺᐳ>;
26
+ body: Tag<_.Marko·Inputᐸʺbodyʺᐳ>;
27
+ br: Tag<_.Marko·Inputᐸʺbrʺᐳ>;
28
+ button: Tag<_.Marko·Inputᐸʺbuttonʺᐳ>;
29
+ canvas: Tag<_.Marko·Inputᐸʺcanvasʺᐳ>;
30
+ caption: Tag<_.Marko·Inputᐸʺcaptionʺᐳ>;
31
+ cite: Tag<_.Marko·Inputᐸʺciteʺᐳ>;
32
+ code: Tag<_.Marko·Inputᐸʺcodeʺᐳ>;
33
+ col: Tag<_.Marko·Inputᐸʺcolʺᐳ>;
34
+ colgroup: Tag<_.Marko·Inputᐸʺcolgroupʺᐳ>;
35
+ data: Tag<_.Marko·Inputᐸʺdataʺᐳ>;
36
+ datalist: Tag<_.Marko·Inputᐸʺdatalistʺᐳ>;
37
+ dd: Tag<_.Marko·Inputᐸʺddʺᐳ>;
38
+ del: Tag<_.Marko·Inputᐸʺdelʺᐳ>;
39
+ details: Tag<_.Marko·Inputᐸʺdetailsʺᐳ>;
40
+ dfn: Tag<_.Marko·Inputᐸʺdfnʺᐳ>;
41
+ dialog: Tag<_.Marko·Inputᐸʺdialogʺᐳ>;
42
+ div: Tag<_.Marko·Inputᐸʺdivʺᐳ>;
43
+ dl: Tag<_.Marko·Inputᐸʺdlʺᐳ>;
44
+ dt: Tag<_.Marko·Inputᐸʺdtʺᐳ>;
45
+ em: Tag<_.Marko·Inputᐸʺemʺᐳ>;
46
+ embed: Tag<_.Marko·Inputᐸʺembedʺᐳ>;
47
+ fieldset: Tag<_.Marko·Inputᐸʺfieldsetʺᐳ>;
48
+ figcaption: Tag<_.Marko·Inputᐸʺfigcaptionʺᐳ>;
49
+ figure: Tag<_.Marko·Inputᐸʺfigureʺᐳ>;
50
+ footer: Tag<_.Marko·Inputᐸʺfooterʺᐳ>;
51
+ form: Tag<_.Marko·Inputᐸʺformʺᐳ>;
52
+ h1: Tag<_.Marko·Inputᐸʺh1ʺᐳ>;
53
+ h2: Tag<_.Marko·Inputᐸʺh2ʺᐳ>;
54
+ h3: Tag<_.Marko·Inputᐸʺh3ʺᐳ>;
55
+ h4: Tag<_.Marko·Inputᐸʺh4ʺᐳ>;
56
+ h5: Tag<_.Marko·Inputᐸʺh5ʺᐳ>;
57
+ h6: Tag<_.Marko·Inputᐸʺh6ʺᐳ>;
58
+ head: Tag<_.Marko·Inputᐸʺheadʺᐳ>;
59
+ header: Tag<_.Marko·Inputᐸʺheaderʺᐳ>;
60
+ hgroup: Tag<_.Marko·Inputᐸʺhgroupʺᐳ>;
61
+ hr: Tag<_.Marko·Inputᐸʺhrʺᐳ>;
62
+ html: Tag<_.Marko·Inputᐸʺhtmlʺᐳ>;
63
+ i: Tag<_.Marko·Inputᐸʺiʺᐳ>;
64
+ iframe: Tag<_.Marko·Inputᐸʺiframeʺᐳ>;
65
+ img: Tag<_.Marko·Inputᐸʺimgʺᐳ>;
66
+ input: Tag<_.Marko·Inputᐸʺinputʺᐳ>;
67
+ ins: Tag<_.Marko·Inputᐸʺinsʺᐳ>;
68
+ kbd: Tag<_.Marko·Inputᐸʺkbdʺᐳ>;
69
+ label: Tag<_.Marko·Inputᐸʺlabelʺᐳ>;
70
+ legend: Tag<_.Marko·Inputᐸʺlegendʺᐳ>;
71
+ li: Tag<_.Marko·Inputᐸʺliʺᐳ>;
72
+ link: Tag<_.Marko·Inputᐸʺlinkʺᐳ>;
73
+ main: Tag<_.Marko·Inputᐸʺmainʺᐳ>;
74
+ map: Tag<_.Marko·Inputᐸʺmapʺᐳ>;
75
+ mark: Tag<_.Marko·Inputᐸʺmarkʺᐳ>;
76
+ menu: Tag<_.Marko·Inputᐸʺmenuʺᐳ>;
77
+ meta: Tag<_.Marko·Inputᐸʺmetaʺᐳ>;
78
+ meter: Tag<_.Marko·Inputᐸʺmeterʺᐳ>;
79
+ nav: Tag<_.Marko·Inputᐸʺnavʺᐳ>;
80
+ noscript: Tag<_.Marko·Inputᐸʺnoscriptʺᐳ>;
81
+ object: Tag<_.Marko·Inputᐸʺobjectʺᐳ>;
82
+ ol: Tag<_.Marko·Inputᐸʺolʺᐳ>;
83
+ optgroup: Tag<_.Marko·Inputᐸʺoptgroupʺᐳ>;
84
+ option: Tag<_.Marko·Inputᐸʺoptionʺᐳ>;
85
+ output: Tag<_.Marko·Inputᐸʺoutputʺᐳ>;
86
+ p: Tag<_.Marko·Inputᐸʺpʺᐳ>;
87
+ picture: Tag<_.Marko·Inputᐸʺpictureʺᐳ>;
88
+ pre: Tag<_.Marko·Inputᐸʺpreʺᐳ>;
89
+ progress: Tag<_.Marko·Inputᐸʺprogressʺᐳ>;
90
+ q: Tag<_.Marko·Inputᐸʺqʺᐳ>;
91
+ rp: Tag<_.Marko·Inputᐸʺrpʺᐳ>;
92
+ rt: Tag<_.Marko·Inputᐸʺrtʺᐳ>;
93
+ ruby: Tag<_.Marko·Inputᐸʺrubyʺᐳ>;
94
+ s: Tag<_.Marko·Inputᐸʺsʺᐳ>;
95
+ samp: Tag<_.Marko·Inputᐸʺsampʺᐳ>;
96
+ script: Tag<_.Marko·Inputᐸʺscriptʺᐳ>;
97
+ section: Tag<_.Marko·Inputᐸʺsectionʺᐳ>;
98
+ select: Tag<_.Marko·Inputᐸʺselectʺᐳ>;
99
+ slot: Tag<_.Marko·Inputᐸʺslotʺᐳ>;
100
+ small: Tag<_.Marko·Inputᐸʺsmallʺᐳ>;
101
+ source: Tag<_.Marko·Inputᐸʺsourceʺᐳ>;
102
+ span: Tag<_.Marko·Inputᐸʺspanʺᐳ>;
103
+ strong: Tag<_.Marko·Inputᐸʺstrongʺᐳ>;
104
+ style: Tag<_.Marko·Inputᐸʺstyleʺᐳ>;
105
+ sub: Tag<_.Marko·Inputᐸʺsubʺᐳ>;
106
+ summary: Tag<_.Marko·Inputᐸʺsummaryʺᐳ>;
107
+ sup: Tag<_.Marko·Inputᐸʺsupʺᐳ>;
108
+ table: Tag<_.Marko·Inputᐸʺtableʺᐳ>;
109
+ tbody: Tag<_.Marko·Inputᐸʺtbodyʺᐳ>;
110
+ td: Tag<_.Marko·Inputᐸʺtdʺᐳ>;
111
+ template: Tag<_.Marko·Inputᐸʺtemplateʺᐳ>;
112
+ textarea: Tag<_.Marko·Inputᐸʺtextareaʺᐳ>;
113
+ tfoot: Tag<_.Marko·Inputᐸʺtfootʺᐳ>;
114
+ th: Tag<_.Marko·Inputᐸʺthʺᐳ>;
115
+ thead: Tag<_.Marko·Inputᐸʺtheadʺᐳ>;
116
+ time: Tag<_.Marko·Inputᐸʺtimeʺᐳ>;
117
+ title: Tag<_.Marko·Inputᐸʺtitleʺᐳ>;
118
+ tr: Tag<_.Marko·Inputᐸʺtrʺᐳ>;
119
+ track: Tag<_.Marko·Inputᐸʺtrackʺᐳ>;
120
+ u: Tag<_.Marko·Inputᐸʺuʺᐳ>;
121
+ ul: Tag<_.Marko·Inputᐸʺulʺᐳ>;
122
+ var: Tag<_.Marko·Inputᐸʺvarʺᐳ>;
123
+ video: Tag<_.Marko·Inputᐸʺvideoʺᐳ>;
124
+ wbr: Tag<_.Marko·Inputᐸʺwbrʺᐳ>;
125
+ }
126
+
127
+ namespace HTML {
128
+ interface A extends HTMLAttributes<HTMLAnchorElement> {
129
+ /**
130
+ * Specifies whether to download the resource, or the name of the file to download.
131
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-download
132
+ */
133
+ download?: AttrBooleanOrString;
134
+
135
+ /**
136
+ * Specifies the URL of the linked resource.
137
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-href
138
+ */
139
+ href?: AttrString;
140
+
141
+ /**
142
+ * Specifies the language of the linked resource.
143
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-hreflang
144
+ */
145
+ hreflang?: AttrString;
146
+
147
+ /**
148
+ * Specifies the intended media type for the linked resource.
149
+ * @see https://html.spec.whatwg.org/multipage/semantics.html#attr-link-media
150
+ */
151
+ media?: AttrString;
152
+
153
+ /**
154
+ * Specifies a space-separated list of URLs to send a ping request to when the link is followed.
155
+ * @see https://html.spec.whatwg.org/multipage/links.html#ping
156
+ */
157
+ ping?: AttrString;
158
+
159
+ /**
160
+ * Specifies the referrer policy for the linked resource.
161
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-referrerpolicy
162
+ */
163
+ referrerpolicy?: AttrReferrerPolicy;
164
+
165
+ /**
166
+ * Specifies the relationship between the current document and the linked resource.
167
+ * @see https://html.spec.whatwg.org/multipage/links.html#linkTypes
168
+ */
169
+ rel?:
170
+ | AttrMissing
171
+ | "alternate"
172
+ | "author"
173
+ | "bookmark"
174
+ | "external"
175
+ | "help"
176
+ | "license"
177
+ | "next"
178
+ | "nofollow"
179
+ | "noopener"
180
+ | "noreferrer"
181
+ | "opener"
182
+ | "prev"
183
+ | "search"
184
+ | "tag"
185
+ | (string & {});
186
+
187
+ /**
188
+ * Specifies the browsing context for the linked resource.
189
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-target
190
+ */
191
+ target?: AttrTarget;
192
+
193
+ /**
194
+ * Specifies the MIME type of the linked resource.
195
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-type
196
+ */
197
+ type?: AttrString;
198
+
199
+ /** @deprecated */
200
+ charset?: AttrString;
201
+
202
+ /** @deprecated */
203
+ coords?: AttrString;
204
+
205
+ /** @deprecated */
206
+ name?: AttrString;
207
+
208
+ /** @deprecated */
209
+ rev?: AttrString;
210
+
211
+ /** @deprecated */
212
+ shape?: AttrString;
213
+ }
214
+
215
+ interface Abbr extends HTMLAttributes<HTMLElement> {}
216
+ interface Address extends HTMLAttributes<HTMLElement> {}
217
+ interface Area extends HTMLAttributes<HTMLAreaElement> {
218
+ /**
219
+ * Specifies an alternative text for the area.
220
+ * @see https://html.spec.whatwg.org/multipage/image-maps.html#attr-area-alt
221
+ */
222
+ alt?: AttrString;
223
+
224
+ /**
225
+ * Specifies the coordinates of the area's shape.
226
+ * @see https://html.spec.whatwg.org/multipage/image-maps.html#attr-area-coords
227
+ */
228
+ coords?: AttrString;
229
+
230
+ /**
231
+ * Specifies whether to download the resource, or the name of the file to download.
232
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-download
233
+ */
234
+ download?: A["download"];
235
+
236
+ /**
237
+ * Specifies the URL of the linked resource.
238
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-href
239
+ */
240
+ href?: A["href"];
241
+
242
+ /**
243
+ * Specifies the language of the linked resource.
244
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-hreflang
245
+ */
246
+ hreflang?: A["hreflang"];
247
+
248
+ /**
249
+ * Specifies a space-separated list of URLs to send a ping request to when the link is followed.
250
+ * @see https://html.spec.whatwg.org/multipage/links.html#ping
251
+ */
252
+ ping?: A["ping"];
253
+
254
+ /**
255
+ * Specifies the referrer policy for the linked resource.
256
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-referrerpolicy
257
+ */
258
+ referrerpolicy?: A["referrerpolicy"];
259
+
260
+ /**
261
+ * Specifies the relationship between the current document and the linked resource.
262
+ * @see https://html.spec.whatwg.org/multipage/links.html#linkTypes
263
+ */
264
+ rel?: A["rel"];
265
+
266
+ /**
267
+ * Specifies the shape of the clickable region on the area.
268
+ * @see https://html.spec.whatwg.org/multipage/image-maps.html#attr-area-shape
269
+ */
270
+ shape?: AttrMissing | "rect" | "circle" | "poly" | "default";
271
+
272
+ /**
273
+ * Specifies the browsing context for the linked resource.
274
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-target
275
+ */
276
+ target?: A["target"];
277
+
278
+ /** @deprecated */
279
+ name?: AttrString;
280
+
281
+ /** @deprecated */
282
+ nohref?: AttrString;
283
+
284
+ /** @deprecated */
285
+ type?: AttrString;
286
+ }
287
+ interface Article extends HTMLAttributes<HTMLElement> {}
288
+ interface Aside extends HTMLAttributes<HTMLElement> {}
289
+ interface Audio extends HTMLAttributes<HTMLAudioElement> {
290
+ /**
291
+ * Specifies whether the audio should start playing automatically.
292
+ * @see https://html.spec.whatwg.org/multipage/media.html#attr-media-autoplay
293
+ */
294
+ autoplay?: AttrBoolean;
295
+
296
+ /**
297
+ * Specifies whether the audio controls should be displayed.
298
+ * @see https://html.spec.whatwg.org/multipage/media.html#attr-media-controls
299
+ */
300
+ controls?: AttrBoolean;
301
+
302
+ /**
303
+ * Specifies the controls to be shown or hidden on the audio player.
304
+ * @see https://wicg.github.io/controls-list/explainer.html
305
+ */
306
+ controlslist?:
307
+ | AttrMissing
308
+ | "nodownload"
309
+ | "nofullscreen"
310
+ | "noplaybackrate"
311
+ | "noremoteplayback"
312
+ | (string & {});
313
+
314
+ /**
315
+ * Specifies the CORS settings for the audio resource.
316
+ * @see https://html.spec.whatwg.org/multipage/media.html#attr-media-crossorigin
317
+ */
318
+ crossorigin?: AttrCrossOrigin;
319
+
320
+ /**
321
+ * Specifies whether to disable remote playback of the audio.
322
+ * @see https://www.w3.org/TR/remote-playback/#the-disableremoteplayback-attribute
323
+ */
324
+ disableremoteplayback?: AttrBoolean;
325
+
326
+ /**
327
+ * Specifies whether the audio should start over again when finished.
328
+ * @see https://html.spec.whatwg.org/multipage/media.html#attr-media-loop
329
+ */
330
+ loop?: AttrBoolean;
331
+
332
+ /**
333
+ * Specifies whether the audio should be muted by default.
334
+ * @see https://html.spec.whatwg.org/multipage/media.html#attr-media-muted
335
+ */
336
+ muted?: AttrBoolean;
337
+
338
+ /**
339
+ * Specifies the type of preloading for the audio.
340
+ * @see https://html.spec.whatwg.org/multipage/media.html#attr-media-preload
341
+ */
342
+ preload?: AttrBoolean | "none" | "metadata" | "auto";
343
+
344
+ /**
345
+ * Specifies the URL of the audio resource.
346
+ * @see https://html.spec.whatwg.org/multipage/media.html#attr-media-src
347
+ */
348
+ src?: AttrString;
349
+ }
350
+
351
+ interface B extends HTMLAttributes<HTMLElement> {}
352
+ interface Base extends HTMLAttributes<HTMLBaseElement> {
353
+ /**
354
+ * Specifies the base URL for resolving relative URLs within the document.
355
+ * @see https://html.spec.whatwg.org/multipage/semantics.html#attr-base-href
356
+ */
357
+ href?: AttrString;
358
+
359
+ /**
360
+ * Specifies the default browsing context for links and forms in the document.
361
+ * @see https://html.spec.whatwg.org/multipage/semantics.html#attr-base-target
362
+ */
363
+ target?: AttrTarget;
364
+ }
365
+ interface BDI extends HTMLAttributes<HTMLElement> {}
366
+ interface BDO extends HTMLAttributes<HTMLElement> {}
367
+ interface BlockQuote extends HTMLAttributes<HTMLQuoteElement> {
368
+ /**
369
+ * Specifies the URL of the source document or quoted content.
370
+ * @see https://html.spec.whatwg.org/multipage/grouping-content.html#attr-blockquote-cite
371
+ */
372
+ cite?: AttrString;
373
+ }
374
+ interface Body extends HTMLAttributes<HTMLBodyElement> {
375
+ /**
376
+ * Fires after printing the document.
377
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-afterprint
378
+ */
379
+ onAfterPrint?: AttrEventHandler<Event, HTMLBodyElement>;
380
+ "on-afterprint"?: this["onAfterPrint"];
381
+
382
+ /**
383
+ * Fires before printing the document.
384
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-beforeprint
385
+ */
386
+ onBeforePrint?: AttrEventHandler<Event, HTMLBodyElement>;
387
+ "on-beforeprint"?: this["onBeforePrint"];
388
+
389
+ /**
390
+ * Fired when the page is about to be unloaded, in case the page would like to show a warning prompt.
391
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-beforeunload
392
+ */
393
+ onBeforeUnload?: AttrEventHandler<BeforeUnloadEvent, HTMLBodyElement>;
394
+ "on-beforeunload"?: this["onBeforeUnload"];
395
+
396
+ /**
397
+ * Fired when the fragment part of the document's URL changes.
398
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-hashchange
399
+ */
400
+ onHashChange?: AttrEventHandler<HashChangeEvent, HTMLBodyElement>;
401
+ "on-hashchange"?: this["onHashChange"];
402
+
403
+ /**
404
+ * Fired when the user's preferred languages change.
405
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-languagechange
406
+ */
407
+ onLanguageChange?: AttrEventHandler<Event, HTMLBodyElement>;
408
+ "on-languagechange"?: this["onLanguageChange"];
409
+
410
+ /**
411
+ * Fired when the window receives a message.
412
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-message
413
+ */
414
+ onMessage?: AttrEventHandler<MessageEvent, HTMLBodyElement>;
415
+ "on-message"?: this["onMessage"];
416
+
417
+ /**
418
+ * Fired when the window receives an error message.
419
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-messageerror
420
+ */
421
+ onMessageError?: AttrEventHandler<MessageEvent, HTMLBodyElement>;
422
+ "on-messageerror"?: this["onMessageError"];
423
+
424
+ /**
425
+ * Fired when the network connection is lost.
426
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-offline
427
+ */
428
+ onOffline?: AttrEventHandler<Event, HTMLBodyElement>;
429
+ "on-offline"?: this["onOffline"];
430
+
431
+ /**
432
+ * Fired when the network connection is recovered.
433
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-online
434
+ */
435
+ onOnline?: AttrEventHandler<Event, HTMLBodyElement>;
436
+ "on-online"?: this["onOnline"];
437
+
438
+ /**
439
+ * Fired when the page's session history entry stops being the active entry.
440
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-pagehide
441
+ */
442
+ onPageHide?: AttrEventHandler<PageTransitionEvent, HTMLBodyElement>;
443
+ "on-pagehide"?: this["onPageHide"];
444
+
445
+ /**
446
+ * Fired when the page's session history entry becomes the active entry.
447
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-pageshow
448
+ */
449
+ onPageShow?: AttrEventHandler<PageTransitionEvent, HTMLBodyElement>;
450
+ "on-pageshow"?: this["onPageShow"];
451
+
452
+ /**
453
+ * Fired when the window's session history is popped.
454
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-popstate
455
+ */
456
+ onPopState?: AttrEventHandler<PopStateEvent, HTMLBodyElement>;
457
+ "on-popstate"?: this["onPopState"];
458
+
459
+ /**
460
+ * Fires when a previously-unhandled promise rejection becomes handled.
461
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-rejectionhandled
462
+ */
463
+ onRejectionHandled?: AttrEventHandler<Event, HTMLBodyElement>;
464
+ "on-rejectionhandled"?: this["onRejectionHandled"];
465
+
466
+ /**
467
+ * Fired when the corresponding localStorage or sessionStorage storage areas change.
468
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-storage
469
+ */
470
+ onStorage?: AttrEventHandler<StorageEvent, HTMLBodyElement>;
471
+ "on-storage"?: this["onStorage"];
472
+
473
+ /**
474
+ * Fired when a promise rejection goes unhandled.
475
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-unhandledrejection
476
+ */
477
+ onUnhandledRejection?: AttrEventHandler<
478
+ PromiseRejectionEvent,
479
+ HTMLBodyElement
480
+ >;
481
+ "on-unhandledrejection"?: this["onUnhandledRejection"];
482
+
483
+ /**
484
+ * Fired when the page is going away.
485
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-unload
486
+ */
487
+ onUnload?: AttrEventHandler<Event, HTMLBodyElement>;
488
+ "on-unload"?: this["onUnload"];
489
+
490
+ /** @deprecated */
491
+ alink?: AttrString;
492
+
493
+ /** @deprecated */
494
+ background?: AttrString;
495
+
496
+ /** @deprecated */
497
+ bgcolor?: AttrString;
498
+
499
+ /** @deprecated */
500
+ link?: AttrString;
501
+
502
+ /** @deprecated */
503
+ text?: AttrString;
504
+
505
+ /** @deprecated */
506
+ vlink?: AttrString;
507
+
508
+ /** @deprecated */
509
+ bottommargin?: AttrStringOrNumber;
510
+
511
+ /** @deprecated */
512
+ leftmargin?: AttrStringOrNumber;
513
+
514
+ /** @deprecated */
515
+ rightmargin?: AttrStringOrNumber;
516
+
517
+ /** @deprecated */
518
+ topmargin?: AttrStringOrNumber;
519
+ }
520
+
521
+ interface Br extends HTMLAttributes<HTMLBRElement> {
522
+ /** @deprecated */
523
+ clear?: AttrString;
524
+ }
525
+ interface Button extends HTMLAttributes<HTMLButtonElement> {
526
+ /**
527
+ * Specifies whether the button should be disabled.
528
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-disabled
529
+ */
530
+ disabled?: AttrBoolean;
531
+
532
+ /**
533
+ * Specifies the form element associated with the button.
534
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-fae-form
535
+ */
536
+ form?: AttrString;
537
+
538
+ /**
539
+ * Specifies the URL of the form's action when the button is clicked.
540
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-fs-formaction
541
+ */
542
+ formaction?: Form["action"];
543
+
544
+ /**
545
+ * Specifies the enctype attribute for the form when the button is clicked.
546
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-fs-formenctype
547
+ */
548
+ formenctype?: Form["enctype"];
549
+
550
+ /**
551
+ * Specifies the method attribute for the form when the button is clicked.
552
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-fs-formmethod
553
+ */
554
+ formmethod?: Form["method"];
555
+
556
+ /**
557
+ * Specifies whether the form should not validate when the button is clicked.
558
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-fs-formnovalidate
559
+ */
560
+ formnovalidate?: Form["novalidate"];
561
+
562
+ /**
563
+ * Specifies the target attribute for the form when the button is clicked.
564
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-fs-formtarget
565
+ */
566
+ formtarget?: Form["target"];
567
+
568
+ /**
569
+ * Specifies the name of the button.
570
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-name
571
+ */
572
+ name?: AttrString;
573
+
574
+ /**
575
+ * Specifies the type of the button.
576
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-button-type
577
+ */
578
+ type?: AttrMissing | "submit" | "reset" | "button";
579
+
580
+ /**
581
+ * Specifies the value of the button.
582
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-button-value
583
+ */
584
+ value?: AttrString;
585
+
586
+ /**
587
+ * Specifies the target element for the popover.
588
+ * @see https://developer.chrome.com/docs/web-platform/popover-api/popovertargetaction-toggle-attribute
589
+ */
590
+ popovertarget?: AttrString;
591
+
592
+ /**
593
+ * Specifies the action to perform on the popover target.
594
+ * @see https://developer.chrome.com/docs/web-platform/popover-api/popovertargetaction-toggle-attribute
595
+ */
596
+ popovertargetaction?: AttrMissing | "toggle" | "show" | "hide";
597
+ }
598
+ interface Canvas extends HTMLAttributes<HTMLCanvasElement> {
599
+ /**
600
+ * Specifies the height of the canvas element.
601
+ * @see https://html.spec.whatwg.org/multipage/canvas.html#attr-canvas-height
602
+ */
603
+ height?: AttrStringOrNumber;
604
+
605
+ /**
606
+ * Specifies the width of the canvas element.
607
+ * @see https://html.spec.whatwg.org/multipage/canvas.html#attr-canvas-width
608
+ */
609
+ width?: AttrStringOrNumber;
610
+ }
611
+ interface Caption extends HTMLAttributes<HTMLTableCaptionElement> {
612
+ /** @deprecated */
613
+ align?: AttrString;
614
+ }
615
+ interface Cite extends HTMLAttributes<HTMLElement> {}
616
+ interface Code extends HTMLAttributes<HTMLElement> {}
617
+ interface Col extends HTMLAttributes<HTMLTableColElement> {
618
+ /**
619
+ * Specifies how many columns in the table the `<col>` element spans.
620
+ * @see https://html.spec.whatwg.org/multipage/tables.html#attr-col-span
621
+ */
622
+ span?: AttrStringOrNumber;
623
+
624
+ /** @deprecated */
625
+ align?: AttrString;
626
+
627
+ /** @deprecated */
628
+ char?: AttrString;
629
+
630
+ /** @deprecated */
631
+ charoff?: AttrStringOrNumber;
632
+
633
+ /** @deprecated */
634
+ valign?: AttrString;
635
+
636
+ /** @deprecated */
637
+ width?: AttrStringOrNumber;
638
+ }
639
+ interface ColGroup extends HTMLAttributes<HTMLTableColElement> {
640
+ /**
641
+ * Specifies how many columns in the table the `<colgroup>` element spans.
642
+ * @see https://html.spec.whatwg.org/multipage/tables.html#attr-colgroup-span
643
+ */
644
+ span?: AttrStringOrNumber;
645
+
646
+ /** @deprecated */
647
+ align?: AttrString;
648
+
649
+ /** @deprecated */
650
+ bgcolor?: AttrString;
651
+
652
+ /** @deprecated */
653
+ char?: AttrString;
654
+
655
+ /** @deprecated */
656
+ charoff?: AttrStringOrNumber;
657
+
658
+ /** @deprecated */
659
+ valign?: AttrString;
660
+ }
661
+ interface Data extends HTMLAttributes<HTMLDataElement> {
662
+ /**
663
+ * Specifies the machine-readable value of the `<data>` element.
664
+ * @see https://html.spec.whatwg.org/multipage/text-level-semantics.html#attr-data-value
665
+ */
666
+ value?: AttrStringOrNumber;
667
+ }
668
+
669
+ interface DataList extends HTMLAttributes<HTMLDataListElement> {}
670
+ interface DD extends HTMLAttributes<HTMLElement> {
671
+ /** @deprecated */
672
+ nowrap?: AttrYesNoString;
673
+ }
674
+ interface Del extends HTMLAttributes<HTMLModElement> {
675
+ /**
676
+ * Specifies the URL of the source of the quote or change.
677
+ * @see https://html.spec.whatwg.org/multipage/edits.html#attr-mod-cite
678
+ */
679
+ cite?: AttrString;
680
+
681
+ /**
682
+ * Specifies the date and time of the quote or change.
683
+ * @see https://html.spec.whatwg.org/multipage/edits.html#attr-mod-datetime
684
+ */
685
+ datetime?: AttrString;
686
+ }
687
+ interface Details extends HTMLAttributes<HTMLDetailsElement> {
688
+ /**
689
+ * Specifies whether the `<details>` element is open.
690
+ * @see https://html.spec.whatwg.org/multipage/interactive-elements.html#attr-details-open
691
+ */
692
+ open?: AttrBoolean;
693
+ }
694
+ interface Dfn extends HTMLAttributes<HTMLElement> {}
695
+ interface Dialog extends HTMLAttributes<HTMLDialogElement> {
696
+ /**
697
+ * Specifies whether the `<dialog>` element is open.
698
+ * @see https://html.spec.whatwg.org/multipage/interactive-elements.html#attr-dialog-open
699
+ */
700
+ open?: AttrBoolean;
701
+ }
702
+ interface Div extends HTMLAttributes<HTMLDivElement> {}
703
+ interface DL extends HTMLAttributes<HTMLDListElement> {}
704
+ interface DT extends HTMLAttributes<HTMLElement> {}
705
+ interface Em extends HTMLAttributes<HTMLElement> {}
706
+ interface Embed extends HTMLAttributes<HTMLEmbedElement> {
707
+ /**
708
+ * Specifies the height of the embedded content.
709
+ * @see https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-height
710
+ */
711
+ height?: AttrStringOrNumber;
712
+
713
+ /**
714
+ * Specifies the URL of the resource to embed.
715
+ * @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-embed-src
716
+ */
717
+ src?: AttrString;
718
+
719
+ /**
720
+ * Specifies the MIME type of the embedded content.
721
+ * @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-embed-type
722
+ */
723
+ type?: AttrString;
724
+
725
+ /**
726
+ * Specifies the width of the embedded content.
727
+ * @see https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-width
728
+ */
729
+ width?: AttrStringOrNumber;
730
+ }
731
+ interface FieldSet extends HTMLAttributes<HTMLFieldSetElement> {
732
+ /**
733
+ * Specifies whether the `<fieldset>` element is disabled.
734
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-fieldset-disabled
735
+ */
736
+ disabled?: AttrBoolean;
737
+ /**
738
+ * Specifies associated form for the `<fieldset>`.
739
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fae-form
740
+ */
741
+ form?: AttrString;
742
+ /**
743
+ * Specifies the name of the `<fieldset>` on the form.elements api.
744
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-name
745
+ * @see HTMLFormElement.elements
746
+ */
747
+ name?: AttrString;
748
+ }
749
+ interface FigCaption extends HTMLAttributes<HTMLElement> {}
750
+ interface Figure extends HTMLAttributes<HTMLElement> {}
751
+ interface Form extends HTMLAttributes<HTMLElement> {
752
+ /**
753
+ * Specifies the character encodings that are to be used for the form submission.
754
+ * @see https://html.spec.whatwg.org/multipage/forms.html#attr-form-accept-charset
755
+ */
756
+ "accept-charset"?: AttrString;
757
+ /**
758
+ * Specifies the URL which the form data will be submitted to.
759
+ * @see https://html.spec.whatwg.org/multipage/forms.html#attr-fs-action
760
+ */
761
+ action?: AttrString;
762
+ /**
763
+ * Controls whether the browser should automatically complete form input values.
764
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
765
+ */
766
+ autocomplete?: AttrOnOff;
767
+ /**
768
+ * Specifies the content type used to submit the form to the server.
769
+ * @see https://html.spec.whatwg.org/multipage/forms.html#attr-form-enctype
770
+ */
771
+ enctype?:
772
+ | AttrMissing
773
+ | "application/x-www-form-urlencoded"
774
+ | "multipart/form-data"
775
+ | "text/plain";
776
+ /**
777
+ * Specifies the HTTP method used to submit the form to the server.
778
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-method
779
+ */
780
+ method?:
781
+ | AttrMissing
782
+ | "POST"
783
+ | "post"
784
+ | "GET"
785
+ | "get"
786
+ | "dialog"
787
+ | "DIALOG";
788
+ /**
789
+ * The name attribute represents the form's name within the forms collection.
790
+ * @see https://html.spec.whatwg.org/multipage/forms.html#attr-form-name
791
+ * @see Document.forms
792
+ */
793
+ name?: AttrString;
794
+ /**
795
+ * Indicates that the form should not be validated when submitted.
796
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-novalidate
797
+ */
798
+ novalidate?: AttrBoolean;
799
+ /**
800
+ * Specifies the relationship between the current document and the linked document.
801
+ * @see https://html.spec.whatwg.org/multipage/links.html#linkTypes
802
+ */
803
+ rel?:
804
+ | AttrMissing
805
+ | "external"
806
+ | "help"
807
+ | "license"
808
+ | "next"
809
+ | "nofollow"
810
+ | "noopener"
811
+ | "noreferrer"
812
+ | "opener"
813
+ | "prev"
814
+ | "search"
815
+ | (string & {});
816
+ /**
817
+ * Specifies the browsing context in which the linked resource will be opened.
818
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-target
819
+ */
820
+ target?: AttrTarget;
821
+ /** @deprecated */
822
+ accept?: AttrString;
823
+ }
824
+ interface H1 extends HTMLAttributes<HTMLFormElement> {}
825
+ interface H2 extends HTMLAttributes<HTMLHeadingElement> {}
826
+ interface H3 extends HTMLAttributes<HTMLHeadingElement> {}
827
+ interface H4 extends HTMLAttributes<HTMLHeadingElement> {}
828
+ interface H5 extends HTMLAttributes<HTMLHeadingElement> {}
829
+ interface H6 extends HTMLAttributes<HTMLHeadingElement> {}
830
+ interface Footer extends HTMLAttributes<HTMLHeadingElement> {}
831
+ interface Head extends HTMLAttributes<HTMLHeadElement> {
832
+ /** @deprecated */
833
+ profile?: AttrString;
834
+ }
835
+ interface Header extends HTMLAttributes<HTMLElement> {}
836
+ interface HGroup extends HTMLAttributes<HTMLElement> {}
837
+ interface HR extends HTMLAttributes<HTMLHRElement> {
838
+ /** @deprecated */
839
+ align?: AttrMissing | "left" | "center" | "right";
840
+ /** @deprecated */
841
+ color?: AttrString;
842
+ /** @deprecated */
843
+ noshade?: AttrBoolean;
844
+ /** @deprecated */
845
+ size?: AttrStringOrNumber;
846
+ /** @deprecated */
847
+ width?: AttrStringOrNumber;
848
+ }
849
+ interface HTML extends HTMLAttributes<HTMLHtmlElement> {
850
+ /** @deprecated */
851
+ xmlns?: AttrString;
852
+ /** @deprecated */
853
+ manifest?: AttrString;
854
+ /** @deprecated */
855
+ version?: AttrString;
856
+ }
857
+ interface I extends HTMLAttributes<HTMLElement> {}
858
+ interface IFrame extends HTMLAttributes<HTMLIFrameElement> {
859
+ /**
860
+ * A space-separated list of permissions that are granted to the content inside the frame.
861
+ * @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-allow
862
+ */
863
+ allow?: AttrString;
864
+ /**
865
+ * Indicates whether the iframe can be displayed in fullscreen mode.
866
+ * @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-allowfullscreen
867
+ */
868
+ allowfullscreen?: AttrBoolean;
869
+ /**
870
+ * The height of the iframe.
871
+ * @see https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-height
872
+ */
873
+ height?: AttrStringOrNumber;
874
+ /**
875
+ * Indicates whether the browser should eagerly load the frame's contents or not.
876
+ * @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-loading
877
+ */
878
+ loading?: AttrMissing | "eager" | "lazy";
879
+ /**
880
+ * A name or keyword that can be used to refer to the iframe from elsewhere in the document.
881
+ * @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-name
882
+ */
883
+ name?: AttrString;
884
+ /**
885
+ * Specifies the referrer policy for the iframe.
886
+ * @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-referrerpolicy
887
+ */
888
+ referrerpolicy?: AttrReferrerPolicy;
889
+ /**
890
+ * A set of sandbox flags that are applied to the iframe.
891
+ * @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-sandbox
892
+ */
893
+ sandbox?:
894
+ | AttrMissing
895
+ | "allow-downloads-without-user-activation"
896
+ | "allow-downloads"
897
+ | "allow-forms"
898
+ | "allow-modals"
899
+ | "allow-orientation-lock"
900
+ | "allow-pointer-lock"
901
+ | "allow-popups-to-escape-sandbox"
902
+ | "allow-popups"
903
+ | "allow-presentation"
904
+ | "allow-same-origin"
905
+ | "allow-scripts"
906
+ | "allow-storage-access-by-user-activation"
907
+ | "allow-top-navigation-by-user-activation"
908
+ | "allow-top-navigation-to-custom-protocols"
909
+ | "allow-top-navigation"
910
+ | (string & {});
911
+ /**
912
+ * The URL of the page to embed in the iframe.
913
+ * @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-src
914
+ */
915
+ src?: AttrString;
916
+ /**
917
+ * A document to render inside the iframe.
918
+ * @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-srcdoc
919
+ */
920
+ srcdoc?: AttrString;
921
+ /**
922
+ * The width of the iframe.
923
+ * @see https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-width
924
+ */
925
+ width?: AttrStringOrNumber;
926
+ /** @deprecated */
927
+ align?: AttrString;
928
+ /** @deprecated */
929
+ frameborder?: AttrStringOrNumber;
930
+ /** @deprecated */
931
+ longdesc?: AttrString;
932
+ /** @deprecated */
933
+ marginheight?: AttrStringOrNumber;
934
+ /** @deprecated */
935
+ marginwidth?: AttrStringOrNumber;
936
+ /** @deprecated */
937
+ scrolling?: AttrYesNoString | "auto";
938
+ }
939
+ interface Img extends HTMLAttributes<HTMLImageElement> {
940
+ /**
941
+ * The alternative text for the image, displayed when the image cannot be loaded or
942
+ * rendered. This is useful for accessibility purposes.
943
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-alt
944
+ */
945
+ alt?: AttrString;
946
+
947
+ /**
948
+ * A CORS setting attribute that determines if the image should be fetched with CORS or not.
949
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-crossorigin
950
+ */
951
+ crossorigin?: AttrCrossOrigin;
952
+
953
+ /**
954
+ * Specifies the decoding mode for the image, which can be "sync", "async", or "auto".
955
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-decoding
956
+ */
957
+ decoding?: AttrMissing | "sync" | "async" | "auto";
958
+
959
+ /**
960
+ * Sets the fetch priority of the image, which can be "auto", "high", or "low".
961
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-fetchpriority
962
+ */
963
+ fetchpriority?: AttrMissing | "auto" | "high" | "low";
964
+
965
+ /**
966
+ * The height of the image, either as a string (CSS length value) or a number (pixels).
967
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-dim-height
968
+ */
969
+ height?: AttrStringOrNumber;
970
+
971
+ /**
972
+ * Indicates that the image is part of a server-side image map.
973
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-ismap
974
+ */
975
+ ismap?: AttrBoolean;
976
+
977
+ /**
978
+ * Specifies the loading behavior of the image, which can be "eager" or "lazy".
979
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-loading
980
+ */
981
+ loading?: AttrMissing | "eager" | "lazy";
982
+
983
+ /**
984
+ * Sets the referrer policy for the image request.
985
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-referrerpolicy
986
+ */
987
+ referrerpolicy?: AttrReferrerPolicy;
988
+
989
+ /**
990
+ * A string containing size descriptors for responsive images.
991
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-sizes
992
+ */
993
+ sizes?: AttrString;
994
+
995
+ /**
996
+ * The URL of the image to display.
997
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-src
998
+ */
999
+ src?: AttrString;
1000
+
1001
+ /**
1002
+ * A string containing URL and size descriptor pairs for responsive images.
1003
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-srcset
1004
+ */
1005
+ srcset?: AttrString;
1006
+
1007
+ /**
1008
+ * The URL of a client-side image map to associate with the image.
1009
+ * @see https://html.spec.whatwg.org/multipage/image-maps.html#attr-hyperlink-usemap
1010
+ */
1011
+ usemap?: AttrString;
1012
+
1013
+ /**
1014
+ * The width of the image, either as a string (CSS length value) or a number (pixels
1015
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-dim-width
1016
+ */
1017
+ width?: AttrStringOrNumber;
1018
+
1019
+ /** @deprecated */
1020
+ align?: AttrMissing | "left" | "center" | "right" | "justify" | "char";
1021
+ /** @deprecated */
1022
+ border?: AttrStringOrNumber;
1023
+ /** @deprecated */
1024
+ hspace?: AttrStringOrNumber;
1025
+ /** @deprecated */
1026
+ longdesc?: AttrString;
1027
+ /** @deprecated */
1028
+ name?: AttrString;
1029
+ /** @deprecated */
1030
+ vspace?: AttrStringOrNumber;
1031
+ }
1032
+ interface Input extends HTMLAttributes<HTMLInputElement> {
1033
+ /**
1034
+ * A comma-separated list of file types that a file input should accept.
1035
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-accept
1036
+ */
1037
+ accept?: AttrString;
1038
+
1039
+ /**
1040
+ * The alternate text for an image input, displayed if the image cannot be loaded.
1041
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-alt
1042
+ */
1043
+ alt?: AttrString;
1044
+
1045
+ /**
1046
+ * Specifies whether the input field should have autocomplete enabled or disabled.
1047
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
1048
+ */
1049
+ autocomplete?: AttrOnOff;
1050
+
1051
+ /**
1052
+ * Indicates whether a file input should use a specific capture method.
1053
+ * "user" indicates the front camera, "environment" indicates the rear camera.
1054
+ * @see https://w3c.github.io/html-media-capture/#dfn-capture
1055
+ */
1056
+ capture?: AttrBoolean | "user" | "environment";
1057
+
1058
+ /**
1059
+ * Indicates whether a checkbox should be checked or not.
1060
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-checked
1061
+ */
1062
+ checked?: AttrBoolean;
1063
+
1064
+ /**
1065
+ * Enables the submission of the directionality of a text input.
1066
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-dirname
1067
+ */
1068
+ dirname?: AttrString;
1069
+
1070
+ /**
1071
+ * Indicates whether the input should be disabled or not. When disabled,
1072
+ * the input will not be interactable or submitted with the form.
1073
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-disabled
1074
+ */
1075
+ disabled?: AttrBoolean;
1076
+
1077
+ /**
1078
+ * The ID of the form element that this input is associated with.
1079
+ * This allows the input to be associated with a form even if it is
1080
+ * not a direct descendant of the form element.
1081
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fae-form
1082
+ */
1083
+ form?: AttrString;
1084
+
1085
+ /**
1086
+ * The URL of the form processing endpoint when the input image is used for form submission.
1087
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formaction
1088
+ */
1089
+ formaction?: Form["action"];
1090
+
1091
+ /**
1092
+ * The encoding type for the form data when the input image is used for form submission.
1093
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formenctype
1094
+ */
1095
+ formenctype?: Form["enctype"];
1096
+
1097
+ /**
1098
+ * The HTTP method to use when the input image is used for form submission.
1099
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formmethod
1100
+ */
1101
+ formmethod?: Form["method"];
1102
+
1103
+ /**
1104
+ * Indicates whether form validation should be skipped when the input image is used for form submission.
1105
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formnovalidate
1106
+ */
1107
+ formnovalidate?: Form["novalidate"];
1108
+
1109
+ /**
1110
+ * The browsing context for displaying the response after form submission when the input image is used.
1111
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formtarget
1112
+ */
1113
+ formtarget?: Form["target"];
1114
+
1115
+ /**
1116
+ * The height of of an image input in pixels.
1117
+ * @see https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-height
1118
+ */
1119
+ height?: AttrStringOrNumber;
1120
+
1121
+ /**
1122
+ * The ID of a <datalist> element that provides a list of suggested values for the input.
1123
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-list
1124
+ */
1125
+ list?: AttrString;
1126
+
1127
+ /**
1128
+ * The maximum allowed value for the input.
1129
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-max
1130
+ */
1131
+ max?: AttrString;
1132
+
1133
+ /**
1134
+ * The maximum number of characters allowed in the input.
1135
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-maxlength
1136
+ */
1137
+ maxlength?: AttrStringOrNumber;
1138
+
1139
+ /**
1140
+ * The minimum allowed value for the input.
1141
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-min
1142
+ */
1143
+ min?: AttrString;
1144
+
1145
+ /**
1146
+ * The minimum number of characters required in the input.
1147
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-minlength
1148
+ */
1149
+ minlength?: AttrStringOrNumber;
1150
+
1151
+ /**
1152
+ * Indicates whether the input should allow more than one value.
1153
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-multiple
1154
+ */
1155
+ multiple?: AttrBoolean;
1156
+
1157
+ /**
1158
+ * Used as a key when submitting the forms data. Also the name used in the form.elements api.
1159
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-name
1160
+ * @see HTMLFormElement.elements
1161
+ */
1162
+ name?: AttrString;
1163
+
1164
+ /**
1165
+ * A regular expression pattern to be validated against the input value.
1166
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-pattern
1167
+ */
1168
+ pattern?: AttrString;
1169
+
1170
+ /**
1171
+ * A short hint to display in the input field before the user enters a value.
1172
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-placeholder
1173
+ */
1174
+ placeholder?: AttrString;
1175
+
1176
+ /**
1177
+ * Specifies the target element for the popover.
1178
+ * @see https://developer.chrome.com/docs/web-platform/popover-api/popovertargetaction-toggle-attribute
1179
+ */
1180
+ popovertarget?: AttrString;
1181
+
1182
+ /**
1183
+ * Specifies the action to perform on the popover target.
1184
+ * @see https://developer.chrome.com/docs/web-platform/popover-api/popovertargetaction-toggle-attribute
1185
+ */
1186
+ popovertargetaction?: AttrMissing | "toggle" | "show" | "hide";
1187
+
1188
+ /**
1189
+ * Indicates whether the input should be read-only or not. Read-only inputs cannot be edited.
1190
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-readonly
1191
+ */
1192
+ readonly?: AttrBoolean;
1193
+
1194
+ /**
1195
+ * Indicates whether the input is required to have a value for the form to be submitted.
1196
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-required
1197
+ */
1198
+ required?: AttrBoolean;
1199
+
1200
+ /**
1201
+ * The number of characters wide a text input field should be displayed.
1202
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-size
1203
+ */
1204
+ size?: AttrStringOrNumber;
1205
+
1206
+ /**
1207
+ * The URL of the image file.
1208
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-src
1209
+ */
1210
+ src?: AttrString;
1211
+
1212
+ /**
1213
+ * Specifies the allowed number intervals for the input value.
1214
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-step
1215
+ */
1216
+ step?: AttrString;
1217
+
1218
+ /**
1219
+ * Controls the data type (and associated control) of the element.
1220
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1221
+ */
1222
+ type:
1223
+ | AttrMissing
1224
+ | "button"
1225
+ | "checkbox"
1226
+ | "color"
1227
+ | "date"
1228
+ | "datetime-local"
1229
+ | "email"
1230
+ | "file"
1231
+ | "hidden"
1232
+ | "image"
1233
+ | "month"
1234
+ | "number"
1235
+ | "password"
1236
+ | "radio"
1237
+ | "range"
1238
+ | "reset"
1239
+ | "search"
1240
+ | "submit"
1241
+ | "tel"
1242
+ | "text"
1243
+ | "time"
1244
+ | "url"
1245
+ | "week";
1246
+
1247
+ /**
1248
+ * Specifies the string value you want to pass back to the server.
1249
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
1250
+ */
1251
+ value?: AttrStringOrNumber;
1252
+
1253
+ /**
1254
+ * The width of an image input in pixels.
1255
+ * @see https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-width
1256
+ */
1257
+ width?: AttrStringOrNumber;
1258
+ }
1259
+
1260
+ interface Ins extends HTMLAttributes<HTMLModElement> {
1261
+ /**
1262
+ * A URI for a resource that explains the reason for the insertion.
1263
+ * @see https://html.spec.whatwg.org/multipage/edits.html#attr-mod-cite
1264
+ */
1265
+ cite?: AttrString;
1266
+
1267
+ /**
1268
+ * The date and time when the element's contents were inserted, in the format "YYYY-MM-DDThh:mm:ssZ".
1269
+ * @see https://html.spec.whatwg.org/multipage/edits.html#attr-mod-datetime
1270
+ */
1271
+ datetime?: AttrString;
1272
+ }
1273
+
1274
+ interface Kbd extends HTMLAttributes<HTMLElement> {}
1275
+ interface Label extends HTMLAttributes<HTMLLabelElement> {
1276
+ /**
1277
+ * The ID of a form control that this label is associated with.
1278
+ * @see https://html.spec.whatwg.org/multipage/forms.html#attr-label-for
1279
+ */
1280
+ for?: AttrString;
1281
+
1282
+ /**
1283
+ * The ID of the form element that this label is associated with, if the form control is not a descendant of the label element.
1284
+ * Note that this attribute is non standard.
1285
+ *
1286
+ * @see https://www.w3schools.com/tags//att_label_form.asp
1287
+ */
1288
+ form?: AttrString;
1289
+ }
1290
+
1291
+ interface Legend extends HTMLAttributes<HTMLLegendElement> {}
1292
+ interface LI extends HTMLAttributes<HTMLLIElement> {
1293
+ /**
1294
+ * The value used to determine the ordinal value of the list item.
1295
+ * @see https://html.spec.whatwg.org/multipage/grouping-content.html#attr-li-value
1296
+ */
1297
+ value?: AttrStringOrNumber;
1298
+
1299
+ /** @deprecated */
1300
+ type?: AttrString;
1301
+ }
1302
+ // TODO break into multiple interfaces based on rel?
1303
+ interface Link extends HTMLAttributes<HTMLLinkElement> {
1304
+ /**
1305
+ * Specifies the type of resource for the preload request.
1306
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-link-as
1307
+ */
1308
+ as?:
1309
+ | AttrMissing
1310
+ | "audio"
1311
+ | "document"
1312
+ | "embed"
1313
+ | "fetch"
1314
+ | "font"
1315
+ | "image"
1316
+ | "object"
1317
+ | "script"
1318
+ | "style"
1319
+ | "track"
1320
+ | "video"
1321
+ | "worker";
1322
+
1323
+ /**
1324
+ * Specifies whether the link should block rendering or not.
1325
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-link-blocking
1326
+ */
1327
+ blocking?: AttrMissing | "render";
1328
+
1329
+ /**
1330
+ * Specifies how the CORS requests for the element should be handled.
1331
+ * @see https://html.spec.whatwg.org/multipage/urls-and-fetching.html#cors-settings-attributes
1332
+ */
1333
+ crossorigin?: AttrCrossOrigin;
1334
+
1335
+ /**
1336
+ * Indicates if the link element is disabled.
1337
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-link-disabled
1338
+ */
1339
+ disabled?: AttrBoolean;
1340
+
1341
+ /**
1342
+ * Specifies the priority for the fetch request.
1343
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-link-fetchpriority
1344
+ */
1345
+ fetchpriority?: AttrMissing | "auto" | "high" | "low";
1346
+
1347
+ /**
1348
+ * Specifies the URL of the linked resource.
1349
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-link-href
1350
+ */
1351
+ href?: AttrString;
1352
+
1353
+ /**
1354
+ * Specifies the language of the linked resource.
1355
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-link-hreflang
1356
+ */
1357
+ hreflang?: AttrString;
1358
+
1359
+ /**
1360
+ * Specifies the sizes for image resources.
1361
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-link-imagesizes
1362
+ */
1363
+ imagesizes?: AttrString;
1364
+
1365
+ /**
1366
+ * Specifies a set of source sizes for responsive images.
1367
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-link-imagesrcset
1368
+ */
1369
+ imagesrcset?: AttrString;
1370
+
1371
+ /**
1372
+ * Allows a resource to be fetched with a cryptographic hash, ensuring the integrity of the resource.
1373
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-link-integrity
1374
+ */
1375
+ integrity?: AttrString;
1376
+
1377
+ /**
1378
+ * Specifies the media for which the linked resource is designed.
1379
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-link-media
1380
+ */
1381
+ media?: AttrString;
1382
+
1383
+ /**
1384
+ * Specifies the referrer policy for the request initiated by the link element.
1385
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-link-referrerpolicy
1386
+ */
1387
+ referrerpolicy?: AttrReferrerPolicy;
1388
+
1389
+ /**
1390
+ * Specifies the relationship between the current document and the linked resource.
1391
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-link-rel
1392
+ */
1393
+ rel?:
1394
+ | AttrMissing
1395
+ | "alternate"
1396
+ | "author"
1397
+ | "bookmark"
1398
+ | "canonical"
1399
+ | "dns-prefetch"
1400
+ | "external"
1401
+ | "help"
1402
+ | "icon"
1403
+ | "manifest"
1404
+ | "modulepreload"
1405
+ | "license"
1406
+ | "next"
1407
+ | "pingback"
1408
+ | "preconnect"
1409
+ | "prefetch"
1410
+ | "preload"
1411
+ | "prev"
1412
+ | "search"
1413
+ | "stylesheet"
1414
+ | (string & {});
1415
+
1416
+ /**
1417
+ * Specifies the size of the resource for rel="icon" or rel="apple-touch-icon".
1418
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-link-sizes
1419
+ */
1420
+ sizes?: AttrString;
1421
+
1422
+ /**
1423
+ * Specifies the MIME type of the linked resource.
1424
+ * @see https://html.spec.whatwg.org/multipage/links.html#attr-link-type
1425
+ */
1426
+ type?: AttrString;
1427
+
1428
+ /** @deprecated */
1429
+ charset?: AttrString;
1430
+
1431
+ /** @deprecated */
1432
+ rev?: AttrString;
1433
+ }
1434
+
1435
+ interface Main extends HTMLAttributes<HTMLElement> {}
1436
+ interface Map extends HTMLAttributes<HTMLMapElement> {
1437
+ /**
1438
+ * Specifies the name of the map.
1439
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-map-name
1440
+ */
1441
+ name?: AttrString;
1442
+ }
1443
+ interface Mark extends HTMLAttributes<HTMLElement> {}
1444
+ interface Menu extends HTMLAttributes<HTMLMenuElement> {
1445
+ /**
1446
+ * Specifies the title of the menu.
1447
+ * @see https://html.spec.whatwg.org/multipage/interactive-elements.html#attr-menu-label
1448
+ */
1449
+ label?: AttrString;
1450
+
1451
+ /**
1452
+ * Specifies the type of the menu, either a context menu or a toolbar.
1453
+ * @see https://html.spec.whatwg.org/multipage/interactive-elements.html#attr-menu-type
1454
+ */
1455
+ type?: AttrMissing | "context" | "toolbar";
1456
+ }
1457
+ interface Meta extends HTMLAttributes<HTMLMetaElement> {
1458
+ /**
1459
+ * Specifies the character encoding for the HTML document.
1460
+ * @see https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-charset
1461
+ */
1462
+ charset?: AttrString;
1463
+
1464
+ /**
1465
+ * Specifies the value associated with the http-equiv or name attribute.
1466
+ * @see https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-content
1467
+ */
1468
+ content?: AttrString;
1469
+
1470
+ /**
1471
+ * Specifies a pragma directive to affect the behavior of the user agent or server.
1472
+ * @see https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-http-equiv
1473
+ */
1474
+ "http-equiv"?:
1475
+ | AttrMissing
1476
+ | "Content-Security-Policy"
1477
+ | "Content-Type"
1478
+ | "Default-Style"
1479
+ | "Refresh"
1480
+ | "X-UA-Compatible";
1481
+
1482
+ /**
1483
+ * Specifies the metadata name for the content attribute.
1484
+ * @see https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-name
1485
+ */
1486
+ name?: AttrString;
1487
+ }
1488
+ interface Meter extends HTMLAttributes<HTMLMeterElement> {
1489
+ /**
1490
+ * Specifies the upper bound of the high end of the measured range.
1491
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-meter-high
1492
+ */
1493
+ high?: AttrStringOrNumber;
1494
+
1495
+ /**
1496
+ * Specifies the lower bound of the low end of the measured range.
1497
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-meter-low
1498
+ */
1499
+ low?: AttrStringOrNumber;
1500
+
1501
+ /**
1502
+ * Specifies the maximum value of the range.
1503
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-meter-max
1504
+ */
1505
+ max?: AttrStringOrNumber;
1506
+
1507
+ /**
1508
+ * Specifies the minimum value of the range.
1509
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-meter-min
1510
+ */
1511
+ min?: AttrStringOrNumber;
1512
+
1513
+ /**
1514
+ * Specifies the value that is considered optimal.
1515
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-meter-optimum
1516
+ */
1517
+ optimum?: AttrStringOrNumber;
1518
+
1519
+ /**
1520
+ * Specifies the current value of the meter.
1521
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-meter-value
1522
+ */
1523
+ value?: AttrStringOrNumber;
1524
+ }
1525
+
1526
+ interface Nav extends HTMLAttributes<HTMLElement> {}
1527
+ interface NoScript extends HTMLAttributes<HTMLElement> {}
1528
+ interface Object extends HTMLAttributes<HTMLObjectElement> {
1529
+ /**
1530
+ * Specifies the URL of the resource to be embedded.
1531
+ * @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-object-data
1532
+ */
1533
+ data?: AttrString;
1534
+
1535
+ /**
1536
+ * Associates the object element with a form element.
1537
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fae-form
1538
+ */
1539
+ form?: AttrString;
1540
+
1541
+ /**
1542
+ * Specifies the height of the object element.
1543
+ * @see https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-height
1544
+ */
1545
+ height?: AttrStringOrNumber;
1546
+
1547
+ /**
1548
+ * Specifies the name of the object element.
1549
+ * @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-object-name
1550
+ */
1551
+ name?: AttrString;
1552
+
1553
+ /**
1554
+ * Specifies the MIME type of the resource.
1555
+ * @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-object-type
1556
+ */
1557
+ type?: AttrString;
1558
+
1559
+ /**
1560
+ * Specifies a client-side image map to be used with the object element.
1561
+ * @see https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-object-usemap
1562
+ */
1563
+ usemap?: AttrString;
1564
+
1565
+ /**
1566
+ * Specifies the width of the object element.
1567
+ * @see https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-width
1568
+ */
1569
+ width?: AttrStringOrNumber;
1570
+
1571
+ /** @deprecated */
1572
+ archive?: AttrString;
1573
+ /** @deprecated */
1574
+ border?: AttrString;
1575
+ /** @deprecated */
1576
+ classid?: AttrString;
1577
+ /** @deprecated */
1578
+ codebase?: AttrString;
1579
+ /** @deprecated */
1580
+ codetype?: AttrString;
1581
+ /** @deprecated */
1582
+ declare?: AttrBoolean;
1583
+ /** @deprecated */
1584
+ standby?: AttrString;
1585
+ }
1586
+ interface OL extends HTMLAttributes<HTMLOListElement> {
1587
+ /**
1588
+ * Specifies whether the list items are numbered in reverse order.
1589
+ * @see https://html.spec.whatwg.org/multipage/grouping-content.html#attr-ol-reversed
1590
+ */
1591
+ reversed?: AttrBoolean;
1592
+
1593
+ /**
1594
+ * Specifies the starting value of the list items.
1595
+ * @see https://html.spec.whatwg.org/multipage/grouping-content.html#attr-ol-start
1596
+ */
1597
+ start?: AttrStringOrNumber;
1598
+
1599
+ /**
1600
+ * Specifies the numbering type of the list items.
1601
+ * @see https://html.spec.whatwg.org/multipage/grouping-content.html#attr-ol-type
1602
+ */
1603
+ type?: AttrMissing | "1" | "a" | "A" | "i" | "I";
1604
+ }
1605
+ interface OptGroup extends HTMLAttributes<HTMLOptGroupElement> {
1606
+ /**
1607
+ * Specifies that the option group is disabled.
1608
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-optgroup-disabled
1609
+ */
1610
+ disabled?: AttrBoolean;
1611
+
1612
+ /**
1613
+ * Specifies a label for the option group.
1614
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-optgroup-label
1615
+ */
1616
+ label?: AttrString;
1617
+ }
1618
+ interface Option extends HTMLAttributes<HTMLOptionElement> {
1619
+ /**
1620
+ * Specifies that the option is disabled.
1621
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-option-disabled
1622
+ */
1623
+ disabled?: AttrBoolean;
1624
+
1625
+ /**
1626
+ * Specifies a label for the option element.
1627
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-option-label
1628
+ */
1629
+ label?: AttrString;
1630
+
1631
+ /**
1632
+ * Specifies that the option element is selected by default.
1633
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-option-selected
1634
+ */
1635
+ selected?: AttrBoolean;
1636
+
1637
+ /**
1638
+ * Specifies the value of the option element.
1639
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-option-value
1640
+ */
1641
+ value?: AttrStringOrNumber;
1642
+ }
1643
+ interface Output extends HTMLAttributes<HTMLOutputElement> {
1644
+ /**
1645
+ * Specifies the ID of the form element that this output element is associated with.
1646
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-output-for
1647
+ */
1648
+ for?: AttrString;
1649
+
1650
+ /**
1651
+ * Specifies the ID of the form that this output element belongs to.
1652
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fae-form
1653
+ */
1654
+ form?: AttrString;
1655
+
1656
+ /**
1657
+ * Specifies the name of the output element.
1658
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-name
1659
+ */
1660
+ name?: AttrString;
1661
+ }
1662
+
1663
+ interface P extends HTMLAttributes<HTMLParagraphElement> {}
1664
+ interface Picture extends HTMLAttributes<HTMLPictureElement> {}
1665
+ interface Pre extends HTMLAttributes<HTMLPreElement> {
1666
+ /** @deprecated */
1667
+ cols?: AttrStringOrNumber;
1668
+ /** @deprecated */
1669
+ width?: AttrStringOrNumber;
1670
+ /** @deprecated */
1671
+ wrap?: AttrString;
1672
+ }
1673
+ interface Progress extends HTMLAttributes<HTMLProgressElement> {
1674
+ /**
1675
+ * Specifies the maximum value of the progress bar.
1676
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-progress-max
1677
+ */
1678
+ max?: AttrStringOrNumber;
1679
+
1680
+ /**
1681
+ * Specifies the current value of the progress bar.
1682
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-progress-value
1683
+ */
1684
+ value?: AttrStringOrNumber;
1685
+ }
1686
+
1687
+ interface Q extends HTMLAttributes<HTMLQuoteElement> {
1688
+ /**
1689
+ * Specifies the URL of the source document or message that the quotation came from.
1690
+ * @see https://html.spec.whatwg.org/multipage/text-level-semantics.html#attr-q-cite
1691
+ */
1692
+ cite?: AttrString;
1693
+ }
1694
+
1695
+ interface RP extends HTMLAttributes<HTMLElement> {}
1696
+ interface RT extends HTMLAttributes<HTMLElement> {}
1697
+ interface Ruby extends HTMLAttributes<HTMLElement> {}
1698
+ interface S extends HTMLAttributes<HTMLElement> {}
1699
+ interface Samp extends HTMLAttributes<HTMLElement> {}
1700
+ interface Script extends HTMLAttributes<HTMLScriptElement> {
1701
+ /**
1702
+ * Specifies that the script should be executed asynchronously.
1703
+ * @see https://html.spec.whatwg.org/multipage/scripting.html#attr-script-async
1704
+ */
1705
+ async?: AttrBoolean;
1706
+
1707
+ /**
1708
+ * Specifies that the script should be fetched and executed after the page is rendered.
1709
+ * @see https://html.spec.whatwg.org/multipage/scripting.html#attr-script-blocking
1710
+ */
1711
+ blocking?: AttrMissing | "render";
1712
+
1713
+ /**
1714
+ * Specifies whether CORS (Cross-Origin Resource Sharing) requests should be used when fetching the script.
1715
+ * @see https://html.spec.whatwg.org/multipage/scripting.html#attr-script-crossorigin
1716
+ */
1717
+ crossorigin?: AttrCrossOrigin;
1718
+
1719
+ /**
1720
+ * Specifies that the script should be executed after the page is parsed, but before the document is loaded.
1721
+ * @see https://html.spec.whatwg.org/multipage/scripting.html#attr-script-defer
1722
+ */
1723
+ defer?: AttrBoolean;
1724
+
1725
+ /**
1726
+ * Specifies the priority level for fetching the script.
1727
+ * @see https://html.spec.whatwg.org/multipage/scripting.html#attr-script-fetchpriority
1728
+ */
1729
+ fetchpriority?: AttrMissing | "auto" | "high" | "low";
1730
+
1731
+ /**
1732
+ * Specifies the integrity hash for the script.
1733
+ * @see https://html.spec.whatwg.org/multipage/urls-and-fetching.html#attr-link-integrity
1734
+ */
1735
+ integrity?: AttrString;
1736
+
1737
+ /**
1738
+ * Specifies that the script should be ignored if the browser doesn't support modules.
1739
+ * @see https://html.spec.whatwg.org/multipage/scripting.html#attr-script-nomodule
1740
+ */
1741
+ nomodule?: AttrBoolean;
1742
+
1743
+ /**
1744
+ * Specifies the referrer policy for the script.
1745
+ * @see https://html.spec.whatwg.org/multipage/urls-and-fetching.html#attr-link-referrerpolicy
1746
+ */
1747
+ referrerpolicy?: AttrReferrerPolicy;
1748
+
1749
+ /**
1750
+ * Specifies the URL of the script.
1751
+ * @see https://html.spec.whatwg.org/multipage/scripting.html#attr-script-src
1752
+ */
1753
+ src?: AttrString;
1754
+
1755
+ /**
1756
+ * Specifies the type of the script.
1757
+ * @see https://html.spec.whatwg.org/multipage/scripting.html#attr-script-type
1758
+ */
1759
+ type?:
1760
+ | AttrMissing
1761
+ | "application/javascript"
1762
+ | "module"
1763
+ | "import-map"
1764
+ | (string & {});
1765
+
1766
+ /** @deprecated */
1767
+ charset?: AttrString;
1768
+ /** @deprecated */
1769
+ language?: AttrString;
1770
+ }
1771
+
1772
+ interface Section extends HTMLAttributes<HTMLElement> {}
1773
+ interface Select extends HTMLAttributes<HTMLSelectElement> {
1774
+ /**
1775
+ * Controls whether the browser should automatically complete the value for the select.
1776
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
1777
+ */
1778
+ autocomplete?: AttrOnOff;
1779
+
1780
+ /**
1781
+ * Indicates whether the select element should be disabled or not.
1782
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-disabled
1783
+ */
1784
+ disabled?: AttrBoolean;
1785
+
1786
+ /**
1787
+ * Specifies the form element associated with the select.
1788
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-fae-form
1789
+ */
1790
+ form?: AttrString;
1791
+
1792
+ /**
1793
+ * Indicates that multiple options can be selected.
1794
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-select-multiple
1795
+ */
1796
+ multiple?: AttrBoolean;
1797
+
1798
+ /**
1799
+ * The name attribute of the select element, which is used as a key
1800
+ * when submitting the form data. Also the named used in the form.elements.
1801
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-name
1802
+ * @see HTMLFormElement.elements
1803
+ */
1804
+ name?: AttrString;
1805
+
1806
+ /**
1807
+ * Indicates whether a selection is required or not for the select.
1808
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-select-required
1809
+ */
1810
+ required?: AttrBoolean;
1811
+
1812
+ /**
1813
+ * Specifies how many options are visible at once.
1814
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-select-size
1815
+ */
1816
+ size?: AttrStringOrNumber;
1817
+ }
1818
+
1819
+ interface Slot extends HTMLAttributes<HTMLSlotElement> {
1820
+ /**
1821
+ * Used to assign slots to other elements
1822
+ * @see https://html.spec.whatwg.org/multipage/semantics.html#attr-slot-name
1823
+ */
1824
+ name?: AttrString;
1825
+ }
1826
+
1827
+ interface Small extends HTMLAttributes<HTMLElement> {}
1828
+ interface Source extends HTMLAttributes<HTMLSourceElement> {
1829
+ /**
1830
+ * Specifies the MIME type of the resource provided by the <source> element.
1831
+ * Helps the browser decide if it can play the resource or not.
1832
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-source-type
1833
+ */
1834
+ type?: AttrString;
1835
+
1836
+ /**
1837
+ * Specifies the URL of the media resource for the <source> element.
1838
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-source-src
1839
+ */
1840
+ src?: AttrString;
1841
+
1842
+ /**
1843
+ * Specifies a list of image sources for the <source> element when used inside a <picture> element.
1844
+ * Provides a way to offer multiple image formats or resolutions.
1845
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-source-srcset
1846
+ */
1847
+ srcset?: AttrString;
1848
+
1849
+ /**
1850
+ * Specifies the sizes of the images provided in the srcset attribute for the <source> element.
1851
+ * Helps the browser choose the most suitable image based on the device's dimensions.
1852
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-source-sizes
1853
+ */
1854
+ sizes?: AttrString;
1855
+
1856
+ /**
1857
+ * Specifies the media conditions for the <source> element.
1858
+ * Helps the browser choose the most suitable source based on the device's capabilities and preferences.
1859
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-source-media
1860
+ */
1861
+ media?: AttrString;
1862
+
1863
+ /**
1864
+ * Specifies the height of the <source> element's media resource.
1865
+ * @see https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-height
1866
+ */
1867
+ height?: AttrStringOrNumber;
1868
+
1869
+ /**
1870
+ * Specifies the width of the <source> element's media resource.
1871
+ * @see https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-width
1872
+ */
1873
+ width?: AttrStringOrNumber;
1874
+ }
1875
+
1876
+ interface Span extends HTMLAttributes<HTMLSpanElement> {}
1877
+ interface Strong extends HTMLAttributes<HTMLElement> {}
1878
+ interface Style extends HTMLAttributes<HTMLStyleElement> {
1879
+ /**
1880
+ * Determines whether the <style> element blocks rendering.
1881
+ * Since <style> already blocks rendering, this attribute is currently useless until
1882
+ * a non-blocking option for this attribute is added.
1883
+ * @see https://html.spec.whatwg.org/multipage/semantics.html#attr-style-blocking
1884
+ */
1885
+ blocking?: AttrMissing | "render";
1886
+
1887
+ /**
1888
+ * Specifies the intended media for which the styles in the <style> element should be applied.
1889
+ * For example, "print" for print media or "screen" for screen display.
1890
+ * @see https://html.spec.whatwg.org/multipage/semantics.html#attr-style-media
1891
+ */
1892
+ media?: AttrString;
1893
+ /** @deprecated */
1894
+ scoped?: AttrBoolean;
1895
+ /** @deprecated */
1896
+ type?: AttrMissing | "text/css";
1897
+ }
1898
+ interface Sub extends HTMLAttributes<HTMLElement> {}
1899
+ interface Summary extends HTMLAttributes<HTMLElement> {}
1900
+ interface Sup extends HTMLAttributes<HTMLElement> {}
1901
+ interface Table extends HTMLAttributes<HTMLTableElement> {
1902
+ /** @deprecated */
1903
+ align?: AttrString;
1904
+ /** @deprecated */
1905
+ bgcolor?: AttrString;
1906
+ /** @deprecated */
1907
+ border?: AttrStringOrNumber;
1908
+ /** @deprecated */
1909
+ cellpadding?: AttrStringOrNumber;
1910
+ /** @deprecated */
1911
+ cellspacing?: AttrStringOrNumber;
1912
+ /** @deprecated */
1913
+ frame?: AttrString;
1914
+ /** @deprecated */
1915
+ rules?: AttrString;
1916
+ /** @deprecated */
1917
+ summary?: AttrString;
1918
+ /** @deprecated */
1919
+ width?: AttrStringOrNumber;
1920
+ }
1921
+ interface TBody extends HTMLAttributes<HTMLTableSectionElement> {
1922
+ /** @deprecated */
1923
+ align?: AttrString;
1924
+ /** @deprecated */
1925
+ bgcolor?: AttrString;
1926
+ /** @deprecated */
1927
+ char?: AttrString;
1928
+ /** @deprecated */
1929
+ charoff?: AttrStringOrNumber;
1930
+ /** @deprecated */
1931
+ valign?: AttrString;
1932
+ }
1933
+ interface TD extends HTMLAttributes<HTMLTableCellElement> {
1934
+ /**
1935
+ * Specifies how many columns the <td> element should span in the table.
1936
+ * @see https://html.spec.whatwg.org/multipage/tables.html#attr-tdth-colspan
1937
+ */
1938
+ colspan?: AttrStringOrNumber;
1939
+
1940
+ /**
1941
+ * Specifies a list of header cell IDs that are related to the content of the <td> element.
1942
+ * @see https://html.spec.whatwg.org/multipage/tables.html#attr-tdth-headers
1943
+ */
1944
+ headers?: AttrString;
1945
+
1946
+ /**
1947
+ * Specifies how many rows the <td> element should span in the table.
1948
+ * @see https://html.spec.whatwg.org/multipage/tables.html#attr-tdth-rowspan
1949
+ */
1950
+ rowspan?: AttrStringOrNumber;
1951
+
1952
+ /** @deprecated */
1953
+ align?: AttrString;
1954
+ /** @deprecated */
1955
+ axis?: AttrString;
1956
+ /** @deprecated */
1957
+ bgcolor?: AttrString;
1958
+ /** @deprecated */
1959
+ char?: AttrString;
1960
+ /** @deprecated */
1961
+ charoff?: AttrStringOrNumber;
1962
+ /** @deprecated */
1963
+ height?: AttrStringOrNumber;
1964
+ /** @deprecated */
1965
+ scope?: AttrString;
1966
+ /** @deprecated */
1967
+ valign?: AttrString;
1968
+ /** @deprecated */
1969
+ width?: AttrStringOrNumber;
1970
+ }
1971
+ interface Template extends HTMLAttributes<HTMLTemplateElement> {
1972
+ /**
1973
+ * Specifies the shadow root mode for the <template> element when creating a shadow root.
1974
+ * "open" allows access to the shadow root, while "closed" restricts access.
1975
+ * @see https://developer.chrome.com/articles/declarative-shadow-dom
1976
+ * @see https://github.com/mfreed7/declarative-shadow-dom
1977
+ */
1978
+ shadowrootmode?: AttrMissing | "open" | "closed";
1979
+ }
1980
+ interface TextArea extends HTMLAttributes<HTMLTextAreaElement> {
1981
+ /**
1982
+ * Represents the autocomplete attribute of the <textarea> element.
1983
+ * Helps browsers autofill the user's input based on previous entries.
1984
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
1985
+ */
1986
+ autocomplete?: AttrOnOff;
1987
+
1988
+ /**
1989
+ * (Safari only). Controls the autocorrect behavior of the <textarea> element.
1990
+ */
1991
+ autocorrect?: AttrOnOff;
1992
+
1993
+ /**
1994
+ * Specifies the visible width of the <textarea> element in terms of character width.
1995
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-textarea-cols
1996
+ */
1997
+ cols?: AttrStringOrNumber;
1998
+
1999
+ /**
2000
+ * Represents the dirname attribute of the <textarea> element.
2001
+ * Provides a way to submit the text direction (ltr or rtl) along with the form data.
2002
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-dirname
2003
+ */
2004
+ dirname?: AttrString;
2005
+
2006
+ /**
2007
+ * Indicates whether the <textarea> element should be disabled or not.
2008
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-disabled
2009
+ */
2010
+ disabled?: AttrBoolean;
2011
+
2012
+ /**
2013
+ * Represents the form attribute of the <textarea> element.
2014
+ * Associates the <textarea> with a specific <form> element.
2015
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fae-form
2016
+ */
2017
+ form?: AttrString;
2018
+
2019
+ /**
2020
+ * Specifies the maximum number of characters that can be entered into the <textarea> element.
2021
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-textarea-maxlength
2022
+ */
2023
+ maxlength?: AttrStringOrNumber;
2024
+
2025
+ /**
2026
+ * Specifies the minimum number of characters required for the <textarea> element.
2027
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-textarea-minlength
2028
+ */
2029
+ minlength?: AttrStringOrNumber;
2030
+
2031
+ /**
2032
+ * Represents the name attribute of the <textarea> element.
2033
+ * Used as a key when submitting the form data.
2034
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-name
2035
+ */
2036
+ name?: AttrString;
2037
+
2038
+ /**
2039
+ * Specifies a short hint that describes the expected value of the <textarea> element.
2040
+ * Displayed when the element is empty and not focused.
2041
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-textarea-placeholder
2042
+ */
2043
+ placeholder?: AttrString;
2044
+
2045
+ /**
2046
+ * Indicates whether the <textarea> element should be read-only or not.
2047
+ * Users can't modify the content, but the text is selectable and can be copied.
2048
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-textarea-readonly
2049
+ */
2050
+ readonly?: AttrBoolean;
2051
+
2052
+ /**
2053
+ * Indicates whether a value is required or not for the <textarea> element.
2054
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-textarea-required
2055
+ */
2056
+ required?: AttrBoolean;
2057
+
2058
+ /**
2059
+ * Specifies the visible height of the <textarea> element in terms of text lines.
2060
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-textarea-rows
2061
+ */
2062
+ rows?: AttrStringOrNumber;
2063
+
2064
+ /**
2065
+ * (Non-standard). Represents the current value of the <textarea> element.
2066
+ */
2067
+ value?: AttrString;
2068
+
2069
+ /**
2070
+ * Controls the line wrapping behavior of the <textarea> element.
2071
+ * "hard" inserts line breaks in the submitted value, "soft" doesn't, and "off" disables wrapping.
2072
+ * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-textarea-wrap
2073
+ */
2074
+ wrap?: AttrMissing | "hard" | "soft" | "off";
2075
+ }
2076
+
2077
+ interface TFoot extends HTMLAttributes<HTMLTableSectionElement> {
2078
+ /** @deprecated */
2079
+ align?: AttrString;
2080
+ /** @deprecated */
2081
+ bgcolor?: AttrString;
2082
+ /** @deprecated */
2083
+ char?: AttrString;
2084
+ /** @deprecated */
2085
+ charoff?: AttrStringOrNumber;
2086
+ /** @deprecated */
2087
+ valign?: AttrString;
2088
+ }
2089
+ interface TH extends HTMLAttributes<HTMLTableCellElement> {
2090
+ /**
2091
+ * Represents the abbreviation for the content of the <th> element.
2092
+ * Provides a short description or label for the cell, which can be used by screen readers.
2093
+ * @see https://html.spec.whatwg.org/multipage/tables.html#attr-th-abbr
2094
+ */
2095
+ abbr?: AttrString;
2096
+
2097
+ /**
2098
+ * Specifies how many columns the <th> element should span in the table.
2099
+ * @see https://html.spec.whatwg.org/multipage/tables.html#attr-tdth-colspan
2100
+ */
2101
+ colspan?: AttrStringOrNumber;
2102
+
2103
+ /**
2104
+ * Specifies a list of header cell IDs that are related to the content of the <th> element.
2105
+ * @see https://html.spec.whatwg.org/multipage/tables.html#attr-tdth-headers
2106
+ */
2107
+ headers?: AttrString;
2108
+
2109
+ /**
2110
+ * Specifies how many rows the <th> element should span in the table.
2111
+ * @see https://html.spec.whatwg.org/multipage/tables.html#attr-tdth-rowspan
2112
+ */
2113
+ rowspan?: AttrStringOrNumber;
2114
+
2115
+ /**
2116
+ * Specifies the scope of the <th> element, defining its association with either row or column headers.
2117
+ * @see https://html.spec.whatwg.org/multipage/tables.html#attr-th-scope
2118
+ */
2119
+ scope?: AttrMissing | "col" | "row" | "rowgroup" | "colgroup";
2120
+
2121
+ /** @deprecated */
2122
+ align?: AttrString;
2123
+ /** @deprecated */
2124
+ axis?: AttrString;
2125
+ /** @deprecated */
2126
+ bgcolor?: AttrString;
2127
+ /** @deprecated */
2128
+ char?: AttrString;
2129
+ /** @deprecated */
2130
+ charoff?: AttrStringOrNumber;
2131
+ /** @deprecated */
2132
+ height?: AttrStringOrNumber;
2133
+ /** @deprecated */
2134
+ valign?: AttrString;
2135
+ /** @deprecated */
2136
+ width?: AttrStringOrNumber;
2137
+ }
2138
+ interface THead extends HTMLAttributes<HTMLTableSectionElement> {
2139
+ /** @deprecated */
2140
+ align?: AttrString;
2141
+ /** @deprecated */
2142
+ bgcolor?: AttrString;
2143
+ /** @deprecated */
2144
+ char?: AttrString;
2145
+ /** @deprecated */
2146
+ charoff?: AttrStringOrNumber;
2147
+ /** @deprecated */
2148
+ valign?: AttrString;
2149
+ }
2150
+ interface Time extends HTMLAttributes<HTMLTimeElement> {
2151
+ /**
2152
+ * Represents the machine-readable datetime attribute of the <time> element.
2153
+ * Provides a standardized way to represent dates and times in HTML content.
2154
+ * @see https://html.spec.whatwg.org/multipage/text-level-semantics.html#attr-time-datetime
2155
+ */
2156
+ datetime?: AttrString;
2157
+ }
2158
+ interface Title extends HTMLAttributes<HTMLTitleElement> {}
2159
+ interface TR extends HTMLAttributes<HTMLTableRowElement> {
2160
+ /** @deprecated */
2161
+ align?: AttrString;
2162
+ /** @deprecated */
2163
+ bgcolor?: AttrString;
2164
+ /** @deprecated */
2165
+ char?: AttrString;
2166
+ /** @deprecated */
2167
+ charoff?: AttrStringOrNumber;
2168
+ /** @deprecated */
2169
+ valign?: AttrString;
2170
+ }
2171
+ interface Track extends HTMLAttributes<HTMLTrackElement> {
2172
+ default?: AttrBoolean;
2173
+ kind?:
2174
+ | AttrMissing
2175
+ | "subtitles"
2176
+ | "captions"
2177
+ | "descriptions"
2178
+ | "chapters"
2179
+ | "metadata";
2180
+ label?: AttrString;
2181
+ src?: AttrString;
2182
+ srclang?: AttrString;
2183
+ }
2184
+ interface U extends HTMLAttributes<HTMLElement> {}
2185
+ interface UL extends HTMLAttributes<HTMLUListElement> {
2186
+ /** @deprecated */
2187
+ compact?: AttrBoolean;
2188
+ /** @deprecated */
2189
+ type?: AttrMissing | "disc" | "square" | "circle";
2190
+ }
2191
+ interface Var extends HTMLAttributes<HTMLElement> {}
2192
+ interface Video extends HTMLAttributes<HTMLVideoElement> {
2193
+ /**
2194
+ * Indicates if the video can automatically enter Picture-in-Picture mode when not visible.
2195
+ * @see https://w3c.github.io/picture-in-picture/#auto-pip
2196
+ */
2197
+ autopictureinpicture?: AttrBoolean;
2198
+
2199
+ /**
2200
+ * Specifies whether the video should start playing automatically when the page loads.
2201
+ * @see https://html.spec.whatwg.org/multipage/media.html#attr-media-autoplay
2202
+ */
2203
+ autoplay?: AttrBoolean;
2204
+
2205
+ /**
2206
+ * Indicates whether the browser should provide default video controls.
2207
+ * @see https://html.spec.whatwg.org/multipage/media.html#attr-media-controls
2208
+ */
2209
+ controls?: AttrBoolean;
2210
+
2211
+ /**
2212
+ * Specifies the controls to be shown or hidden on the audio player.
2213
+ * @see https://wicg.github.io/controls-list/explainer.html
2214
+ */
2215
+ controlslist?:
2216
+ | AttrMissing
2217
+ | "nodownload"
2218
+ | "nofullscreen"
2219
+ | "noplaybackrate"
2220
+ | "noremoteplayback"
2221
+ | (string & {});
2222
+
2223
+ /**
2224
+ * Specifies the CORS settings for the video resource.
2225
+ * @see https://html.spec.whatwg.org/multipage/media.html#attr-media-crossorigin
2226
+ */
2227
+ crossorigin?: AttrCrossOrigin;
2228
+
2229
+ /**
2230
+ * Disables the Picture-in-Picture mode for the video.
2231
+ * @see https://wicg.github.io/picture-in-picture/#disablepictureinpicture-attribute
2232
+ */
2233
+ disablepictureinpicture?: AttrBoolean;
2234
+
2235
+ /**
2236
+ * Disables the Remote Playback API for the video.
2237
+ * @see https://w3c.github.io/remote-playback/#the-disableremoteplayback-attribute
2238
+ */
2239
+ disableremoteplayback?: AttrBoolean;
2240
+
2241
+ /**
2242
+ * Specifies the height of the video's display area.
2243
+ * @see https://html.spec.whatwg.org/multipage/media.html#attr-video-height
2244
+ */
2245
+ height?: AttrStringOrNumber;
2246
+
2247
+ /**
2248
+ * Indicates whether the video should start over again when it ends.
2249
+ * @see https://html.spec.whatwg.org/multipage/media.html#attr-media-loop
2250
+ */
2251
+ loop?: AttrBoolean;
2252
+
2253
+ /**
2254
+ * Indicates whether the video should be muted by default.
2255
+ * @see https://html.spec.whatwg.org/multipage/media.html#attr-media-muted
2256
+ */
2257
+ muted?: AttrBoolean;
2258
+
2259
+ /**
2260
+ * Specifies that the video should be played inline on iOS devices, rather than automatically entering fullscreen mode when playback begins.
2261
+ * @see https://webkit.org/blog/6784/new-video-policies-for-ios/
2262
+ */
2263
+ playsinline?: AttrBoolean;
2264
+
2265
+ /**
2266
+ * Specifies the URL of an image to be shown while the video is downloading or until the user plays the video.
2267
+ * @see https://html.spec.whatwg.org/multipage/media.html#attr-video-poster
2268
+ */
2269
+ poster?: AttrString;
2270
+
2271
+ /**
2272
+ * Specifies how much of the video should be preloaded when the page loads.
2273
+ * @see https://html.spec.whatwg.org/multipage/media.html#attr-media-preload
2274
+ */
2275
+ preload?: AttrBoolean | "none" | "metadata" | "auto";
2276
+ /**
2277
+ * Specifies the URL of the video file to be embedded.
2278
+ * @see https://html.spec.whatwg.org/multipage/media.html#attr-media-src
2279
+ */
2280
+ src?: AttrString;
2281
+ /**
2282
+ * Specifies the width of the video's display area.
2283
+ * @see https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-width
2284
+ */
2285
+ width?: AttrStringOrNumber;
2286
+ }
2287
+
2288
+ interface WBr extends HTMLAttributes<HTMLElement> {}
2289
+ }
2290
+
2291
+ interface Directives {
2292
+ /**
2293
+ * Used to uniquely identify a tag within a template in order
2294
+ * to get an element reference to it later.
2295
+ *
2296
+ * @see Marko.Component.getEl
2297
+ * @see Marko.Component.getComponent
2298
+ */
2299
+ key?: AttrString;
2300
+
2301
+ /**
2302
+ * Tells Marko to avoid updating the element or it's contents (excluding custom tags which may rerender independently).
2303
+ */
2304
+ "no-update"?: AttrBoolean;
2305
+
2306
+ /**
2307
+ * Tells Marko to avoid updating an elements contents (excluding custom tags which may rerender independently).
2308
+ */
2309
+ "no-update-if"?: AttrBoolean;
2310
+ }
2311
+
2312
+ interface HTMLAttributes<T extends Element = Element>
2313
+ extends AriaAttributes {
2314
+ /**
2315
+ * Specifies a keyboard shortcut to activate or focus on an element.
2316
+ * @see https://html.spec.whatwg.org/multipage/interaction.html#the-accesskey-attribute
2317
+ */
2318
+ accesskey?: AttrString;
2319
+
2320
+ /**
2321
+ * Controls the capitalization behavior of user input.
2322
+ * @see https://html.spec.whatwg.org/multipage/interaction.html#attr-autocapitalize
2323
+ */
2324
+ autocapitalize?:
2325
+ | AttrOnOff
2326
+ | "characters"
2327
+ | "none"
2328
+ | "sentences"
2329
+ | "words";
2330
+
2331
+ /**
2332
+ * Indicates whether the element should automatically get focus when the page loads.
2333
+ * @see https://html.spec.whatwg.org/multipage/interaction.html#the-autofocus-attribute
2334
+ */
2335
+ autofocus?: AttrBoolean;
2336
+
2337
+ /**
2338
+ * Specifies a space-separated list of class names for an element.
2339
+ * @see https://markojs.com/docs/syntax/#class-attribute
2340
+ * @see https://html.spec.whatwg.org/multipage/dom.html#classes
2341
+ */
2342
+ class?: AttrClass;
2343
+
2344
+ /**
2345
+ * Specifies whether the content of an element is editable or not.
2346
+ * @see https://html.spec.whatwg.org/multipage/interaction.html#attr-contenteditable
2347
+ */
2348
+ contenteditable?: AttrBooleanString | "plaintext-only";
2349
+
2350
+ /**
2351
+ * Specifies the ID of a context menu to show when the element is right-clicked.
2352
+ * @see https://html.spec.whatwg.org/multipage/interaction.html#attr-contextmenu
2353
+ */
2354
+ contextmenu?: AttrString;
2355
+
2356
+ /**
2357
+ * Specifies the text direction for the content of an element.
2358
+ * @see https://html.spec.whatwg.org/multipage/dom.html#the-dir-attribute
2359
+ */
2360
+ dir?: AttrMissing | "ltr" | "rtl" | "auto";
2361
+
2362
+ /**
2363
+ * Specifies whether an element is draggable or not.
2364
+ * @see https://html.spec.whatwg.org/multipage/dnd.html#the-draggable-attribute
2365
+ */
2366
+ draggable?: AttrBooleanString;
2367
+
2368
+ /**
2369
+ * A string used to identify the element for performance measurement purposes.
2370
+ * @see https://wicg.github.io/element-timing/#sec-elements-exposed
2371
+ */
2372
+ elementtiming?: AttrString;
2373
+
2374
+ /**
2375
+ * Provides a hint to the user agent about the type of action expected from the "Enter" key.
2376
+ * @see https://html.spec.whatwg.org/multipage/interaction.html#attr-enterkeyhint
2377
+ */
2378
+ enterkeyhint?:
2379
+ | AttrMissing
2380
+ | "enter"
2381
+ | "done"
2382
+ | "go"
2383
+ | "next"
2384
+ | "previous"
2385
+ | "search"
2386
+ | "send";
2387
+
2388
+ /**
2389
+ * Specifies a list of part names for the element that are available for CSS ::part() selector.
2390
+ * @see https://drafts.csswg.org/css-shadow-parts-1/#exportparts-attribute
2391
+ */
2392
+ exportparts?: AttrString;
2393
+
2394
+ /**
2395
+ * Indicates whether the element should be hidden from rendering or not.
2396
+ * @see https://html.spec.whatwg.org/multipage/interaction.html#the-hidden-attribute
2397
+ */
2398
+ hidden?: AttrBoolean | "until-found";
2399
+
2400
+ /**
2401
+ * Specifies a unique identifier for the element within the document.
2402
+ * @see https://html.spec.whatwg.org/multipage/dom.html#the-id-attribute
2403
+ */
2404
+ id?: AttrString;
2405
+
2406
+ /**
2407
+ * Specifies whether an element should be inert or not, preventing user interaction and making it non-focusable.
2408
+ * @see https://html.spec.whatwg.org/multipage/interaction.html#inert-subtrees
2409
+ */
2410
+ inert?: AttrBoolean;
2411
+
2412
+ /**
2413
+ * Provides a hint to the user agent about the type of virtual keyboard to display for text input.
2414
+ * @see https://html.spec.whatwg.org/multipage/interaction.html#attr-inputmode
2415
+ */
2416
+ inputmode?:
2417
+ | AttrMissing
2418
+ | "decimal"
2419
+ | "email"
2420
+ | "none"
2421
+ | "numeric"
2422
+ | "search"
2423
+ | "tel"
2424
+ | "text"
2425
+ | "url";
2426
+
2427
+ /**
2428
+ * Specifies the name of a custom element to use as a replacement for the standard built-in element.
2429
+ * @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
2430
+ */
2431
+ is?: AttrString;
2432
+
2433
+ /**
2434
+ * Specifies a globally unique identifier (URI) for the element in the context of microdata.
2435
+ * @see https://html.spec.whatwg.org/multipage/microdata.html#attr-itemid
2436
+ */
2437
+ itemid?: AttrString;
2438
+
2439
+ /**
2440
+ * Specifies a list of one or more property names for the element in the context of microdata.
2441
+ * @see https://html.spec.whatwg.org/multipage/microdata.html#attr-itemprop
2442
+ */
2443
+ itemprop?: AttrString;
2444
+
2445
+ /**
2446
+ * Specifies a list of IDs of elements that contain additional properties for the item in the context of microdata.
2447
+ * @see https://html.spec.whatwg.org/multipage/microdata.html#attr-itemref
2448
+ */
2449
+ itemref?: AttrString;
2450
+
2451
+ /**
2452
+ * Specifies that the element is a microdata item, representing a single entity or concept.
2453
+ * @see https://html.spec.whatwg.org/multipage/microdata.html#attr-itemscope
2454
+ */
2455
+ itemscope?: AttrBoolean;
2456
+
2457
+ /**
2458
+ * Specifies the type of item represented by the element using a vocabulary URL in the context of microdata.
2459
+ * @see https://html.spec.whatwg.org/multipage/microdata.html#attr-itemtype
2460
+ */
2461
+ itemtype?: AttrString;
2462
+
2463
+ /**
2464
+ * Specifies the primary language for the element's contents and for any child elements.
2465
+ * @see https://html.spec.whatwg.org/multipage/dom.html#attr-lang
2466
+ */
2467
+ lang?: AttrString;
2468
+
2469
+ /**
2470
+ * Specifies a cryptographic nonce (number used once) for content within a script or style element.
2471
+ * @see https://html.spec.whatwg.org/multipage/urls-and-fetching.html#attr-nonce
2472
+ */
2473
+ nonce?: AttrString;
2474
+
2475
+ /**
2476
+ * Specifies a list of part names for the element that can be targeted by the ::part() CSS pseudo-element.
2477
+ * @see https://drafts.csswg.org/css-shadow-parts-1/#part-attribute
2478
+ */
2479
+ part?: AttrString;
2480
+
2481
+ /**
2482
+ * Specifies the name of the slot the element should be assigned to when inside a shadow tree.
2483
+ * @see https://html.spec.whatwg.org/multipage/scripting.html#attr-slot
2484
+ */
2485
+ slot?: AttrString;
2486
+
2487
+ /**
2488
+ * Specifies whether the element should have its spelling and grammar checked or not.
2489
+ * @see https://html.spec.whatwg.org/multipage/interaction.html#attr-spellcheck
2490
+ */
2491
+ spellcheck?: AttrBooleanString;
2492
+
2493
+ /**
2494
+ * Specifies the inline CSS styles for the element.
2495
+ * @see https://markojs.com/docs/syntax/#style-attribute
2496
+ * @see https://html.spec.whatwg.org/multipage/dom.html#the-style-attribute
2497
+ */
2498
+ style?: AttrStyle;
2499
+
2500
+ /**
2501
+ * Specifies the order in which elements should be focused when navigating via the keyboard.
2502
+ * @see https://html.spec.whatwg.org/multipage/interaction.html#attr-tabindex
2503
+ */
2504
+ tabindex?: AttrStringOrNumber;
2505
+
2506
+ /**
2507
+ * Specifies extra information about the element, usually shown as a tooltip.
2508
+ * @see https://html.spec.whatwg.org/multipage/dom.html#the-title-attribute
2509
+ */
2510
+ title?: AttrString;
2511
+
2512
+ /**
2513
+ * Specifies whether the element's content should be translated when the page is localized.
2514
+ * @see https://html.spec.whatwg.org/multipage/dom.html#the-translate-attribute
2515
+ */
2516
+ translate?: AttrYesNoString;
2517
+
2518
+ /**
2519
+ * Specifies the policy for showing the virtual keyboard when an element receives focus.
2520
+ * @see https://w3c.github.io/virtual-keyboard/#dom-elementcontenteditable-virtualkeyboardpolicy
2521
+ */
2522
+ virtualkeyboardpolicy?: AttrMissing | "auto" | "manual";
2523
+
2524
+ /**
2525
+ * Provide body content for the tag as a Marko.Body.
2526
+ * @see Marko.Body
2527
+ */
2528
+ renderBody?: Marko.Body<[], void>;
2529
+
2530
+ /**
2531
+ * Fired when resource was not fully loaded, but not as the result of an error.
2532
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-abort
2533
+ */
2534
+ onAbort?: AttrEventHandler<Event, T>;
2535
+ "on-abort"?: this["onAbort"];
2536
+
2537
+ /**
2538
+ * Fired when an Animation unexpectedly aborts.
2539
+ * @see https://w3c.github.io/csswg-drafts/css-animations/#eventdef-globaleventhandlers-animationcancel
2540
+ */
2541
+ onAnimationCancel?: AttrEventHandler<AnimationEvent, T>;
2542
+ "on-animationcancel"?: this["onAnimationCancel"];
2543
+
2544
+ /**
2545
+ * Fired when an animation has completed.
2546
+ * @see https://w3c.github.io/csswg-drafts/css-animations/#eventdef-globaleventhandlers-animationend
2547
+ */
2548
+ onAnimationEnd?: AttrEventHandler<AnimationEvent, T>;
2549
+ "on-animationend"?: this["onAnimationEnd"];
2550
+
2551
+ /**
2552
+ * Fired at the end of each iteration of an animation, except when an animationend event would fire at the same time.
2553
+ * @see https://w3c.github.io/csswg-drafts/css-animations/#eventdef-globaleventhandlers-animationiteration
2554
+ */
2555
+ onAnimationIteration?: AttrEventHandler<AnimationEvent, T>;
2556
+ "on-animationiteration"?: this["onAnimationIteration"];
2557
+
2558
+ /**
2559
+ * Fired when an animation has started.
2560
+ * @see https://w3c.github.io/csswg-drafts/css-animations/#eventdef-globaleventhandlers-animationstart
2561
+ */
2562
+ onAnimationStart?: AttrEventHandler<AnimationEvent, T>;
2563
+ "on-animationstart"?: this["onAnimationStart"];
2564
+
2565
+ /**
2566
+ * Fired when a non-primary pointing device button (any mouse button other than the primary—usually leftmost—button)
2567
+ * has been pressed and released both within the same element.
2568
+ * @see https://w3c.github.io/uievents/#event-type-auxclick
2569
+ */
2570
+ onAuxClick?: AttrEventHandler<PointerEvent, T>;
2571
+ "on-auxclick"?: this["onAuxClick"];
2572
+
2573
+ /**
2574
+ * Fires when the value of an <input>, or <textarea> element is about to be modified.
2575
+ * @see https://w3c.github.io/uievents/#event-type-beforeinput
2576
+ */
2577
+ onBeforeInput?: AttrEventHandler<InputEvent, T>;
2578
+ "on-beforeinput"?: this["onBeforeInput"];
2579
+
2580
+ /**
2581
+ * Fires when a node loses focus.
2582
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-blur
2583
+ */
2584
+ onBlur?: AttrEventHandler<Event, T>;
2585
+ "on-blur"?: this["onBlur"];
2586
+
2587
+ /**
2588
+ * Fires when the user agent can resume playback of the media data,
2589
+ * but estimates that if playback were to be started now, the media resource could not be rendered at the current
2590
+ * playback rate up to its end without having to stop for further buffering of content.
2591
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-canplay
2592
+ */
2593
+ onCanPlay?: AttrEventHandler<Event, T>;
2594
+ "on-canplay"?: this["onCanPlay"];
2595
+
2596
+ /**
2597
+ * Fires when the user agent can play through the media data without having to stop for further buffering of content.
2598
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-canplaythrough
2599
+ */
2600
+ onCanPlayThrough?: AttrEventHandler<Event, T>;
2601
+ "on-canplaythrough"?: this["onCanPlayThrough"];
2602
+
2603
+ /**
2604
+ * Fired when the form elements value is modified.
2605
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-change
2606
+ */
2607
+ onChange?: AttrEventHandler<Event, T>;
2608
+ "on-change"?: this["onChange"];
2609
+
2610
+ /**
2611
+ * Normally a mouse event; also synthetically fired at an element before its activation behavior is run,
2612
+ * when an element is activated from a non-pointer input device (e.g. a keyboard).
2613
+ * @see https://w3c.github.io/uievents/#event-type-click
2614
+ */
2615
+ onClick?: AttrEventHandler<PointerEvent, T>;
2616
+ "on-click"?: this["onClick"];
2617
+
2618
+ /**
2619
+ * Fired when a text composition system such as an input method editor completes or cancels the current composition session.
2620
+ * @see https://w3c.github.io/uievents/#event-type-compositionend
2621
+ */
2622
+ onCompositionEnd?: AttrEventHandler<CompositionEvent, T>;
2623
+ "on-compositionend"?: this["onCompositionEnd"];
2624
+
2625
+ /**
2626
+ * Fired when a text composition system such as an input method editor starts a new composition session.
2627
+ * @see https://w3c.github.io/uievents/#event-type-compositionstart
2628
+ */
2629
+ onCompositionStart?: AttrEventHandler<CompositionEvent, T>;
2630
+ "on-compositionstart"?: this["onCompositionStart"];
2631
+
2632
+ /**
2633
+ * Fired when a new character is received in the context of a text composition session controlled by a text
2634
+ * composition system such as an input method editor.
2635
+ * @see https://w3c.github.io/uievents/#event-type-compositionupdate
2636
+ */
2637
+ onCompositionUpdate?: AttrEventHandler<CompositionEvent, T>;
2638
+ "on-compositionupdate"?: this["onCompositionUpdate"];
2639
+
2640
+ /**
2641
+ * Fired when the user attempts to open a context menu.
2642
+ * This event is typically triggered by clicking the right mouse button, or by pressing the context menu key.
2643
+ * @see https://w3c.github.io/uievents/#event-type-contextmenu
2644
+ */
2645
+ onContextMenu?: AttrEventHandler<PointerEvent, T>;
2646
+ "on-contextmenu"?: this["onContextMenu"];
2647
+
2648
+ /**
2649
+ * Fired when the user copies the content of an element.
2650
+ * @see https://w3c.github.io/clipboard-apis/#clipboard-event-copy
2651
+ */
2652
+ onCopy?: AttrEventHandler<ClipboardEvent, T>;
2653
+ "on-copy"?: this["onCopy"];
2654
+
2655
+ /**
2656
+ * Fired when the user cuts the content of an element.
2657
+ * @see https://w3c.github.io/clipboard-apis/#clipboard-event-cut
2658
+ */
2659
+ onCut?: AttrEventHandler<ClipboardEvent, T>;
2660
+ "on-cut"?: this["onCut"];
2661
+
2662
+ /**
2663
+ * Fired when the user double-clicks on an element.
2664
+ * @see https://w3c.github.io/uievents/#event-type-dblclick
2665
+ */
2666
+ onDblClick?: AttrEventHandler<MouseEvent, T>;
2667
+ "on-dblclick"?: this["onDblClick"];
2668
+
2669
+ /**
2670
+ * Fired every few hundred milliseconds as an element or text selection is being dragged by the user.
2671
+ * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-drag
2672
+ */
2673
+ onDrag?: AttrEventHandler<DragEvent, T>;
2674
+ "on-drag"?: this["onDrag"];
2675
+
2676
+ /**
2677
+ * Fired when a drag operation is being ended (by releasing a mouse button or hitting the escape key).
2678
+ * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragend
2679
+ */
2680
+ onDragEnd?: AttrEventHandler<DragEvent, T>;
2681
+ "on-dragend"?: this["onDragEnd"];
2682
+
2683
+ /**
2684
+ * Fired when a drag operation is being ended (by releasing a mouse button or hitting the escape key).
2685
+ * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragenter
2686
+ */
2687
+ onDragEnter?: AttrEventHandler<DragEvent, T>;
2688
+ "on-dragenter"?: this["onDragEnter"];
2689
+
2690
+ /**
2691
+ * Fired when a dragged element or text selection leaves a valid drop target.
2692
+ * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragleave
2693
+ */
2694
+ onDragLeave?: AttrEventHandler<DragEvent, T>;
2695
+ "on-dragleave"?: this["onDragLeave"];
2696
+
2697
+ /**
2698
+ * Fired an element or text selection is being dragged over a valid drop target (every few hundred milliseconds).
2699
+ * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragover
2700
+ */
2701
+ onDragOver?: AttrEventHandler<DragEvent, T>;
2702
+ "on-dragover"?: this["onDragOver"];
2703
+
2704
+ /**
2705
+ * Fired when an element or text selection has started being dragged.
2706
+ * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-dragstart
2707
+ */
2708
+ onDragStart?: AttrEventHandler<DragEvent, T>;
2709
+ "on-dragstart"?: this["onDragStart"];
2710
+
2711
+ /**
2712
+ * Fired when an element or text selection is dropped on a valid drop target.
2713
+ * @see https://html.spec.whatwg.org/multipage/dnd.html#event-dnd-drop
2714
+ */
2715
+ onDrop?: AttrEventHandler<DragEvent, T>;
2716
+ "on-drop"?: this["onDrop"];
2717
+
2718
+ /**
2719
+ * Fired when the duration attribute of a media element has just been updated.
2720
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-durationchange
2721
+ */
2722
+ onDurationChange?: AttrEventHandler<Event, T>;
2723
+ "on-durationchange"?: this["onDurationChange"];
2724
+
2725
+ /**
2726
+ * Fired when a media element's playback stops because its source data has been fully consumed and not looped.
2727
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-emptied
2728
+ */
2729
+ onEmptied?: AttrEventHandler<Event, T>;
2730
+ "on-emptied"?: this["onEmptied"];
2731
+
2732
+ /**
2733
+ * Fired when an encrypted media stream is encountered and the user agent recognizes the stream's encryption scheme.
2734
+ * @see https://w3c.github.io/encrypted-media/#dom-evt-encrypted
2735
+ */
2736
+ onEncrypted?: AttrEventHandler<MediaEncryptedEvent, T>;
2737
+ "on-encrypted"?: this["onEncrypted"];
2738
+
2739
+ /**
2740
+ * Fired when playback of a media element reaches its end, either because the media has reached its end or the loop attribute is not set.
2741
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-ended
2742
+ */
2743
+ onEnded?: AttrEventHandler<Event, T>;
2744
+ "on-ended"?: this["onEnded"];
2745
+
2746
+ /**
2747
+ * Fired when an error occurs while fetching an external resource, such as a script, image, or video.
2748
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-error
2749
+ */
2750
+ onError?: AttrEventHandler<ErrorEvent | Event, T>;
2751
+ "on-error"?: this["onError"];
2752
+
2753
+ /**
2754
+ * Fired when an element receives focus, either by user input or via script.
2755
+ * @see https://html.spec.whatwg.org/multipage/interaction.html#event-focus
2756
+ */
2757
+ onFocus?: AttrEventHandler<FocusEvent, T>;
2758
+ "on-focus"?: this["onFocus"];
2759
+
2760
+ /**
2761
+ * Fires when an element has received focus, after the focus event. The two events differ in that focusin bubbles, while focus does not.
2762
+ * @see HTMLAttributes.onFocus
2763
+ * @see https://w3c.github.io/uievents/#event-type-focusin
2764
+ */
2765
+ onFocusIn?: AttrEventHandler<FocusEvent, T>;
2766
+ "on-focusin"?: this["onFocusIn"];
2767
+
2768
+ /**
2769
+ * Fires when an element has lost focus, after the blur event. The two events differ in that focusout bubbles, while blur does not.
2770
+ * @see HTMLAttributes.onBlur
2771
+ * @see https://w3c.github.io/uievents/#event-type-focusout
2772
+ */
2773
+ onFocusOut?: AttrEventHandler<FocusEvent, T>;
2774
+ "on-focusout"?: this["onFocusOut"];
2775
+
2776
+ /**
2777
+ * Fired immediately after an Element switches into or out of fullscreen mode.
2778
+ * @see https://fullscreen.spec.whatwg.org/#handler-document-onfullscreenchange
2779
+ */
2780
+ onFullscreenChange?: AttrEventHandler<Event, T>;
2781
+ "on-fullscreenchange"?: this["onFullscreenChange"];
2782
+
2783
+ /**
2784
+ * Fired when the browser cannot switch to fullscreen mode.
2785
+ * @see https://fullscreen.spec.whatwg.org/#handler-document-onfullscreenerror
2786
+ */
2787
+ onFullscreenError?: AttrEventHandler<Event, T>;
2788
+ "on-fullscreenerror"?: this["onFullscreenError"];
2789
+
2790
+ /**
2791
+ * Fired when an element captures a pointer using setPointerCapture().
2792
+ *
2793
+ * @see Element.setPointerCapture
2794
+ * @see https://w3c.github.io/pointerevents/#the-gotpointercapture-event
2795
+ */
2796
+ onGotPointerCapture?: AttrEventHandler<PointerEvent, T>;
2797
+ "on-gotpointercapture"?: this["onGotPointerCapture"];
2798
+
2799
+ /**
2800
+ * Fired when the form element's value changes, as a result of user input.
2801
+ * @see https://w3c.github.io/uievents/#event-type-input
2802
+ */
2803
+ onInput?: AttrEventHandler<InputEvent, T>;
2804
+ "on-input"?: this["onInput"];
2805
+
2806
+ /**
2807
+ * Fired when a form element is found to be invalid during submission or constraint validation.
2808
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-invalid
2809
+ */
2810
+ onInvalid?: AttrEventHandler<Event, T>;
2811
+ "on-invalid"?: this["onInvalid"];
2812
+
2813
+ /**
2814
+ * Fired when a key is first pressed down.
2815
+ * @see https://w3c.github.io/uievents/#event-type-keydown
2816
+ */
2817
+ onKeyDown?: AttrEventHandler<KeyboardEvent, T>;
2818
+ "on-keydown"?: this["onKeyDown"];
2819
+
2820
+ /**
2821
+ * Fired when a key is pressed down and then released, while the element has focus.
2822
+ * @see https://w3c.github.io/uievents/#event-type-keypress
2823
+ */
2824
+ onKeyPress?: AttrEventHandler<KeyboardEvent, T>;
2825
+ "on-keypress"?: this["onKeyPress"];
2826
+
2827
+ /**
2828
+ * Fired when a key is released after being pressed down.
2829
+ * @see https://w3c.github.io/uievents/#event-type-keyup
2830
+ */
2831
+ onKeyUp?: AttrEventHandler<KeyboardEvent, T>;
2832
+ "on-keyup"?: this["onKeyUp"];
2833
+
2834
+ /**
2835
+ * Fired when an element or resource, such as an image, has completely loaded.
2836
+ * @see https://html.spec.whatwg.org/multipage/indices.html#event-load
2837
+ */
2838
+ onLoad?: AttrEventHandler<Event, T>;
2839
+ "on-load"?: this["onLoad"];
2840
+
2841
+ /**
2842
+ * Fired when the user agent can render the media data at the current playback position for the first time.
2843
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-loadeddata
2844
+ */
2845
+ onLoadedData?: AttrEventHandler<Event, T>;
2846
+ "on-loadeddata"?: this["onLoadedData"];
2847
+
2848
+ /**
2849
+ * Fired when the user agent has just determined the duration and dimensions of the media resource.
2850
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-loadedmetadata
2851
+ */
2852
+ onLoadedMetadata?: AttrEventHandler<Event, T>;
2853
+ "on-loadedmetadata"?: this["onLoadedMetadata"];
2854
+
2855
+ /**
2856
+ * Fired when the user agent begins looking for media data, before the media has begun to load.
2857
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-loadstart
2858
+ */
2859
+ onLoadStart?: AttrEventHandler<Event, T>;
2860
+ "on-loadstart"?: this["onLoadStart"];
2861
+
2862
+ /**
2863
+ * Fired when a captured pointer is released.
2864
+ * @see https://w3c.github.io/pointerevents/#dfn-lostpointercapture
2865
+ */
2866
+ onLostPointerCapture?: AttrEventHandler<PointerEvent, T>;
2867
+ "on-lostpointercapture"?: this["onLostPointerCapture"];
2868
+
2869
+ /**
2870
+ * Fired when a pointing device button is pressed down over an element.
2871
+ * @see https://w3c.github.io/uievents/#event-type-mousedown
2872
+ */
2873
+ onMouseDown?: AttrEventHandler<MouseEvent, T>;
2874
+ "on-mousedown"?: this["onMouseDown"];
2875
+
2876
+ /**
2877
+ * Fired when a pointing device is moved onto the element.
2878
+ * @see https://w3c.github.io/uievents/#event-type-mouseenter
2879
+ */
2880
+ onMouseEnter?: AttrEventHandler<MouseEvent, T>;
2881
+ "on-mouseenter"?: this["onMouseEnter"];
2882
+
2883
+ /**
2884
+ * Fired when a pointing device is moved off the element.
2885
+ * @see https://w3c.github.io/uievents/#event-type-mouseleave
2886
+ */
2887
+ onMouseLeave?: AttrEventHandler<MouseEvent, T>;
2888
+ "on-mouseleave"?: this["onMouseLeave"];
2889
+
2890
+ /**
2891
+ * Fired when a pointing device is moved over an element.
2892
+ * @see https://w3c.github.io/uievents/#event-type-mousemove
2893
+ */
2894
+ onMouseMove?: AttrEventHandler<MouseEvent, T>;
2895
+ "on-mousemove"?: this["onMouseMove"];
2896
+
2897
+ /**
2898
+ * Fired when a pointing device is moved off the element or off one of its children.
2899
+ * @see https://w3c.github.io/uievents/#event-type-mouseout
2900
+ */
2901
+ onMouseOut?: AttrEventHandler<MouseEvent, T>;
2902
+ "on-mouseout"?: this["onMouseOut"];
2903
+
2904
+ /**
2905
+ * Fired when a pointing device is moved onto the element or onto one of its children.
2906
+ * @see https://w3c.github.io/uievents/#event-type-mouseover
2907
+ */
2908
+ onMouseOver?: AttrEventHandler<MouseEvent, T>;
2909
+ "on-mouseover"?: this["onMouseOver"];
2910
+
2911
+ /**
2912
+ * Fired when a pointing device button is released over an element.
2913
+ * @see https://w3c.github.io/uievents/#event-type-mouseup
2914
+ */
2915
+ onMouseUp?: AttrEventHandler<MouseEvent, T>;
2916
+ "on-mouseup"?: this["onMouseUp"];
2917
+
2918
+ /**
2919
+ * Fired when the user has completed a "paste" action, usually through a context menu or keyboard shortcut.
2920
+ * @see https://w3c.github.io/clipboard-apis/#clipboard-event-paste
2921
+ */
2922
+ onPaste?: AttrEventHandler<ClipboardEvent, T>;
2923
+ "on-paste"?: this["onPaste"];
2924
+
2925
+ /**
2926
+ * Fired when playback of a media element is paused.
2927
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-pause
2928
+ */
2929
+ onPause?: AttrEventHandler<Event, T>;
2930
+ "on-pause"?: this["onPause"];
2931
+
2932
+ /**
2933
+ * Fired when playback of a media element is ready to start after having been paused.
2934
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-play
2935
+ */
2936
+ onPlay?: AttrEventHandler<Event, T>;
2937
+ "on-play"?: this["onPlay"];
2938
+
2939
+ /**
2940
+ * Fired when playback of a media element is ready to start, or when playback is resumed after a pause event.
2941
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-playing
2942
+ */
2943
+ onPlaying?: AttrEventHandler<Event, T>;
2944
+ "on-playing"?: this["onPlaying"];
2945
+
2946
+ /**
2947
+ * Fired when the pointing device's hardware triggers a cancellation of the pointer event, such as due to a system event.
2948
+ * @see https://w3c.github.io/pointerevents/#the-pointercancel-event
2949
+ */
2950
+ onPointerCancel?: AttrEventHandler<PointerEvent, T>;
2951
+ "on-pointercancel"?: this["onPointerCancel"];
2952
+
2953
+ /**
2954
+ * Fired when a pointing device's button is pressed down on an element.
2955
+ * @see https://w3c.github.io/pointerevents/#the-pointerdown-event
2956
+ */
2957
+ onPointerDown?: AttrEventHandler<PointerEvent, T>;
2958
+ "on-pointerdown"?: this["onPointerDown"];
2959
+
2960
+ /**
2961
+ * Fired when a pointing device is moved onto the element.
2962
+ * @see https://w3c.github.io/pointerevents/#the-pointerenter-event
2963
+ */
2964
+ onPointerEnter?: AttrEventHandler<PointerEvent, T>;
2965
+ "on-pointerenter"?: this["onPointerEnter"];
2966
+
2967
+ /**
2968
+ * Fired when a pointing device is moved off the element.
2969
+ * @see https://w3c.github.io/pointerevents/#the-pointerleave-event
2970
+ */
2971
+ onPointerLeave?: AttrEventHandler<PointerEvent, T>;
2972
+ "on-pointerleave"?: this["onPointerLeave"];
2973
+
2974
+ /**
2975
+ * Fired when a pointing device is moved over an element.
2976
+ * @see https://w3c.github.io/pointerevents/#the-pointermove-event
2977
+ */
2978
+ onPointerMove?: AttrEventHandler<PointerEvent, T>;
2979
+ "on-pointermove"?: this["onPointerMove"];
2980
+
2981
+ /**
2982
+ * Fired when a pointing device is moved off the element or off one of its children.
2983
+ * @see https://w3c.github.io/pointerevents/#the-pointerout-event
2984
+ */
2985
+ onPointerOut?: AttrEventHandler<PointerEvent, T>;
2986
+ "on-pointerout"?: this["onPointerOut"];
2987
+
2988
+ /**
2989
+ * Fired when a pointing device is moved onto the element or onto one of its children.
2990
+ * @see https://w3c.github.io/pointerevents/#the-pointerover-event
2991
+ */
2992
+ onPointerOver?: AttrEventHandler<PointerEvent, T>;
2993
+ "on-pointerover"?: this["onPointerOver"];
2994
+
2995
+ /**
2996
+ * Fired when a pointing device's button is released over an element.
2997
+ * @see https://w3c.github.io/pointerevents/#the-pointerup-event
2998
+ */
2999
+ onPointerUp?: AttrEventHandler<PointerEvent, T>;
3000
+ "on-pointerup"?: this["onPointerUp"];
3001
+
3002
+ /**
3003
+ * Fired when the user agent is downloading media data or resources, to indicate progress.
3004
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-progress
3005
+ */
3006
+ onProgress?: AttrEventHandler<Event, T>;
3007
+ "on-progress"?: this["onProgress"];
3008
+
3009
+ /**
3010
+ * Fired when the playback rate of a media element has changed.
3011
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-ratechange
3012
+ */
3013
+ onRateChange?: AttrEventHandler<Event, T>;
3014
+ "on-ratechange"?: this["onRateChange"];
3015
+
3016
+ /**
3017
+ * Fired when a form is reset, either by user interaction or through a script.
3018
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#event-reset
3019
+ */
3020
+ onReset?: AttrEventHandler<Event, T>;
3021
+ "on-reset"?: this["onReset"];
3022
+
3023
+ /**
3024
+ * Fired when an element's scrollbar is being scrolled.
3025
+ * @see https://drafts.csswg.org/cssom-view/#eventdef-document-scroll
3026
+ */
3027
+ onScroll?: AttrEventHandler<Event, T>;
3028
+ "on-scroll"?: this["onScroll"];
3029
+
3030
+ /**
3031
+ * Fired when element scrolling has completed. Scrolling is considered completed when the scroll position has no more pending updates and the user has completed their gesture.
3032
+ * @see https://drafts.csswg.org/cssom-view/#eventdef-document-scrollend
3033
+ */
3034
+ onScrollEnd?: AttrEventHandler<Event, T>;
3035
+ "on-scrollend"?: this["onScrollEnd"];
3036
+
3037
+ /**
3038
+ * Fired when a seek operation on a media element completes.
3039
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-seeked
3040
+ */
3041
+ onSeeked?: AttrEventHandler<Event, T>;
3042
+ "on-seeked"?: this["onSeeked"];
3043
+
3044
+ /**
3045
+ * Fired when a seek operation on a media element begins.
3046
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-seeking
3047
+ */
3048
+ onSeeking?: AttrEventHandler<Event, T>;
3049
+ "on-seeking"?: this["onSeeking"];
3050
+
3051
+ /**
3052
+ * Fired when some text is selected within an input or textarea element.
3053
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#event-select
3054
+ */
3055
+ onSelect?: AttrEventHandler<Event, T>;
3056
+ "on-select"?: this["onSelect"];
3057
+
3058
+ /**
3059
+ * Fired when a media element's data downloading has been stalled due to an issue, such as a lack of data.
3060
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-stalled
3061
+ */
3062
+ onStalled?: AttrEventHandler<Event, T>;
3063
+ "on-stalled"?: this["onStalled"];
3064
+
3065
+ /**
3066
+ * Fired when a form is submitted, either by user interaction or through a script.
3067
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#event-submit
3068
+ */
3069
+ onSubmit?: AttrEventHandler<SubmitEvent, T>;
3070
+ "on-submit"?: this["onSubmit"];
3071
+
3072
+ /**
3073
+ * Fired when the user agent intentionally does not download media data.
3074
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-suspend
3075
+ */
3076
+ onSuspend?: AttrEventHandler<Event, T>;
3077
+ "on-suspend"?: this["onSuspend"];
3078
+
3079
+ /**
3080
+ * Fired when the current playback position of a media element changes as part of normal playback or due to a seek operation.
3081
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-timeupdate
3082
+ */
3083
+ onTimeUpdate?: AttrEventHandler<Event, T>;
3084
+ "on-timeupdate"?: this["onTimeUpdate"];
3085
+
3086
+ /**
3087
+ * Fired when a touch event is interrupted, such as by a modal window or an incoming phone call.
3088
+ * @see https://w3c.github.io/touch-events/#event-touchcancel
3089
+ */
3090
+ onTouchCancel?: AttrEventHandler<TouchEvent, T>;
3091
+ "on-touchcancel"?: this["onTouchCancel"];
3092
+
3093
+ /**
3094
+ * Fired when a finger is lifted from a touch surface.
3095
+ * @see https://w3c.github.io/touch-events/#event-touchend
3096
+ */
3097
+ onTouchEnd?: AttrEventHandler<TouchEvent, T>;
3098
+ "on-touchend"?: this["onTouchEnd"];
3099
+
3100
+ /**
3101
+ * Fired when a finger is moved along a touch surface.
3102
+ * @see https://w3c.github.io/touch-events/#event-touchmove
3103
+ */
3104
+ onTouchMove?: AttrEventHandler<TouchEvent, T>;
3105
+ "on-touchmove"?: this["onTouchMove"];
3106
+
3107
+ /**
3108
+ * Fired when a finger is placed on a touch surface.
3109
+ * @see https://w3c.github.io/touch-events/#event-touchstart
3110
+ */
3111
+ onTouchStart?: AttrEventHandler<TouchEvent, T>;
3112
+ "on-touchstart"?: this["onTouchStart"];
3113
+
3114
+ /**
3115
+ * Fired when a CSS transition is canceled.
3116
+ * @see https://drafts.csswg.org/css-transitions/#transitioncancel
3117
+ */
3118
+ onTransitionCancel?: AttrEventHandler<TransitionEvent, T>;
3119
+ "on-transitioncancel"?: this["onTransitionCancel"];
3120
+
3121
+ /**
3122
+ * Fired when a CSS transition has completed.
3123
+ * @see https://drafts.csswg.org/css-transitions/#transitionend
3124
+ */
3125
+ onTransitionEnd?: AttrEventHandler<TransitionEvent, T>;
3126
+ "on-transitionend"?: this["onTransitionEnd"];
3127
+
3128
+ /**
3129
+ * Fired when a CSS transition is first created, i.e. before any transition-delay has begun.
3130
+ * @see https://drafts.csswg.org/css-transitions/#transitionrun
3131
+ */
3132
+ onTransitionRun?: AttrEventHandler<TransitionEvent, T>;
3133
+ "on-transitionrun"?: this["onTransitionRun"];
3134
+
3135
+ /**
3136
+ * Fired when a CSS transition has actually started, i.e., after any transition-delay has ended.
3137
+ * @see https://drafts.csswg.org/css-transitions/#transitionstart
3138
+ */
3139
+ onTransitionStart?: AttrEventHandler<TransitionEvent, T>;
3140
+ "on-transitionstart"?: this["onTransitionStart"];
3141
+
3142
+ /**
3143
+ * Fired when the volume level or muted state of a media element changes.
3144
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-volumechange
3145
+ */
3146
+ onVolumeChange?: AttrEventHandler<Event, T>;
3147
+ "on-volumechange"?: this["onVolumeChange"];
3148
+
3149
+ /**
3150
+ * Fired when a media element is waiting for data to continue playback, such as when buffering.
3151
+ * @see https://html.spec.whatwg.org/multipage/media.html#event-media-waiting
3152
+ */
3153
+ onWaiting?: AttrEventHandler<Event, T>;
3154
+ "on-waiting"?: this["onWaiting"];
3155
+
3156
+ /**
3157
+ * Fired when a user rotates a mouse wheel or similar input device over an element.
3158
+ * @see https://w3c.github.io/uievents/#event-type-wheel
3159
+ */
3160
+ onWheel?: AttrEventHandler<WheelEvent, T>;
3161
+ "on-wheel"?: this["onWheel"];
3162
+
3163
+ /**
3164
+ * data-* global attributes form a class of attributes called custom data attributes, that allow proprietary
3165
+ * information to be exchanged between the HTML and its DOM representation by scripts.
3166
+ * @see https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes
3167
+ */
3168
+ [data: `data-${string}`]: AttrMissing | string | number | boolean;
3169
+ }
3170
+
3171
+ interface AriaAttributes {
3172
+ /**
3173
+ * Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
3174
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant
3175
+ */
3176
+ "aria-activedescendant"?: AttrString;
3177
+ /**
3178
+ * Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
3179
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-atomic
3180
+ * @see aria-relevant
3181
+ */
3182
+ "aria-atomic"?: AttrBooleanString;
3183
+ /**
3184
+ * Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be
3185
+ * presented if they are made.
3186
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete
3187
+ */
3188
+ "aria-autocomplete"?: AttrMissing | "both" | "inline" | "list" | "none";
3189
+ /**
3190
+ * Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.
3191
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-busy
3192
+ */
3193
+ "aria-busy"?: AttrBooleanString;
3194
+ /**
3195
+ * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
3196
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-checked
3197
+ */
3198
+ "aria-checked"?: AttrTriState;
3199
+ /**
3200
+ * Defines the total number of columns in a table, grid, or treegrid.
3201
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-colcount
3202
+ */
3203
+ "aria-colcount"?: AttrStringOrNumber;
3204
+ /**
3205
+ * Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
3206
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-colindex
3207
+ */
3208
+ "aria-colindex"?: AttrStringOrNumber;
3209
+ /**
3210
+ * Defines a human readable text alternative of aria-colindex.
3211
+ * @see https://w3c.github.io/aria/#aria-colindextext
3212
+ * @see aria-colindex
3213
+ */
3214
+ "aria-colindextext"?: AttrString;
3215
+ /**
3216
+ * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
3217
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-colspan
3218
+ */
3219
+ "aria-colspan"?: AttrStringOrNumber;
3220
+ /**
3221
+ * Identifies the element (or elements) whose contents or presence are controlled by the current element.
3222
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-controls
3223
+ * @see aria-owns
3224
+ */
3225
+ "aria-controls"?: AttrString;
3226
+ /**
3227
+ * Indicates the element that represents the current item within a container or set of related elements.
3228
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-current
3229
+ */
3230
+ "aria-current"?:
3231
+ | AttrBooleanString
3232
+ | "date"
3233
+ | "location"
3234
+ | "page"
3235
+ | "step"
3236
+ | "time"
3237
+ | "true";
3238
+ /**
3239
+ * Identifies the element (or elements) that describes the object.
3240
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-describedby
3241
+ * @see aria-labelledby
3242
+ */
3243
+ "aria-describedby"?: AttrString;
3244
+ /**
3245
+ * Defines a string value that describes or annotates the current element.
3246
+ * @see https://w3c.github.io/aria/#aria-description
3247
+ * @see aria-describedby
3248
+ */
3249
+ "aria-description"?: AttrString;
3250
+ /**
3251
+ * Identifies the element that provides a detailed, extended description for the object.
3252
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-details
3253
+ * @see aria-describedby
3254
+ */
3255
+ "aria-details"?: AttrString;
3256
+ /**
3257
+ * Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
3258
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-disabled
3259
+ */
3260
+ "aria-disabled"?: AttrBooleanString;
3261
+ /**
3262
+ * @deprecated Indicates what functions can be performed when a dragged object is released on the drop target.
3263
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect
3264
+ * */
3265
+ "aria-dropeffect"?:
3266
+ | AttrMissing
3267
+ | "copy"
3268
+ | "execute"
3269
+ | "link"
3270
+ | "move"
3271
+ | "none"
3272
+ | "popup";
3273
+ /**
3274
+ * Identifies the element that provides an error message for the object.
3275
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage
3276
+ * @see aria-invalid
3277
+ * @see aria-describedby
3278
+ */
3279
+ "aria-errormessage"?: AttrString;
3280
+ /**
3281
+ * Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
3282
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-expanded
3283
+ * @see aria-controls
3284
+ */
3285
+ "aria-expanded"?: AttrBooleanString;
3286
+ /**
3287
+ * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
3288
+ * allows assistive technology to override the general default of reading in document source order.
3289
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-flowto
3290
+ */
3291
+ "aria-flowto"?: AttrString;
3292
+ /**
3293
+ * @deprecated Indicates an element's "grabbed" state in a drag-and-drop operation.
3294
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed
3295
+ */
3296
+ "aria-grabbed"?: AttrBooleanString;
3297
+ /**
3298
+ * Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
3299
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup
3300
+ */
3301
+ "aria-haspopup"?:
3302
+ | AttrBooleanString
3303
+ | "dialog"
3304
+ | "grid"
3305
+ | "listbox"
3306
+ | "menu"
3307
+ | "tree";
3308
+ /**
3309
+ * Indicates whether the element is exposed to an accessibility API.
3310
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-hidden
3311
+ * @see aria-disabled
3312
+ */
3313
+ "aria-hidden"?: AttrBooleanString;
3314
+ /**
3315
+ * Indicates the entered value does not conform to the format expected by the application.
3316
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-invalid
3317
+ * @see aria-errormessage
3318
+ */
3319
+ "aria-invalid"?: AttrBooleanString | "grammar" | "spelling";
3320
+ /**
3321
+ * Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
3322
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-keyshortcuts
3323
+ */
3324
+ "aria-keyshortcuts"?: AttrString;
3325
+ /**
3326
+ * Defines a string value that labels the current element.
3327
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-label
3328
+ * @see aria-labelledby
3329
+ */
3330
+ "aria-label"?: AttrString;
3331
+ /**
3332
+ * Identifies the element (or elements) that labels the current element.
3333
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby
3334
+ * @see aria-decribedby
3335
+ */
3336
+ "aria-labelledby"?: AttrString;
3337
+ /**
3338
+ * Defines the hierarchical level of an element within a structure.
3339
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-level
3340
+ */
3341
+ "aria-level"?: AttrMissing | number | string;
3342
+ /**
3343
+ * Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies,
3344
+ * and user can expect from the live region.
3345
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-live
3346
+ */
3347
+ "aria-live"?: AttrMissing | "assertive" | "off" | "polite";
3348
+ /**
3349
+ * Indicates whether an element is modal when displayed.
3350
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-modal
3351
+ */
3352
+ "aria-modal"?: AttrBooleanString;
3353
+ /**
3354
+ * Indicates whether a text box accepts multiple lines of input or only a single line.
3355
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-multiline
3356
+ */
3357
+ "aria-multiline"?: AttrBooleanString;
3358
+ /**
3359
+ * Indicates that the user may select more than one item from the current selectable descendants.
3360
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable
3361
+ */
3362
+ "aria-multiselectable"?: AttrBooleanString;
3363
+ /**
3364
+ * Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
3365
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-orientation
3366
+ */
3367
+ "aria-orientation"?: AttrMissing | "horizontal" | "vertical";
3368
+ /**
3369
+ * Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
3370
+ * between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
3371
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-owns
3372
+ */
3373
+ "aria-owns"?: AttrString;
3374
+ /**
3375
+ * Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
3376
+ * A hint could be a sample value or a brief description of the expected format.
3377
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder
3378
+ */
3379
+ "aria-placeholder"?: AttrString;
3380
+ /**
3381
+ * Defines an element's number or position in the current set of listitems or treeitems.
3382
+ * Not required if all elements in the set are present in the DOM.
3383
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-posinset
3384
+ */
3385
+ "aria-posinset"?: AttrStringOrNumber;
3386
+ /**
3387
+ * Indicates the current "pressed" state of toggle buttons.
3388
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-pressed
3389
+ */
3390
+ "aria-pressed"?: AttrTriState;
3391
+ /**
3392
+ * Indicates that the element is not editable, but is otherwise operable.
3393
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-readonly
3394
+ */
3395
+ "aria-readonly"?: AttrBooleanString;
3396
+ /**
3397
+ * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
3398
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-relevant
3399
+ */
3400
+ "aria-relevant"?:
3401
+ | AttrMissing
3402
+ | "additions removals"
3403
+ | "additions text"
3404
+ | "additions"
3405
+ | "all"
3406
+ | "removals additions"
3407
+ | "removals text"
3408
+ | "removals"
3409
+ | "text additions"
3410
+ | "text removals"
3411
+ | "text";
3412
+ /**
3413
+ * Indicates that user input is required on the element before a form may be submitted.
3414
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-required
3415
+ */
3416
+ "aria-required"?: AttrBooleanString;
3417
+ /**
3418
+ * Defines a human-readable, author-localized description for the role of an element.
3419
+ */
3420
+ "aria-roledescription"?: AttrString;
3421
+ /**
3422
+ * Defines the total number of rows in a table, grid, or treegrid.
3423
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount
3424
+ */
3425
+ "aria-rowcount"?: AttrStringOrNumber;
3426
+ /**
3427
+ * Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
3428
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex
3429
+ */
3430
+ "aria-rowindex"?: AttrStringOrNumber;
3431
+ /**
3432
+ * Defines a human readable text alternative of aria-rowindex.
3433
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-rowindextext
3434
+ * @see aria-rowindex
3435
+ */
3436
+ "aria-rowindextext"?: AttrString;
3437
+ /**
3438
+ * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
3439
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan
3440
+ */
3441
+ "aria-rowspan"?: AttrStringOrNumber;
3442
+ /**
3443
+ * Indicates the current "selected" state of various widgets.
3444
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-selected
3445
+ */
3446
+ "aria-selected"?: AttrBooleanString;
3447
+ /**
3448
+ * Defines the number of items in the current set of listitems or treeitems.
3449
+ * Not required if all elements in the set are present in the DOM.
3450
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-setsize
3451
+ */
3452
+ "aria-setsize"?: AttrStringOrNumber;
3453
+ /**
3454
+ * Indicates if items in a table or grid are sorted in ascending or descending order.
3455
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-sort
3456
+ */
3457
+ "aria-sort"?: "ascending" | "descending" | "none" | "other";
3458
+ /**
3459
+ * Defines the maximum allowed value for a range widget.
3460
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax
3461
+ * @see aria-valuenow
3462
+ */
3463
+ "aria-valuemax"?: AttrStringOrNumber;
3464
+ /**
3465
+ * Defines the minimum allowed value for a range widget.
3466
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin
3467
+ * @see aria-valuenow
3468
+ */
3469
+ "aria-valuemin"?: AttrStringOrNumber;
3470
+ /**
3471
+ * Defines the current value for a range widget.
3472
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow
3473
+ * @see aria-valuetext
3474
+ * @see aria-valuemin
3475
+ * @see aria-valuemax
3476
+ */
3477
+ "aria-valuenow"?: AttrStringOrNumber;
3478
+ /**
3479
+ * Defines the human readable text alternative of aria-valuenow for a range widget.
3480
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext
3481
+ * @see aria-valuenow
3482
+ */
3483
+ "aria-valuetext"?: AttrString;
3484
+ /**
3485
+ * Defines the ARIA role of an element.
3486
+ * @see https://www.w3.org/TR/wai-aria-1.1/#role_definitions
3487
+ */
3488
+ role?:
3489
+ | AttrMissing
3490
+ | "alert"
3491
+ | "alertdialog"
3492
+ | "application"
3493
+ | "article"
3494
+ | "banner"
3495
+ | "button"
3496
+ | "cell"
3497
+ | "checkbox"
3498
+ | "columnheader"
3499
+ | "combobox"
3500
+ | "complementary"
3501
+ | "contentinfo"
3502
+ | "definition"
3503
+ | "dialog"
3504
+ | "directory"
3505
+ | "document"
3506
+ | "feed"
3507
+ | "figure"
3508
+ | "form"
3509
+ | "grid"
3510
+ | "gridcell"
3511
+ | "group"
3512
+ | "heading"
3513
+ | "img"
3514
+ | "link"
3515
+ | "list"
3516
+ | "listbox"
3517
+ | "listitem"
3518
+ | "log"
3519
+ | "main"
3520
+ | "marquee"
3521
+ | "math"
3522
+ | "menu"
3523
+ | "menubar"
3524
+ | "menuitem"
3525
+ | "menuitemcheckbox"
3526
+ | "menuitemradio"
3527
+ | "meter"
3528
+ | "navigation"
3529
+ | "none"
3530
+ | "note"
3531
+ | "option"
3532
+ | "presentation"
3533
+ | "progressbar"
3534
+ | "radio"
3535
+ | "radiogroup"
3536
+ | "region"
3537
+ | "row"
3538
+ | "rowgroup"
3539
+ | "rowheader"
3540
+ | "scrollbar"
3541
+ | "search"
3542
+ | "searchbox"
3543
+ | "separator"
3544
+ | "slider"
3545
+ | "spinbutton"
3546
+ | "status"
3547
+ | "switch"
3548
+ | "tab"
3549
+ | "table"
3550
+ | "tablist"
3551
+ | "tabpanel"
3552
+ | "term"
3553
+ | "textbox"
3554
+ | "timer"
3555
+ | "toolbar"
3556
+ | "tooltip"
3557
+ | "tree"
3558
+ | "treegrid"
3559
+ | "treeitem";
3560
+ }
3561
+
3562
+ namespace _ {
3563
+ type Marko·Inputᐸʺaʺᐳ = { [K in keyof HTML.A]: HTML.A[K] };
3564
+ type Marko·Inputᐸʺabbrʺᐳ = { [K in keyof HTML.Abbr]: HTML.Abbr[K] };
3565
+ type Marko·Inputᐸʺaddressʺᐳ = {
3566
+ [K in keyof HTML.Address]: HTML.Address[K];
3567
+ };
3568
+ type Marko·Inputᐸʺareaʺᐳ = { [K in keyof HTML.Area]: HTML.Area[K] };
3569
+ type Marko·Inputᐸʺarticleʺᐳ = {
3570
+ [K in keyof HTML.Article]: HTML.Article[K];
3571
+ };
3572
+ type Marko·Inputᐸʺasideʺᐳ = { [K in keyof HTML.Aside]: HTML.Aside[K] };
3573
+ type Marko·Inputᐸʺaudioʺᐳ = { [K in keyof HTML.Audio]: HTML.Audio[K] };
3574
+ type Marko·Inputᐸʺbʺᐳ = { [K in keyof HTML.B]: HTML.B[K] };
3575
+ type Marko·Inputᐸʺbaseʺᐳ = { [K in keyof HTML.Base]: HTML.Base[K] };
3576
+ type Marko·Inputᐸʺbdiʺᐳ = { [K in keyof HTML.BDI]: HTML.BDI[K] };
3577
+ type Marko·Inputᐸʺbdoʺᐳ = { [K in keyof HTML.BDO]: HTML.BDO[K] };
3578
+ type Marko·Inputᐸʺblockquoteʺᐳ = {
3579
+ [K in keyof HTML.BlockQuote]: HTML.BlockQuote[K];
3580
+ };
3581
+ type Marko·Inputᐸʺbodyʺᐳ = { [K in keyof HTML.Body]: HTML.Body[K] };
3582
+ type Marko·Inputᐸʺbrʺᐳ = { [K in keyof HTML.Br]: HTML.Br[K] };
3583
+ type Marko·Inputᐸʺbuttonʺᐳ = { [K in keyof HTML.Button]: HTML.Button[K] };
3584
+ type Marko·Inputᐸʺcanvasʺᐳ = { [K in keyof HTML.Canvas]: HTML.Canvas[K] };
3585
+ type Marko·Inputᐸʺcaptionʺᐳ = {
3586
+ [K in keyof HTML.Caption]: HTML.Caption[K];
3587
+ };
3588
+ type Marko·Inputᐸʺciteʺᐳ = { [K in keyof HTML.Cite]: HTML.Cite[K] };
3589
+ type Marko·Inputᐸʺcodeʺᐳ = { [K in keyof HTML.Code]: HTML.Code[K] };
3590
+ type Marko·Inputᐸʺcolʺᐳ = { [K in keyof HTML.Col]: HTML.Col[K] };
3591
+ type Marko·Inputᐸʺcolgroupʺᐳ = {
3592
+ [K in keyof HTML.ColGroup]: HTML.ColGroup[K];
3593
+ };
3594
+ type Marko·Inputᐸʺdataʺᐳ = { [K in keyof HTML.Data]: HTML.Data[K] };
3595
+ type Marko·Inputᐸʺdatalistʺᐳ = {
3596
+ [K in keyof HTML.DataList]: HTML.DataList[K];
3597
+ };
3598
+ type Marko·Inputᐸʺddʺᐳ = { [K in keyof HTML.DD]: HTML.DD[K] };
3599
+ type Marko·Inputᐸʺdelʺᐳ = { [K in keyof HTML.Del]: HTML.Del[K] };
3600
+ type Marko·Inputᐸʺdetailsʺᐳ = {
3601
+ [K in keyof HTML.Details]: HTML.Details[K];
3602
+ };
3603
+ type Marko·Inputᐸʺdfnʺᐳ = { [K in keyof HTML.Dfn]: HTML.Dfn[K] };
3604
+ type Marko·Inputᐸʺdialogʺᐳ = { [K in keyof HTML.Dialog]: HTML.Dialog[K] };
3605
+ type Marko·Inputᐸʺdivʺᐳ = { [K in keyof HTML.Div]: HTML.Div[K] };
3606
+ type Marko·Inputᐸʺdlʺᐳ = { [K in keyof HTML.DL]: HTML.DL[K] };
3607
+ type Marko·Inputᐸʺdtʺᐳ = { [K in keyof HTML.DT]: HTML.DT[K] };
3608
+ type Marko·Inputᐸʺemʺᐳ = { [K in keyof HTML.Em]: HTML.Em[K] };
3609
+ type Marko·Inputᐸʺembedʺᐳ = { [K in keyof HTML.Embed]: HTML.Embed[K] };
3610
+ type Marko·Inputᐸʺfieldsetʺᐳ = {
3611
+ [K in keyof HTML.FieldSet]: HTML.FieldSet[K];
3612
+ };
3613
+ type Marko·Inputᐸʺfigcaptionʺᐳ = {
3614
+ [K in keyof HTML.FigCaption]: HTML.FigCaption[K];
3615
+ };
3616
+ type Marko·Inputᐸʺfigureʺᐳ = { [K in keyof HTML.Figure]: HTML.Figure[K] };
3617
+ type Marko·Inputᐸʺfooterʺᐳ = { [K in keyof HTML.Footer]: HTML.Footer[K] };
3618
+ type Marko·Inputᐸʺformʺᐳ = { [K in keyof HTML.Form]: HTML.Form[K] };
3619
+ type Marko·Inputᐸʺh1ʺᐳ = { [K in keyof HTML.H1]: HTML.H1[K] };
3620
+ type Marko·Inputᐸʺh2ʺᐳ = { [K in keyof HTML.H2]: HTML.H2[K] };
3621
+ type Marko·Inputᐸʺh3ʺᐳ = { [K in keyof HTML.H3]: HTML.H3[K] };
3622
+ type Marko·Inputᐸʺh4ʺᐳ = { [K in keyof HTML.H4]: HTML.H4[K] };
3623
+ type Marko·Inputᐸʺh5ʺᐳ = { [K in keyof HTML.H5]: HTML.H5[K] };
3624
+ type Marko·Inputᐸʺh6ʺᐳ = { [K in keyof HTML.H6]: HTML.H6[K] };
3625
+ type Marko·Inputᐸʺheadʺᐳ = { [K in keyof HTML.Head]: HTML.Head[K] };
3626
+ type Marko·Inputᐸʺheaderʺᐳ = { [K in keyof HTML.Header]: HTML.Header[K] };
3627
+ type Marko·Inputᐸʺhgroupʺᐳ = { [K in keyof HTML.HGroup]: HTML.HGroup[K] };
3628
+ type Marko·Inputᐸʺhrʺᐳ = { [K in keyof HTML.HR]: HTML.HR[K] };
3629
+ type Marko·Inputᐸʺhtmlʺᐳ = { [K in keyof HTML.HTML]: HTML.HTML[K] };
3630
+ type Marko·Inputᐸʺiʺᐳ = { [K in keyof HTML.I]: HTML.I[K] };
3631
+ type Marko·Inputᐸʺiframeʺᐳ = { [K in keyof HTML.IFrame]: HTML.IFrame[K] };
3632
+ type Marko·Inputᐸʺimgʺᐳ = { [K in keyof HTML.Img]: HTML.Img[K] };
3633
+ type Marko·Inputᐸʺinputʺᐳ = {} & (
3634
+ | HTML.InputHidden
3635
+ | HTML.InputText
3636
+ | HTML.InputTel
3637
+ | HTML.InputURL
3638
+ | HTML.InputEmail
3639
+ | HTML.InputPassword
3640
+ | HTML.InputDate
3641
+ | HTML.InputMonth
3642
+ | HTML.InputWeek
3643
+ | HTML.InputTime
3644
+ | HTML.InputDateTimeLocal
3645
+ | HTML.InputNumber
3646
+ | HTML.InputRange
3647
+ | HTML.InputColor
3648
+ | HTML.InputCheckbox
3649
+ | HTML.InputRadio
3650
+ | HTML.InputFile
3651
+ | HTML.InputSubmit
3652
+ | HTML.InputImage
3653
+ | HTML.InputReset
3654
+ | HTML.InputButton
3655
+ );
3656
+ type Marko·Inputᐸʺinsʺᐳ = { [K in keyof HTML.Ins]: HTML.Ins[K] };
3657
+ type Marko·Inputᐸʺkbdʺᐳ = { [K in keyof HTML.Kbd]: HTML.Kbd[K] };
3658
+ type Marko·Inputᐸʺlabelʺᐳ = { [K in keyof HTML.Label]: HTML.Label[K] };
3659
+ type Marko·Inputᐸʺlegendʺᐳ = { [K in keyof HTML.Legend]: HTML.Legend[K] };
3660
+ type Marko·Inputᐸʺliʺᐳ = { [K in keyof HTML.LI]: HTML.LI[K] };
3661
+ type Marko·Inputᐸʺlinkʺᐳ = { [K in keyof HTML.Link]: HTML.Link[K] };
3662
+ type Marko·Inputᐸʺmainʺᐳ = { [K in keyof HTML.Main]: HTML.Main[K] };
3663
+ type Marko·Inputᐸʺmapʺᐳ = { [K in keyof HTML.Map]: HTML.Map[K] };
3664
+ type Marko·Inputᐸʺmarkʺᐳ = { [K in keyof HTML.Mark]: HTML.Mark[K] };
3665
+ type Marko·Inputᐸʺmenuʺᐳ = { [K in keyof HTML.Menu]: HTML.Menu[K] };
3666
+ type Marko·Inputᐸʺmetaʺᐳ = { [K in keyof HTML.Meta]: HTML.Meta[K] };
3667
+ type Marko·Inputᐸʺmeterʺᐳ = { [K in keyof HTML.Meter]: HTML.Meter[K] };
3668
+ type Marko·Inputᐸʺnavʺᐳ = { [K in keyof HTML.Nav]: HTML.Nav[K] };
3669
+ type Marko·Inputᐸʺnoscriptʺᐳ = {
3670
+ [K in keyof HTML.NoScript]: HTML.NoScript[K];
3671
+ };
3672
+ type Marko·Inputᐸʺobjectʺᐳ = { [K in keyof HTML.Object]: HTML.Object[K] };
3673
+ type Marko·Inputᐸʺolʺᐳ = { [K in keyof HTML.OL]: HTML.OL[K] };
3674
+ type Marko·Inputᐸʺoptgroupʺᐳ = {
3675
+ [K in keyof HTML.OptGroup]: HTML.OptGroup[K];
3676
+ };
3677
+ type Marko·Inputᐸʺoptionʺᐳ = { [K in keyof HTML.Option]: HTML.Option[K] };
3678
+ type Marko·Inputᐸʺoutputʺᐳ = { [K in keyof HTML.Output]: HTML.Output[K] };
3679
+ type Marko·Inputᐸʺpʺᐳ = { [K in keyof HTML.P]: HTML.P[K] };
3680
+ type Marko·Inputᐸʺpictureʺᐳ = {
3681
+ [K in keyof HTML.Picture]: HTML.Picture[K];
3682
+ };
3683
+ type Marko·Inputᐸʺpreʺᐳ = { [K in keyof HTML.Pre]: HTML.Pre[K] };
3684
+ type Marko·Inputᐸʺprogressʺᐳ = {
3685
+ [K in keyof HTML.Progress]: HTML.Progress[K];
3686
+ };
3687
+ type Marko·Inputᐸʺqʺᐳ = { [K in keyof HTML.Q]: HTML.Q[K] };
3688
+ type Marko·Inputᐸʺrpʺᐳ = { [K in keyof HTML.RP]: HTML.RP[K] };
3689
+ type Marko·Inputᐸʺrtʺᐳ = { [K in keyof HTML.RT]: HTML.RT[K] };
3690
+ type Marko·Inputᐸʺrubyʺᐳ = { [K in keyof HTML.Ruby]: HTML.Ruby[K] };
3691
+ type Marko·Inputᐸʺsʺᐳ = { [K in keyof HTML.S]: HTML.S[K] };
3692
+ type Marko·Inputᐸʺsampʺᐳ = { [K in keyof HTML.Samp]: HTML.Samp[K] };
3693
+ type Marko·Inputᐸʺscriptʺᐳ = { [K in keyof HTML.Script]: HTML.Script[K] };
3694
+ type Marko·Inputᐸʺsectionʺᐳ = {
3695
+ [K in keyof HTML.Section]: HTML.Section[K];
3696
+ };
3697
+ type Marko·Inputᐸʺselectʺᐳ = { [K in keyof HTML.Select]: HTML.Select[K] };
3698
+ type Marko·Inputᐸʺslotʺᐳ = { [K in keyof HTML.Slot]: HTML.Slot[K] };
3699
+ type Marko·Inputᐸʺsmallʺᐳ = { [K in keyof HTML.Small]: HTML.Small[K] };
3700
+ type Marko·Inputᐸʺsourceʺᐳ = { [K in keyof HTML.Source]: HTML.Source[K] };
3701
+ type Marko·Inputᐸʺspanʺᐳ = { [K in keyof HTML.Span]: HTML.Span[K] };
3702
+ type Marko·Inputᐸʺstrongʺᐳ = { [K in keyof HTML.Strong]: HTML.Strong[K] };
3703
+ type Marko·Inputᐸʺstyleʺᐳ = { [K in keyof HTML.Style]: HTML.Style[K] };
3704
+ type Marko·Inputᐸʺsubʺᐳ = { [K in keyof HTML.Sub]: HTML.Sub[K] };
3705
+ type Marko·Inputᐸʺsummaryʺᐳ = {
3706
+ [K in keyof HTML.Summary]: HTML.Summary[K];
3707
+ };
3708
+ type Marko·Inputᐸʺsupʺᐳ = { [K in keyof HTML.Sup]: HTML.Sup[K] };
3709
+ type Marko·Inputᐸʺtableʺᐳ = { [K in keyof HTML.Table]: HTML.Table[K] };
3710
+ type Marko·Inputᐸʺtbodyʺᐳ = { [K in keyof HTML.TBody]: HTML.TBody[K] };
3711
+ type Marko·Inputᐸʺtdʺᐳ = { [K in keyof HTML.TD]: HTML.TD[K] };
3712
+ type Marko·Inputᐸʺtemplateʺᐳ = {
3713
+ [K in keyof HTML.Template]: HTML.Template[K];
3714
+ };
3715
+ type Marko·Inputᐸʺtextareaʺᐳ = {
3716
+ [K in keyof HTML.TextArea]: HTML.TextArea[K];
3717
+ };
3718
+ type Marko·Inputᐸʺtfootʺᐳ = { [K in keyof HTML.TFoot]: HTML.TFoot[K] };
3719
+ type Marko·Inputᐸʺthʺᐳ = { [K in keyof HTML.TH]: HTML.TH[K] };
3720
+ type Marko·Inputᐸʺtheadʺᐳ = { [K in keyof HTML.THead]: HTML.THead[K] };
3721
+ type Marko·Inputᐸʺtimeʺᐳ = { [K in keyof HTML.Time]: HTML.Time[K] };
3722
+ type Marko·Inputᐸʺtitleʺᐳ = { [K in keyof HTML.Title]: HTML.Title[K] };
3723
+ type Marko·Inputᐸʺtrʺᐳ = { [K in keyof HTML.TR]: HTML.TR[K] };
3724
+ type Marko·Inputᐸʺtrackʺᐳ = { [K in keyof HTML.Track]: HTML.Track[K] };
3725
+ type Marko·Inputᐸʺuʺᐳ = { [K in keyof HTML.U]: HTML.U[K] };
3726
+ type Marko·Inputᐸʺulʺᐳ = { [K in keyof HTML.UL]: HTML.UL[K] };
3727
+ type Marko·Inputᐸʺvarʺᐳ = { [K in keyof HTML.Var]: HTML.Var[K] };
3728
+ type Marko·Inputᐸʺvideoʺᐳ = { [K in keyof HTML.Video]: HTML.Video[K] };
3729
+ type Marko·Inputᐸʺwbrʺᐳ = { [K in keyof HTML.WBr]: HTML.WBr[K] };
3730
+ }
3731
+ }
3732
+ }
3733
+
3734
+ type AttrMissing = undefined | null | false;
3735
+ type AttrClass =
3736
+ | AttrMissing
3737
+ | string
3738
+ | AttrClass[]
3739
+ | Record<string, AttrMissing | boolean>;
3740
+ type AttrStyle = AttrMissing | string | csstype.PropertiesHyphen | AttrStyle[];
3741
+ type AttrCrossOrigin = AttrBoolean | "anonymous" | "use-credentials";
3742
+ type AttrEventHandler<Event, Target> =
3743
+ | AttrMissing
3744
+ | ((event: Event, target: Target) => unknown);
3745
+ type AttrTarget =
3746
+ | AttrMissing
3747
+ | "_blank"
3748
+ | "_parent"
3749
+ | "_self"
3750
+ | "_top"
3751
+ | (string & {});
3752
+ type AttrReferrerPolicy =
3753
+ | AttrMissing
3754
+ | "no-referrer-when-downgrade"
3755
+ | "no-referrer"
3756
+ | "origin-when-cross-origin"
3757
+ | "origin"
3758
+ | "same-origin"
3759
+ | "strict-origin-when-cross-origin"
3760
+ | "strict-origin"
3761
+ | "unsafe-url";
3762
+ type AttrString = AttrMissing | string;
3763
+ type AttrStringOrNumber = AttrString | number;
3764
+ type AttrBoolean = AttrMissing | boolean;
3765
+ type AttrBooleanOrString = AttrBoolean | string;
3766
+ type AttrBooleanString = AttrMissing | "false" | "true";
3767
+ type AttrYesNoString = AttrMissing | "no" | "yes";
3768
+ type AttrTriState = AttrBooleanString | "mixed";
3769
+ type AttrOnOff = AttrMissing | "on" | "off";
3770
+ type Tag<Input> = Input extends Marko.HTMLAttributes<infer Element>
3771
+ ? Marko.NativeTag<Input, Element>
3772
+ : never;
3773
+ type UpperCaseChar =
3774
+ | "A"
3775
+ | "B"
3776
+ | "C"
3777
+ | "D"
3778
+ | "E"
3779
+ | "F"
3780
+ | "G"
3781
+ | "H"
3782
+ | "I"
3783
+ | "J"
3784
+ | "K"
3785
+ | "L"
3786
+ | "M"
3787
+ | "N"
3788
+ | "O"
3789
+ | "P"
3790
+ | "Q"
3791
+ | "R"
3792
+ | "S"
3793
+ | "T"
3794
+ | "U"
3795
+ | "V"
3796
+ | "W"
3797
+ | "X"
3798
+ | "Y"
3799
+ | "Z";