@markuplint/html-spec 3.0.0-alpha.66 → 3.0.0-dev.176

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 (183) hide show
  1. package/README.md +8 -3
  2. package/index.json +15447 -2574
  3. package/package.json +13 -10
  4. package/src/spec-common.attributes.json +0 -1650
  5. package/src/spec-common.contents.json +0 -313
  6. package/src/spec.a.json +0 -59
  7. package/src/spec.abbr.json +0 -25
  8. package/src/spec.address.json +0 -26
  9. package/src/spec.area.json +0 -64
  10. package/src/spec.article.json +0 -24
  11. package/src/spec.aside.json +0 -38
  12. package/src/spec.audio.json +0 -50
  13. package/src/spec.b.json +0 -24
  14. package/src/spec.base.json +0 -21
  15. package/src/spec.bdi.json +0 -24
  16. package/src/spec.bdo.json +0 -24
  17. package/src/spec.blockquote.json +0 -31
  18. package/src/spec.body.json +0 -100
  19. package/src/spec.br.json +0 -32
  20. package/src/spec.button.json +0 -71
  21. package/src/spec.canvas.json +0 -34
  22. package/src/spec.caption.json +0 -30
  23. package/src/spec.cite.json +0 -24
  24. package/src/spec.code.json +0 -27
  25. package/src/spec.col.json +0 -31
  26. package/src/spec.colgroup.json +0 -41
  27. package/src/spec.data.json +0 -29
  28. package/src/spec.datalist.json +0 -38
  29. package/src/spec.dd.json +0 -30
  30. package/src/spec.del.json +0 -36
  31. package/src/spec.details.json +0 -35
  32. package/src/spec.dfn.json +0 -24
  33. package/src/spec.dialog.json +0 -36
  34. package/src/spec.div.json +0 -55
  35. package/src/spec.dl.json +0 -50
  36. package/src/spec.dt.json +0 -27
  37. package/src/spec.em.json +0 -27
  38. package/src/spec.embed.json +0 -30
  39. package/src/spec.fieldset.json +0 -27
  40. package/src/spec.figcaption.json +0 -24
  41. package/src/spec.figure.json +0 -41
  42. package/src/spec.footer.json +0 -38
  43. package/src/spec.form.json +0 -101
  44. package/src/spec.h1.json +0 -26
  45. package/src/spec.h2.json +0 -26
  46. package/src/spec.h3.json +0 -26
  47. package/src/spec.h4.json +0 -26
  48. package/src/spec.h5.json +0 -26
  49. package/src/spec.h6.json +0 -26
  50. package/src/spec.head.json +0 -32
  51. package/src/spec.header.json +0 -38
  52. package/src/spec.hgroup.json +0 -37
  53. package/src/spec.hr.json +0 -23
  54. package/src/spec.html.json +0 -27
  55. package/src/spec.i.json +0 -24
  56. package/src/spec.iframe.json +0 -74
  57. package/src/spec.img.json +0 -109
  58. package/src/spec.input.json +0 -792
  59. package/src/spec.ins.json +0 -36
  60. package/src/spec.kbd.json +0 -24
  61. package/src/spec.label.json +0 -30
  62. package/src/spec.legend.json +0 -24
  63. package/src/spec.li.json +0 -40
  64. package/src/spec.link.json +0 -140
  65. package/src/spec.main.json +0 -27
  66. package/src/spec.map.json +0 -30
  67. package/src/spec.mark.json +0 -24
  68. package/src/spec.math.json +0 -20
  69. package/src/spec.menu.json +0 -53
  70. package/src/spec.meta.json +0 -59
  71. package/src/spec.meter.json +0 -63
  72. package/src/spec.nav.json +0 -26
  73. package/src/spec.noscript.json +0 -24
  74. package/src/spec.object.json +0 -40
  75. package/src/spec.ol.json +0 -71
  76. package/src/spec.optgroup.json +0 -34
  77. package/src/spec.option.json +0 -70
  78. package/src/spec.output.json +0 -29
  79. package/src/spec.p.json +0 -27
  80. package/src/spec.picture.json +0 -46
  81. package/src/spec.portal.json +0 -25
  82. package/src/spec.pre.json +0 -24
  83. package/src/spec.progress.json +0 -45
  84. package/src/spec.q.json +0 -30
  85. package/src/spec.rp.json +0 -24
  86. package/src/spec.rt.json +0 -24
  87. package/src/spec.ruby.json +0 -56
  88. package/src/spec.s.json +0 -24
  89. package/src/spec.samp.json +0 -24
  90. package/src/spec.script.json +0 -73
  91. package/src/spec.section.json +0 -73
  92. package/src/spec.select.json +0 -66
  93. package/src/spec.slot.json +0 -29
  94. package/src/spec.small.json +0 -24
  95. package/src/spec.source.json +0 -52
  96. package/src/spec.span.json +0 -24
  97. package/src/spec.strong.json +0 -27
  98. package/src/spec.style.json +0 -35
  99. package/src/spec.sub.json +0 -27
  100. package/src/spec.summary.json +0 -38
  101. package/src/spec.sup.json +0 -27
  102. package/src/spec.svg_a.json +0 -119
  103. package/src/spec.svg_animate.json +0 -109
  104. package/src/spec.svg_animateMotion.json +0 -73
  105. package/src/spec.svg_animateTransform.json +0 -47
  106. package/src/spec.svg_circle.json +0 -113
  107. package/src/spec.svg_clipPath.json +0 -101
  108. package/src/spec.svg_defs.json +0 -109
  109. package/src/spec.svg_desc.json +0 -21
  110. package/src/spec.svg_discard.json +0 -31
  111. package/src/spec.svg_ellipse.json +0 -116
  112. package/src/spec.svg_feBlend.json +0 -115
  113. package/src/spec.svg_feColorMatrix.json +0 -104
  114. package/src/spec.svg_feComponentTransfer.json +0 -97
  115. package/src/spec.svg_feComposite.json +0 -146
  116. package/src/spec.svg_feConvolveMatrix.json +0 -147
  117. package/src/spec.svg_feDiffuseLighting.json +0 -126
  118. package/src/spec.svg_feDisplacementMap.json +0 -133
  119. package/src/spec.svg_feDistantLight.json +0 -32
  120. package/src/spec.svg_feDropShadow.json +0 -109
  121. package/src/spec.svg_feFlood.json +0 -101
  122. package/src/spec.svg_feFuncA.json +0 -20
  123. package/src/spec.svg_feFuncB.json +0 -20
  124. package/src/spec.svg_feFuncG.json +0 -20
  125. package/src/spec.svg_feFuncR.json +0 -20
  126. package/src/spec.svg_feGaussianBlur.json +0 -105
  127. package/src/spec.svg_feImage.json +0 -123
  128. package/src/spec.svg_feMerge.json +0 -90
  129. package/src/spec.svg_feMergeNode.json +0 -20
  130. package/src/spec.svg_feMorphology.json +0 -106
  131. package/src/spec.svg_feOffset.json +0 -103
  132. package/src/spec.svg_fePointLight.json +0 -38
  133. package/src/spec.svg_feSpecularLighting.json +0 -131
  134. package/src/spec.svg_feSpotLight.json +0 -67
  135. package/src/spec.svg_feTile.json +0 -90
  136. package/src/spec.svg_feTurbulence.json +0 -126
  137. package/src/spec.svg_filter.json +0 -138
  138. package/src/spec.svg_foreignObject.json +0 -97
  139. package/src/spec.svg_g.json +0 -115
  140. package/src/spec.svg_image.json +0 -128
  141. package/src/spec.svg_line.json +0 -136
  142. package/src/spec.svg_linearGradient.json +0 -152
  143. package/src/spec.svg_marker.json +0 -180
  144. package/src/spec.svg_mask.json +0 -142
  145. package/src/spec.svg_metadata.json +0 -21
  146. package/src/spec.svg_mpath.json +0 -26
  147. package/src/spec.svg_path.json +0 -114
  148. package/src/spec.svg_pattern.json +0 -157
  149. package/src/spec.svg_polygon.json +0 -117
  150. package/src/spec.svg_polyline.json +0 -117
  151. package/src/spec.svg_radialGradient.json +0 -162
  152. package/src/spec.svg_rect.json +0 -118
  153. package/src/spec.svg_script.json +0 -40
  154. package/src/spec.svg_set.json +0 -42
  155. package/src/spec.svg_stop.json +0 -110
  156. package/src/spec.svg_style.json +0 -36
  157. package/src/spec.svg_svg.json +0 -170
  158. package/src/spec.svg_switch.json +0 -105
  159. package/src/spec.svg_symbol.json +0 -77
  160. package/src/spec.svg_text.json +0 -153
  161. package/src/spec.svg_textPath.json +0 -169
  162. package/src/spec.svg_title.json +0 -21
  163. package/src/spec.svg_tspan.json +0 -147
  164. package/src/spec.svg_use.json +0 -115
  165. package/src/spec.svg_view.json +0 -45
  166. package/src/spec.table.json +0 -64
  167. package/src/spec.tbody.json +0 -23
  168. package/src/spec.td.json +0 -37
  169. package/src/spec.template.json +0 -24
  170. package/src/spec.textarea.json +0 -67
  171. package/src/spec.tfoot.json +0 -23
  172. package/src/spec.th.json +0 -67
  173. package/src/spec.thead.json +0 -23
  174. package/src/spec.time.json +0 -32
  175. package/src/spec.title.json +0 -24
  176. package/src/spec.tr.json +0 -29
  177. package/src/spec.track.json +0 -54
  178. package/src/spec.u.json +0 -24
  179. package/src/spec.ul.json +0 -53
  180. package/src/spec.var.json +0 -24
  181. package/src/spec.video.json +0 -80
  182. package/src/spec.wbr.json +0 -25
  183. package/src/structure.test.ts +0 -84
package/src/spec.div.json DELETED
@@ -1,55 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/grouping-content.html#the-div-element
2
- // https://www.w3.org/TR/html-aria/#el-div
3
- // https://w3c.github.io/html-aria/#el-div
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "zeroOrMore": "#flow"
9
- }
10
- ],
11
- "conditional": [
12
- {
13
- "condition": "dl > div",
14
- "contents": [
15
- {
16
- "zeroOrMore": "#script-supporting"
17
- },
18
- {
19
- "oneOrMore": "dt"
20
- },
21
- {
22
- "zeroOrMore": "#script-supporting"
23
- },
24
- {
25
- "oneOrMore": "dd"
26
- },
27
- {
28
- "zeroOrMore": "#script-supporting"
29
- }
30
- ]
31
- }
32
- ]
33
- },
34
- "globalAttrs": {
35
- "#HTMLGlobalAttrs": true,
36
- "#GlobalEventAttrs": true,
37
- "#DocumentElementEventAttrs": true,
38
- "#ARIAAttrs": true
39
- },
40
- "attributes": {},
41
- "aria": {
42
- "implicitRole": "generic",
43
- "permittedRoles": true,
44
- "namingProhibited": true,
45
- "conditions": {
46
- "dl > div": {
47
- "permittedRoles": ["presentation", "none"]
48
- }
49
- },
50
- "1.1": {
51
- "implicitRole": false,
52
- "permittedRoles": true
53
- }
54
- }
55
- }
package/src/spec.dl.json DELETED
@@ -1,50 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/grouping-content.html#the-dl-element
2
- // https://www.w3.org/TR/html-aria/#el-dl
3
- // https://w3c.github.io/html-aria/#el-dl
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "choice": [
9
- [
10
- {
11
- "oneOrMore": [
12
- {
13
- "zeroOrMore": "#script-supporting"
14
- },
15
- {
16
- "oneOrMore": "dt"
17
- },
18
- {
19
- "zeroOrMore": "#script-supporting"
20
- },
21
- {
22
- "oneOrMore": "dd"
23
- },
24
- {
25
- "zeroOrMore": "#script-supporting"
26
- }
27
- ]
28
- }
29
- ],
30
- [
31
- {
32
- "oneOrMore": ["div", "#script-supporting"]
33
- }
34
- ]
35
- ]
36
- }
37
- ]
38
- },
39
- "globalAttrs": {
40
- "#HTMLGlobalAttrs": true,
41
- "#GlobalEventAttrs": true,
42
- "#DocumentElementEventAttrs": true,
43
- "#ARIAAttrs": true
44
- },
45
- "attributes": {},
46
- "aria": {
47
- "implicitRole": false,
48
- "permittedRoles": ["group", "list", "none", "presentation"]
49
- }
50
- }
package/src/spec.dt.json DELETED
@@ -1,27 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/grouping-content.html#the-dt-element
2
- // https://www.w3.org/TR/html-aria/#el-dt
3
- // https://w3c.github.io/html-aria/#el-dt
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "zeroOrMore": "#flow",
9
- "notAllowedDescendants": ["header", "footer", "#sectioning", "#heading"]
10
- }
11
- ]
12
- },
13
- "globalAttrs": {
14
- "#HTMLGlobalAttrs": true,
15
- "#GlobalEventAttrs": true,
16
- "#DocumentElementEventAttrs": true,
17
- "#ARIAAttrs": true
18
- },
19
- "attributes": {},
20
- "aria": {
21
- "implicitRole": false,
22
- "permittedRoles": ["listitem"],
23
- "1.1": {
24
- "implicitRole": "term"
25
- }
26
- }
27
- }
package/src/spec.em.json DELETED
@@ -1,27 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-em-element
2
- // https://www.w3.org/TR/html-aria/#el-em
3
- // https://w3c.github.io/html-aria/#el-em
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "zeroOrMore": "#phrasing"
9
- }
10
- ]
11
- },
12
- "globalAttrs": {
13
- "#HTMLGlobalAttrs": true,
14
- "#GlobalEventAttrs": true,
15
- "#DocumentElementEventAttrs": true,
16
- "#ARIAAttrs": true
17
- },
18
- "attributes": {},
19
- "aria": {
20
- "implicitRole": "emphasis",
21
- "permittedRoles": true,
22
- "namingProhibited": true,
23
- "1.1": {
24
- "implicitRole": false
25
- }
26
- }
27
- }
@@ -1,30 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-embed-element
2
- // https://www.w3.org/TR/html-aria/#el-embed
3
- // https://w3c.github.io/html-aria/#el-embed
4
- {
5
- "contentModel": {
6
- "contents": false
7
- },
8
- "globalAttrs": {
9
- "#HTMLGlobalAttrs": true,
10
- "#GlobalEventAttrs": true,
11
- "#DocumentElementEventAttrs": true,
12
- "#ARIAAttrs": true,
13
- "#HTMLEmbededAndMediaContentAttrs": ["height", "width"]
14
- },
15
- "attributes": {
16
- // https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-embed-src
17
- "src": {
18
- "type": "URL",
19
- "required": "[itemprop]"
20
- },
21
- // https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-embed-type
22
- "type": {
23
- "type": "MIMEType"
24
- }
25
- },
26
- "aria": {
27
- "implicitRole": false,
28
- "permittedRoles": ["application", "document", "img", "none", "presentation"]
29
- }
30
- }
@@ -1,27 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/form-elements.html#the-fieldset-element
2
- // https://www.w3.org/TR/html-aria/#el-fieldset
3
- // https://w3c.github.io/html-aria/#el-fieldset
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "optional": "legend"
9
- },
10
- {
11
- "zeroOrMore": "#flow"
12
- }
13
- ]
14
- },
15
- "globalAttrs": {
16
- "#HTMLGlobalAttrs": true,
17
- "#GlobalEventAttrs": true,
18
- "#DocumentElementEventAttrs": true,
19
- "#ARIAAttrs": true,
20
- "#HTMLFormControlElementAttrs": ["disabled", "form", "name"]
21
- },
22
- "attributes": {},
23
- "aria": {
24
- "implicitRole": "group",
25
- "permittedRoles": ["radiogroup", "presentation", "none"]
26
- }
27
- }
@@ -1,24 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/grouping-content.html#the-figcaption-element
2
- // https://www.w3.org/TR/html-aria/#el-figcaption
3
- // https://w3c.github.io/html-aria/#el-figcaption
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "zeroOrMore": "#flow"
9
- }
10
- ]
11
- },
12
- "globalAttrs": {
13
- "#HTMLGlobalAttrs": true,
14
- "#GlobalEventAttrs": true,
15
- "#DocumentElementEventAttrs": true,
16
- "#ARIAAttrs": true
17
- },
18
- "attributes": {},
19
- "aria": {
20
- "implicitRole": false,
21
- "permittedRoles": ["group", "none", "presentation"],
22
- "namingProhibited": true
23
- }
24
- }
@@ -1,41 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/grouping-content.html#the-figure-element
2
- // https://www.w3.org/TR/html-aria/#el-figure
3
- // https://w3c.github.io/html-aria/#el-figure
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "interleave": [
9
- [
10
- {
11
- "optional": "figcaption"
12
- }
13
- ],
14
- [
15
- {
16
- "zeroOrMore": "#flow"
17
- }
18
- ]
19
- ]
20
- }
21
- ]
22
- },
23
- "globalAttrs": {
24
- "#HTMLGlobalAttrs": true,
25
- "#GlobalEventAttrs": true,
26
- "#DocumentElementEventAttrs": true,
27
- "#ARIAAttrs": true
28
- },
29
- "attributes": {},
30
- "aria": {
31
- "implicitRole": "figure",
32
- // If the figure has no figcaption descendant: Any role
33
- "permittedRoles": true,
34
- "conditions": {
35
- ":has(figcaption)": {
36
- // If the figure has a figcaption descendant: No role.
37
- "permittedRoles": false
38
- }
39
- }
40
- }
41
- }
@@ -1,38 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/sections.html#the-footer-element
2
- // https://www.w3.org/TR/html-aria/#el-footer
3
- // https://w3c.github.io/html-aria/#el-footer
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "zeroOrMore": "#flow",
9
- "notAllowedDescendants": ["header", "footer"]
10
- }
11
- ]
12
- },
13
- "globalAttrs": {
14
- "#HTMLGlobalAttrs": true,
15
- "#GlobalEventAttrs": true,
16
- "#DocumentElementEventAttrs": true,
17
- "#ARIAAttrs": true
18
- },
19
- "attributes": {},
20
- "aria": {
21
- "implicitRole": "contentinfo",
22
- "permittedRoles": ["group", "presentation", "none"],
23
- "conditions": {
24
- ":has(article, aside, main, nav, section, [role=article], [role=complementary], [role=main], [role=navigation], [role=region])": {
25
- "implicitRole": "generic",
26
- "namingProhibited": true
27
- }
28
- },
29
- "1.1": {
30
- "implicitRole": "contentinfo",
31
- "conditions": {
32
- ":has(article, aside, main, nav, section, [role=article], [role=complementary], [role=main], [role=navigation], [role=region])": {
33
- "implicitRole": false
34
- }
35
- }
36
- }
37
- }
38
- }
@@ -1,101 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/forms.html#the-form-element
2
- // https://www.w3.org/TR/html-aria/#el-form
3
- // https://w3c.github.io/html-aria/#el-form
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "zeroOrMore": "#flow",
9
- "notAllowedDescendants": ["form"]
10
- }
11
- ]
12
- },
13
- "globalAttrs": {
14
- "#HTMLGlobalAttrs": true,
15
- "#GlobalEventAttrs": true,
16
- "#DocumentElementEventAttrs": true,
17
- "#ARIAAttrs": true
18
- },
19
- "attributes": {
20
- // https://html.spec.whatwg.org/multipage/forms.html#attr-form-accept-charset
21
- "accept-charset": {
22
- "type": {
23
- "enum": ["utf-8"],
24
- "caseInsensitive": true
25
- }
26
- },
27
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-action
28
- "action": {
29
- "type": "URL"
30
- },
31
- // https://html.spec.whatwg.org/multipage/forms.html#attr-form-autocomplete
32
- "autocomplete": {
33
- "type": {
34
- "enum": ["on", "off"],
35
- "invalidValueDefault": "on",
36
- "missingValueDefault": "on"
37
- }
38
- },
39
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formenctype
40
- "enctype": {
41
- "type": {
42
- "enum": ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"],
43
- "invalidValueDefault": "application/x-www-form-urlencoded",
44
- "missingValueDefault": "application/x-www-form-urlencoded"
45
- }
46
- },
47
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formmethod
48
- "method": {
49
- "type": {
50
- "enum": ["post", "get", "dialog"],
51
- "invalidValueDefault": "get",
52
- "missingValueDefault": "get"
53
- }
54
- },
55
- // https://html.spec.whatwg.org/multipage/forms.html#attr-form-name
56
- "name": {
57
- "type": "NoEmptyAny"
58
- },
59
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-novalidate
60
- "novalidate": {
61
- "type": "Boolean"
62
- },
63
- // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-target
64
- "target": {
65
- "type": "BrowsingContextNameOrKeyword"
66
- },
67
- // https://html.spec.whatwg.org/multipage/forms.html#attr-form-rel
68
- "rel": {
69
- "type": {
70
- "token": {
71
- "enum": [
72
- "external",
73
- "help",
74
- "license",
75
- "next",
76
- "nofollow",
77
- "noopener",
78
- "noreferrer",
79
- "opener",
80
- "prev",
81
- "search"
82
- ]
83
- },
84
- "unique": true,
85
- "separator": "space"
86
- }
87
- }
88
- },
89
- "aria": {
90
- "implicitRole": "form",
91
- "permittedRoles": ["search", "none", "presentation"],
92
- "1.1": {
93
- "implicitRole": false,
94
- "conditions": {
95
- ":aria(has name)": {
96
- "implicitRole": "form"
97
- }
98
- }
99
- }
100
- }
101
- }
package/src/spec.h1.json DELETED
@@ -1,26 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements
2
- // https://www.w3.org/TR/html-aria/#el-h1
3
- // https://w3c.github.io/html-aria/#el-h1-h6
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "zeroOrMore": "#phrasing"
9
- }
10
- ]
11
- },
12
- "globalAttrs": {
13
- "#HTMLGlobalAttrs": true,
14
- "#GlobalEventAttrs": true,
15
- "#DocumentElementEventAttrs": true,
16
- "#ARIAAttrs": true
17
- },
18
- "attributes": {},
19
- "aria": {
20
- "implicitRole": "heading",
21
- "implicitProperties": {
22
- "aria-level": "1"
23
- },
24
- "permittedRoles": ["tab", "presentation", "none"]
25
- }
26
- }
package/src/spec.h2.json DELETED
@@ -1,26 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements
2
- // https://www.w3.org/TR/html-aria/#el-h1
3
- // https://w3c.github.io/html-aria/#el-h1-h6
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "zeroOrMore": "#phrasing"
9
- }
10
- ]
11
- },
12
- "globalAttrs": {
13
- "#HTMLGlobalAttrs": true,
14
- "#GlobalEventAttrs": true,
15
- "#DocumentElementEventAttrs": true,
16
- "#ARIAAttrs": true
17
- },
18
- "attributes": {},
19
- "aria": {
20
- "implicitRole": "heading",
21
- "implicitProperties": {
22
- "aria-level": "2"
23
- },
24
- "permittedRoles": ["tab", "presentation", "none"]
25
- }
26
- }
package/src/spec.h3.json DELETED
@@ -1,26 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements
2
- // https://www.w3.org/TR/html-aria/#el-h1
3
- // https://w3c.github.io/html-aria/#el-h1-h6
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "zeroOrMore": "#phrasing"
9
- }
10
- ]
11
- },
12
- "globalAttrs": {
13
- "#HTMLGlobalAttrs": true,
14
- "#GlobalEventAttrs": true,
15
- "#DocumentElementEventAttrs": true,
16
- "#ARIAAttrs": true
17
- },
18
- "attributes": {},
19
- "aria": {
20
- "implicitRole": "heading",
21
- "implicitProperties": {
22
- "aria-level": "3"
23
- },
24
- "permittedRoles": ["tab", "presentation", "none"]
25
- }
26
- }
package/src/spec.h4.json DELETED
@@ -1,26 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements
2
- // https://www.w3.org/TR/html-aria/#el-h1
3
- // https://w3c.github.io/html-aria/#el-h1-h6
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "zeroOrMore": "#phrasing"
9
- }
10
- ]
11
- },
12
- "globalAttrs": {
13
- "#HTMLGlobalAttrs": true,
14
- "#GlobalEventAttrs": true,
15
- "#DocumentElementEventAttrs": true,
16
- "#ARIAAttrs": true
17
- },
18
- "attributes": {},
19
- "aria": {
20
- "implicitRole": "heading",
21
- "implicitProperties": {
22
- "aria-level": "4"
23
- },
24
- "permittedRoles": ["tab", "presentation", "none"]
25
- }
26
- }
package/src/spec.h5.json DELETED
@@ -1,26 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements
2
- // https://www.w3.org/TR/html-aria/#el-h1
3
- // https://w3c.github.io/html-aria/#el-h1-h6
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "zeroOrMore": "#phrasing"
9
- }
10
- ]
11
- },
12
- "globalAttrs": {
13
- "#HTMLGlobalAttrs": true,
14
- "#GlobalEventAttrs": true,
15
- "#DocumentElementEventAttrs": true,
16
- "#ARIAAttrs": true
17
- },
18
- "attributes": {},
19
- "aria": {
20
- "implicitRole": "heading",
21
- "implicitProperties": {
22
- "aria-level": "5"
23
- },
24
- "permittedRoles": ["tab", "presentation", "none"]
25
- }
26
- }
package/src/spec.h6.json DELETED
@@ -1,26 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements
2
- // https://www.w3.org/TR/html-aria/#el-h1
3
- // https://w3c.github.io/html-aria/#el-h1-h6
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "zeroOrMore": "#phrasing"
9
- }
10
- ]
11
- },
12
- "globalAttrs": {
13
- "#HTMLGlobalAttrs": true,
14
- "#GlobalEventAttrs": true,
15
- "#DocumentElementEventAttrs": true,
16
- "#ARIAAttrs": true
17
- },
18
- "attributes": {},
19
- "aria": {
20
- "implicitRole": "heading",
21
- "implicitProperties": {
22
- "aria-level": "6"
23
- },
24
- "permittedRoles": ["tab", "presentation", "none"]
25
- }
26
- }
@@ -1,32 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/semantics.html#the-head-element
2
- // https://www.w3.org/TR/html-aria/#el-head
3
- // https://w3c.github.io/html-aria/#el-head
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "zeroOrMore": "#metadata",
9
- "ignore": "title"
10
- },
11
- {
12
- "require": "title"
13
- },
14
- {
15
- "zeroOrMore": "#metadata",
16
- "ignore": "title"
17
- }
18
- ]
19
- },
20
- "globalAttrs": {
21
- "#HTMLGlobalAttrs": true,
22
- "#GlobalEventAttrs": true,
23
- "#DocumentElementEventAttrs": true,
24
- "#ARIAAttrs": true
25
- },
26
- "attributes": {},
27
- "aria": {
28
- "implicitRole": false,
29
- "permittedRoles": false,
30
- "properties": false
31
- }
32
- }
@@ -1,38 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/sections.html#the-header-element
2
- // https://www.w3.org/TR/html-aria/#el-header
3
- // https://w3c.github.io/html-aria/#el-header
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "zeroOrMore": "#flow",
9
- "notAllowedDescendants": ["header", "footer"]
10
- }
11
- ]
12
- },
13
- "globalAttrs": {
14
- "#HTMLGlobalAttrs": true,
15
- "#GlobalEventAttrs": true,
16
- "#DocumentElementEventAttrs": true,
17
- "#ARIAAttrs": true
18
- },
19
- "attributes": {},
20
- "aria": {
21
- "implicitRole": "banner",
22
- "permittedRoles": ["group", "presentation", "none"],
23
- "conditions": {
24
- ":has(article, aside, main, nav, section, [role=article], [role=complementary], [role=main], [role=navigation], [role=region])": {
25
- "implicitRole": "generic",
26
- "namingProhibited": true
27
- }
28
- },
29
- "1.1": {
30
- "implicitRole": "banner",
31
- "conditions": {
32
- ":has(article, aside, main, nav, section, [role=article], [role=complementary], [role=main], [role=navigation], [role=region])": {
33
- "implicitRole": false
34
- }
35
- }
36
- }
37
- }
38
- }