@markuplint/html-spec 2.0.0-dev.20211115.0 → 2.0.0-dev.20211213.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/index.json +8519 -5691
  2. package/package.json +5 -3
  3. package/src/aria-in-html/td.json +6 -2
  4. package/src/attributes/a.json +9 -40
  5. package/src/attributes/address.json +11 -0
  6. package/src/attributes/area.json +24 -44
  7. package/src/attributes/article.json +11 -0
  8. package/src/attributes/aside.json +11 -0
  9. package/src/attributes/audio.json +10 -32
  10. package/src/attributes/b.json +11 -0
  11. package/src/attributes/base.json +9 -13
  12. package/src/attributes/bdi.json +11 -0
  13. package/src/attributes/bdo.json +8 -8
  14. package/src/attributes/blockquote.json +11 -4
  15. package/src/attributes/body.json +57 -50
  16. package/src/attributes/br.json +11 -0
  17. package/src/attributes/button.json +27 -44
  18. package/src/attributes/canvas.json +16 -8
  19. package/src/attributes/caption.json +11 -0
  20. package/src/attributes/cite.json +11 -0
  21. package/src/attributes/code.json +11 -0
  22. package/src/attributes/col.json +18 -5
  23. package/src/attributes/colgroup.json +18 -5
  24. package/src/attributes/data.json +12 -5
  25. package/src/attributes/datalist.json +11 -0
  26. package/src/attributes/dd.json +11 -0
  27. package/src/attributes/del.json +14 -7
  28. package/src/attributes/details.json +11 -9
  29. package/src/attributes/dfn.json +11 -0
  30. package/src/attributes/dialog.json +15 -4
  31. package/src/attributes/div.json +11 -0
  32. package/src/attributes/dl.json +11 -0
  33. package/src/attributes/dt.json +11 -0
  34. package/src/attributes/em.json +11 -0
  35. package/src/attributes/embed.json +22 -16
  36. package/src/attributes/fieldset.json +9 -14
  37. package/src/attributes/figcaption.json +11 -0
  38. package/src/attributes/figure.json +11 -0
  39. package/src/attributes/footer.json +11 -0
  40. package/src/attributes/form.json +62 -29
  41. package/src/attributes/h1.json +11 -0
  42. package/src/attributes/h2.json +11 -0
  43. package/src/attributes/h3.json +11 -0
  44. package/src/attributes/h4.json +11 -0
  45. package/src/attributes/h5.json +11 -0
  46. package/src/attributes/h6.json +11 -0
  47. package/src/attributes/head.json +11 -0
  48. package/src/attributes/header.json +11 -0
  49. package/src/attributes/hr.json +11 -0
  50. package/src/attributes/html.json +11 -0
  51. package/src/attributes/i.json +11 -0
  52. package/src/attributes/iframe.json +51 -57
  53. package/src/attributes/img.json +31 -50
  54. package/src/attributes/input.json +128 -120
  55. package/src/attributes/ins.json +14 -7
  56. package/src/attributes/kbd.json +11 -0
  57. package/src/attributes/label.json +11 -8
  58. package/src/attributes/legend.json +11 -0
  59. package/src/attributes/li.json +12 -5
  60. package/src/attributes/link.json +110 -51
  61. package/src/attributes/main.json +11 -0
  62. package/src/attributes/map.json +13 -5
  63. package/src/attributes/mark.json +11 -0
  64. package/src/attributes/menu.json +11 -0
  65. package/src/attributes/meta.json +36 -21
  66. package/src/attributes/meter.json +27 -20
  67. package/src/attributes/nav.json +11 -0
  68. package/src/attributes/noscript.json +11 -0
  69. package/src/attributes/object.json +20 -27
  70. package/src/attributes/ol.json +19 -9
  71. package/src/attributes/optgroup.json +13 -9
  72. package/src/attributes/option.json +18 -14
  73. package/src/attributes/output.json +12 -12
  74. package/src/attributes/p.json +11 -0
  75. package/src/attributes/param.json +17 -8
  76. package/src/attributes/picture.json +11 -0
  77. package/src/attributes/portal.json +17 -8
  78. package/src/attributes/pre.json +11 -0
  79. package/src/attributes/progress.json +16 -8
  80. package/src/attributes/q.json +11 -4
  81. package/src/attributes/rp.json +11 -0
  82. package/src/attributes/rt.json +11 -0
  83. package/src/attributes/ruby.json +11 -0
  84. package/src/attributes/s.json +11 -0
  85. package/src/attributes/samp.json +11 -0
  86. package/src/attributes/script.json +48 -27
  87. package/src/attributes/section.json +11 -0
  88. package/src/attributes/select.json +17 -29
  89. package/src/attributes/slot.json +12 -5
  90. package/src/attributes/small.json +11 -0
  91. package/src/attributes/source.json +34 -16
  92. package/src/attributes/span.json +11 -0
  93. package/src/attributes/strong.json +11 -0
  94. package/src/attributes/style.json +12 -5
  95. package/src/attributes/sub.json +11 -0
  96. package/src/attributes/summary.json +11 -0
  97. package/src/attributes/sup.json +11 -0
  98. package/src/attributes/svg_a.json +81 -47
  99. package/src/attributes/svg_animate.json +93 -13
  100. package/src/attributes/svg_animateMotion.json +36 -32
  101. package/src/attributes/svg_animateTransform.json +27 -14
  102. package/src/attributes/svg_circle.json +87 -26
  103. package/src/attributes/svg_clipPath.json +79 -15
  104. package/src/attributes/svg_defs.json +76 -1
  105. package/src/attributes/svg_desc.json +7 -1
  106. package/src/attributes/svg_discard.json +13 -10
  107. package/src/attributes/svg_ellipse.json +88 -27
  108. package/src/attributes/svg_feBlend.json +88 -40
  109. package/src/attributes/svg_feColorMatrix.json +85 -38
  110. package/src/attributes/svg_feComponentTransfer.json +75 -31
  111. package/src/attributes/svg_feComposite.json +113 -56
  112. package/src/attributes/svg_feConvolveMatrix.json +118 -62
  113. package/src/attributes/svg_feDiffuseLighting.json +90 -42
  114. package/src/attributes/svg_feDisplacementMap.json +100 -47
  115. package/src/attributes/svg_feDistantLight.json +16 -11
  116. package/src/attributes/svg_feDropShadow.json +91 -43
  117. package/src/attributes/svg_feFlood.json +82 -37
  118. package/src/attributes/svg_feFuncA.json +6 -10
  119. package/src/attributes/svg_feFuncB.json +6 -10
  120. package/src/attributes/svg_feFuncG.json +6 -10
  121. package/src/attributes/svg_feFuncR.json +6 -10
  122. package/src/attributes/svg_feGaussianBlur.json +85 -38
  123. package/src/attributes/svg_feImage.json +97 -31
  124. package/src/attributes/svg_feMerge.json +75 -15
  125. package/src/attributes/svg_feMergeNode.json +6 -19
  126. package/src/attributes/svg_feMorphology.json +87 -39
  127. package/src/attributes/svg_feOffset.json +86 -39
  128. package/src/attributes/svg_fePointLight.json +21 -15
  129. package/src/attributes/svg_feSpecularLighting.json +95 -47
  130. package/src/attributes/svg_feSpotLight.json +52 -58
  131. package/src/attributes/svg_feTile.json +75 -31
  132. package/src/attributes/svg_feTurbulence.json +100 -33
  133. package/src/attributes/svg_filter.json +102 -27
  134. package/src/attributes/svg_foreignObject.json +83 -38
  135. package/src/attributes/svg_g.json +79 -8
  136. package/src/attributes/svg_hatch.json +103 -29
  137. package/src/attributes/svg_hatchpath.json +79 -11
  138. package/src/attributes/svg_image.json +97 -46
  139. package/src/attributes/svg_line.json +104 -27
  140. package/src/attributes/svg_linearGradient.json +118 -37
  141. package/src/attributes/svg_marker.json +124 -44
  142. package/src/attributes/svg_mask.json +89 -22
  143. package/src/attributes/svg_mesh.json +82 -10
  144. package/src/attributes/svg_meshgradient.json +22 -29
  145. package/src/attributes/svg_meshpatch.json +75 -1
  146. package/src/attributes/svg_meshrow.json +75 -1
  147. package/src/attributes/svg_metadata.json +7 -1
  148. package/src/attributes/svg_mpath.json +11 -8
  149. package/src/attributes/svg_path.json +86 -15
  150. package/src/attributes/svg_pattern.json +110 -46
  151. package/src/attributes/svg_polygon.json +88 -14
  152. package/src/attributes/svg_polyline.json +88 -14
  153. package/src/attributes/svg_radialGradient.json +132 -49
  154. package/src/attributes/svg_rect.json +90 -51
  155. package/src/attributes/svg_script.json +20 -17
  156. package/src/attributes/svg_set.json +27 -13
  157. package/src/attributes/svg_stop.json +92 -18
  158. package/src/attributes/svg_style.json +16 -13
  159. package/src/attributes/svg_svg.json +114 -62
  160. package/src/attributes/svg_switch.json +79 -8
  161. package/src/attributes/svg_symbol.json +27 -44
  162. package/src/attributes/svg_text.json +114 -32
  163. package/src/attributes/svg_textPath.json +123 -37
  164. package/src/attributes/svg_title.json +7 -1
  165. package/src/attributes/svg_tspan.json +110 -32
  166. package/src/attributes/svg_use.json +87 -46
  167. package/src/attributes/svg_view.json +21 -17
  168. package/src/attributes/table.json +11 -0
  169. package/src/attributes/tbody.json +11 -0
  170. package/src/attributes/td.json +9 -14
  171. package/src/attributes/template.json +11 -0
  172. package/src/attributes/textarea.json +42 -50
  173. package/src/attributes/tfoot.json +11 -0
  174. package/src/attributes/th.json +18 -20
  175. package/src/attributes/thead.json +11 -0
  176. package/src/attributes/time.json +12 -23
  177. package/src/attributes/title.json +11 -0
  178. package/src/attributes/tr.json +11 -0
  179. package/src/attributes/track.json +38 -0
  180. package/src/attributes/u.json +11 -0
  181. package/src/attributes/ul.json +11 -0
  182. package/src/attributes/var.json +11 -0
  183. package/src/attributes/video.json +34 -48
  184. package/src/attributes/wbr.json +11 -0
  185. package/src/global-attributes/_global.json +1334 -1161
  186. package/src/permitted-structures/svg_a.json +1 -1
  187. package/src/structure.test.ts +64 -0
  188. package/src/attributes/_custom.json +0 -10
@@ -0,0 +1,38 @@
1
+ {
2
+ "tag": "track",
3
+ "ref": "https://html.spec.whatwg.org/multipage/media.html#the-track-element",
4
+ "global": {
5
+ "#HTMLGlobalAttrs": true,
6
+ "#GlobalEventAttrs": true,
7
+ "#DocumentElementEventAttrs": true,
8
+ "#ARIAAttrs": true
9
+ },
10
+ "attributes": {
11
+ "kind": {
12
+ "ref": "https://html.spec.whatwg.org/multipage/media.html#attr-track-kind",
13
+ "type": {
14
+ "enum": ["subtitles", "captions", "descriptions", "chapters", "metadata"],
15
+ "missingValueDefault": "metadata",
16
+ "invalidValueDefault": "metadata"
17
+ }
18
+ },
19
+ "src": {
20
+ "ref": "https://html.spec.whatwg.org/multipage/media.html#attr-track-src",
21
+ "type": "URL",
22
+ "required": true
23
+ },
24
+ "srclang": {
25
+ "ref": "https://html.spec.whatwg.org/multipage/media.html#attr-track-srclang",
26
+ "type": "BCP47"
27
+ },
28
+ "label": {
29
+ "ref": "https://html.spec.whatwg.org/multipage/media.html#attr-track-label",
30
+ "type": "NoEmptyAny",
31
+ "_TODO_": "> The value of the label attribute, if the attribute is present, must not be the empty string. Furthermore, there must not be two track element children of the same media element whose kind attributes are in the same state, whose srclang attributes are both missing or have values that represent the same language, and whose label attributes are again both missing or both have the same value."
32
+ },
33
+ "default": {
34
+ "ref": "https://html.spec.whatwg.org/multipage/media.html#attr-track-default",
35
+ "type": "Boolean"
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "tag": "sup",
3
+ "ref": "https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-u-element",
4
+ "global": {
5
+ "#HTMLGlobalAttrs": true,
6
+ "#GlobalEventAttrs": true,
7
+ "#DocumentElementEventAttrs": true,
8
+ "#ARIAAttrs": true
9
+ },
10
+ "attributes": {}
11
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "tag": "pre",
3
+ "ref": "https://html.spec.whatwg.org/multipage/grouping-content.html#the-ul-element",
4
+ "global": {
5
+ "#HTMLGlobalAttrs": true,
6
+ "#GlobalEventAttrs": true,
7
+ "#DocumentElementEventAttrs": true,
8
+ "#ARIAAttrs": true
9
+ },
10
+ "attributes": {}
11
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "tag": "var",
3
+ "ref": "https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-var-element",
4
+ "global": {
5
+ "#HTMLGlobalAttrs": true,
6
+ "#GlobalEventAttrs": true,
7
+ "#DocumentElementEventAttrs": true,
8
+ "#ARIAAttrs": true
9
+ },
10
+ "attributes": {}
11
+ }
@@ -1,57 +1,43 @@
1
1
  {
2
2
  "tag": "video",
3
- "attributes": [
4
- {
5
- "name": "autoplay",
6
- "type": "Boolean"
7
- },
8
- {
9
- "name": "controls",
10
- "type": "Boolean"
11
- },
12
- {
13
- "name": "crossorigin",
14
- "type": "Crossorigin"
15
- },
16
- {
17
- "name": "height",
18
- "type": "Uint"
19
- },
20
- {
21
- "name": "loop",
22
- "type": "Boolean"
23
- },
24
- {
25
- "name": "muted",
26
- "type": "Boolean"
27
- },
28
- {
29
- "name": "preload",
30
- "type": {
31
- "enum": ["none", "metadata", "auto", ""]
32
- }
33
- },
34
- {
35
- "name": "playsinline",
36
- "type": "Boolean"
37
- },
38
- {
39
- "name": "poster",
40
- "type": "URL"
41
- },
42
- {
43
- "name": "src",
3
+ "ref": "https://html.spec.whatwg.org/multipage/media.html#the-video-element",
4
+ "global": {
5
+ "#HTMLGlobalAttrs": true,
6
+ "#GlobalEventAttrs": true,
7
+ "#DocumentElementEventAttrs": true,
8
+ "#ARIAAttrs": true,
9
+ "#HTMLLinkAndFetchingAttrs": ["crossorigin"],
10
+ "#HTMLEmbededAndMediaContentAttrs": [
11
+ "src",
12
+ "preload",
13
+ "autoplay",
14
+ "loop",
15
+ "muted",
16
+ "controls",
17
+ "height",
18
+ "width"
19
+ ]
20
+ },
21
+ "attributes": {
22
+ "poster": {
23
+ "ref": "https://html.spec.whatwg.org/multipage/media.html#attr-video-poster",
44
24
  "type": "URL"
45
25
  },
46
- {
47
- "name": "width",
48
- "type": "Uint"
26
+ "playsinline": {
27
+ "ref": "https://html.spec.whatwg.org/multipage/media.html#attr-video-playsinline",
28
+ "type": "Boolean"
49
29
  },
50
- {
51
- "name": "controlslist",
30
+ "controlslist": {
31
+ "ref": "https://wicg.github.io/controls-list/html-output/multipage/embedded-content.html#attr-media-controlslist",
52
32
  "type": {
53
- "enum": ["nodownload", "nofullscreen", "noremoteplayback"]
33
+ "token": {
34
+ "enum": ["nodownload", "nofullscreen", "noremoteplayback"]
35
+ },
36
+ "ordered": false,
37
+ "caseInsensitive": true,
38
+ "unique": true,
39
+ "separator": "space"
54
40
  }
55
41
  }
56
- ]
42
+ }
57
43
  }
@@ -0,0 +1,11 @@
1
+ {
2
+ "tag": "wbr",
3
+ "ref": "https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-wbr-element",
4
+ "global": {
5
+ "#HTMLGlobalAttrs": true,
6
+ "#GlobalEventAttrs": true,
7
+ "#DocumentElementEventAttrs": true,
8
+ "#ARIAAttrs": true
9
+ },
10
+ "attributes": {}
11
+ }