marko 5.37.5 → 6.0.0-3.11

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