@markuplint/html-spec 3.0.0-dev.25 → 3.0.0-dev.300

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/index.d.ts +1 -1
  2. package/index.json +14776 -2258
  3. package/package.json +8 -13
  4. package/{src/structure.test.ts → test/structure.spec.mjs} +23 -13
  5. package/src/spec-common.attributes.json +0 -1650
  6. package/src/spec-common.contents.json +0 -392
  7. package/src/spec.a.json +0 -58
  8. package/src/spec.abbr.json +0 -25
  9. package/src/spec.address.json +0 -25
  10. package/src/spec.area.json +0 -64
  11. package/src/spec.article.json +0 -24
  12. package/src/spec.aside.json +0 -38
  13. package/src/spec.audio.json +0 -48
  14. package/src/spec.b.json +0 -24
  15. package/src/spec.base.json +0 -21
  16. package/src/spec.bdi.json +0 -24
  17. package/src/spec.bdo.json +0 -24
  18. package/src/spec.blockquote.json +0 -31
  19. package/src/spec.body.json +0 -100
  20. package/src/spec.br.json +0 -32
  21. package/src/spec.button.json +0 -70
  22. package/src/spec.canvas.json +0 -33
  23. package/src/spec.caption.json +0 -30
  24. package/src/spec.cite.json +0 -24
  25. package/src/spec.code.json +0 -27
  26. package/src/spec.col.json +0 -31
  27. package/src/spec.colgroup.json +0 -41
  28. package/src/spec.data.json +0 -29
  29. package/src/spec.datalist.json +0 -38
  30. package/src/spec.dd.json +0 -30
  31. package/src/spec.del.json +0 -36
  32. package/src/spec.details.json +0 -35
  33. package/src/spec.dfn.json +0 -23
  34. package/src/spec.dialog.json +0 -36
  35. package/src/spec.div.json +0 -55
  36. package/src/spec.dl.json +0 -56
  37. package/src/spec.dt.json +0 -26
  38. package/src/spec.em.json +0 -27
  39. package/src/spec.embed.json +0 -30
  40. package/src/spec.fieldset.json +0 -27
  41. package/src/spec.figcaption.json +0 -24
  42. package/src/spec.figure.json +0 -52
  43. package/src/spec.footer.json +0 -37
  44. package/src/spec.form.json +0 -100
  45. package/src/spec.h1.json +0 -26
  46. package/src/spec.h2.json +0 -26
  47. package/src/spec.h3.json +0 -26
  48. package/src/spec.h4.json +0 -26
  49. package/src/spec.h5.json +0 -26
  50. package/src/spec.h6.json +0 -26
  51. package/src/spec.head.json +0 -30
  52. package/src/spec.header.json +0 -37
  53. package/src/spec.hgroup.json +0 -45
  54. package/src/spec.hr.json +0 -23
  55. package/src/spec.html.json +0 -27
  56. package/src/spec.i.json +0 -24
  57. package/src/spec.iframe.json +0 -70
  58. package/src/spec.img.json +0 -109
  59. package/src/spec.input.json +0 -792
  60. package/src/spec.ins.json +0 -36
  61. package/src/spec.kbd.json +0 -24
  62. package/src/spec.label.json +0 -29
  63. package/src/spec.legend.json +0 -24
  64. package/src/spec.li.json +0 -40
  65. package/src/spec.link.json +0 -140
  66. package/src/spec.main.json +0 -27
  67. package/src/spec.map.json +0 -30
  68. package/src/spec.mark.json +0 -24
  69. package/src/spec.math.json +0 -20
  70. package/src/spec.menu.json +0 -53
  71. package/src/spec.meta.json +0 -59
  72. package/src/spec.meter.json +0 -62
  73. package/src/spec.nav.json +0 -26
  74. package/src/spec.noscript.json +0 -24
  75. package/src/spec.object.json +0 -40
  76. package/src/spec.ol.json +0 -71
  77. package/src/spec.optgroup.json +0 -34
  78. package/src/spec.option.json +0 -70
  79. package/src/spec.output.json +0 -29
  80. package/src/spec.p.json +0 -27
  81. package/src/spec.picture.json +0 -46
  82. package/src/spec.portal.json +0 -25
  83. package/src/spec.pre.json +0 -24
  84. package/src/spec.progress.json +0 -44
  85. package/src/spec.q.json +0 -29
  86. package/src/spec.rp.json +0 -23
  87. package/src/spec.rt.json +0 -24
  88. package/src/spec.ruby.json +0 -55
  89. package/src/spec.s.json +0 -24
  90. package/src/spec.samp.json +0 -24
  91. package/src/spec.script.json +0 -73
  92. package/src/spec.section.json +0 -73
  93. package/src/spec.select.json +0 -66
  94. package/src/spec.slot.json +0 -29
  95. package/src/spec.small.json +0 -24
  96. package/src/spec.source.json +0 -52
  97. package/src/spec.span.json +0 -24
  98. package/src/spec.strong.json +0 -27
  99. package/src/spec.style.json +0 -35
  100. package/src/spec.sub.json +0 -27
  101. package/src/spec.summary.json +0 -38
  102. package/src/spec.sup.json +0 -27
  103. package/src/spec.svg_a.json +0 -118
  104. package/src/spec.svg_animate.json +0 -109
  105. package/src/spec.svg_animateMotion.json +0 -73
  106. package/src/spec.svg_animateTransform.json +0 -47
  107. package/src/spec.svg_circle.json +0 -113
  108. package/src/spec.svg_clipPath.json +0 -108
  109. package/src/spec.svg_defs.json +0 -109
  110. package/src/spec.svg_desc.json +0 -21
  111. package/src/spec.svg_discard.json +0 -31
  112. package/src/spec.svg_ellipse.json +0 -116
  113. package/src/spec.svg_feBlend.json +0 -115
  114. package/src/spec.svg_feColorMatrix.json +0 -104
  115. package/src/spec.svg_feComponentTransfer.json +0 -97
  116. package/src/spec.svg_feComposite.json +0 -146
  117. package/src/spec.svg_feConvolveMatrix.json +0 -147
  118. package/src/spec.svg_feDiffuseLighting.json +0 -126
  119. package/src/spec.svg_feDisplacementMap.json +0 -133
  120. package/src/spec.svg_feDistantLight.json +0 -32
  121. package/src/spec.svg_feDropShadow.json +0 -109
  122. package/src/spec.svg_feFlood.json +0 -101
  123. package/src/spec.svg_feFuncA.json +0 -20
  124. package/src/spec.svg_feFuncB.json +0 -20
  125. package/src/spec.svg_feFuncG.json +0 -20
  126. package/src/spec.svg_feFuncR.json +0 -20
  127. package/src/spec.svg_feGaussianBlur.json +0 -105
  128. package/src/spec.svg_feImage.json +0 -123
  129. package/src/spec.svg_feMerge.json +0 -90
  130. package/src/spec.svg_feMergeNode.json +0 -20
  131. package/src/spec.svg_feMorphology.json +0 -106
  132. package/src/spec.svg_feOffset.json +0 -103
  133. package/src/spec.svg_fePointLight.json +0 -38
  134. package/src/spec.svg_feSpecularLighting.json +0 -131
  135. package/src/spec.svg_feSpotLight.json +0 -67
  136. package/src/spec.svg_feTile.json +0 -90
  137. package/src/spec.svg_feTurbulence.json +0 -127
  138. package/src/spec.svg_filter.json +0 -138
  139. package/src/spec.svg_foreignObject.json +0 -97
  140. package/src/spec.svg_g.json +0 -115
  141. package/src/spec.svg_image.json +0 -128
  142. package/src/spec.svg_line.json +0 -136
  143. package/src/spec.svg_linearGradient.json +0 -152
  144. package/src/spec.svg_marker.json +0 -180
  145. package/src/spec.svg_mask.json +0 -142
  146. package/src/spec.svg_metadata.json +0 -21
  147. package/src/spec.svg_mpath.json +0 -26
  148. package/src/spec.svg_path.json +0 -114
  149. package/src/spec.svg_pattern.json +0 -157
  150. package/src/spec.svg_polygon.json +0 -117
  151. package/src/spec.svg_polyline.json +0 -117
  152. package/src/spec.svg_radialGradient.json +0 -162
  153. package/src/spec.svg_rect.json +0 -118
  154. package/src/spec.svg_script.json +0 -40
  155. package/src/spec.svg_set.json +0 -42
  156. package/src/spec.svg_stop.json +0 -110
  157. package/src/spec.svg_style.json +0 -36
  158. package/src/spec.svg_svg.json +0 -170
  159. package/src/spec.svg_switch.json +0 -105
  160. package/src/spec.svg_symbol.json +0 -77
  161. package/src/spec.svg_text.json +0 -153
  162. package/src/spec.svg_textPath.json +0 -169
  163. package/src/spec.svg_title.json +0 -21
  164. package/src/spec.svg_tspan.json +0 -147
  165. package/src/spec.svg_use.json +0 -115
  166. package/src/spec.svg_view.json +0 -45
  167. package/src/spec.table.json +0 -64
  168. package/src/spec.tbody.json +0 -23
  169. package/src/spec.td.json +0 -37
  170. package/src/spec.template.json +0 -20
  171. package/src/spec.textarea.json +0 -67
  172. package/src/spec.tfoot.json +0 -23
  173. package/src/spec.th.json +0 -66
  174. package/src/spec.thead.json +0 -23
  175. package/src/spec.time.json +0 -32
  176. package/src/spec.title.json +0 -24
  177. package/src/spec.tr.json +0 -29
  178. package/src/spec.track.json +0 -54
  179. package/src/spec.u.json +0 -24
  180. package/src/spec.ul.json +0 -53
  181. package/src/spec.var.json +0 -24
  182. package/src/spec.video.json +0 -78
  183. package/src/spec.wbr.json +0 -25
package/src/spec.ol.json DELETED
@@ -1,71 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/grouping-content.html#the-ol-element
2
- // https://www.w3.org/TR/html-aria/#el-ol
3
- // https://w3c.github.io/html-aria/#el-ol
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "zeroOrMore": ["li", ":model(script-supporting)"]
9
- }
10
- ]
11
- },
12
- "globalAttrs": {
13
- "#HTMLGlobalAttrs": true,
14
- "#GlobalEventAttrs": true,
15
- "#DocumentElementEventAttrs": true,
16
- "#ARIAAttrs": true
17
- },
18
- "attributes": {
19
- "reversed": {
20
- // https://html.spec.whatwg.org/multipage/grouping-content.html#attr-ol-reversed
21
- "type": "Boolean"
22
- },
23
- "start": {
24
- // https://html.spec.whatwg.org/multipage/grouping-content.html#attr-ol-start
25
- "type": "Int"
26
- },
27
- "type": {
28
- // https://html.spec.whatwg.org/multipage/grouping-content.html#attr-ol-type
29
- "type": {
30
- "enum": ["1", "a", "A", "i", "I"],
31
- "caseInsensitive": false,
32
- "invalidValueDefault": "decimal",
33
- "missingValueDefault": "decimal"
34
- }
35
- }
36
- },
37
- "aria": {
38
- "implicitRole": "list",
39
- "permittedRoles": [
40
- "group",
41
- "listbox",
42
- "menu",
43
- "menubar",
44
- "none",
45
- "presentation",
46
- "radiogroup",
47
- "tablist",
48
- "toolbar",
49
- "tree",
50
- {
51
- "name": "directory",
52
- "deprecated": true
53
- }
54
- ],
55
- "1.1": {
56
- "permittedRoles": [
57
- "directory",
58
- "group",
59
- "listbox",
60
- "menu",
61
- "menubar",
62
- "none",
63
- "presentation",
64
- "radiogroup",
65
- "tablist",
66
- "toolbar",
67
- "tree"
68
- ]
69
- }
70
- }
71
- }
@@ -1,34 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/form-elements.html#the-optgroup-element
2
- // https://www.w3.org/TR/html-aria/#el-optgroup
3
- // https://w3c.github.io/html-aria/#el-optgroup
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "zeroOrMore": "option"
9
- }
10
- ]
11
- },
12
- "globalAttrs": {
13
- "#HTMLGlobalAttrs": true,
14
- "#GlobalEventAttrs": true,
15
- "#DocumentElementEventAttrs": true,
16
- "#ARIAAttrs": true,
17
- "#HTMLFormControlElementAttrs": ["disabled"]
18
- },
19
- "attributes": {
20
- // https://html.spec.whatwg.org/multipage/form-elements.html#attr-optgroup-label
21
- "label": {
22
- "type": "Any",
23
- "required": true
24
- }
25
- },
26
- "aria": {
27
- "implicitRole": "group",
28
- "permittedRoles": false,
29
- "properties": {
30
- "global": true,
31
- "role": "group"
32
- }
33
- }
34
- }
@@ -1,70 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/form-elements.html#the-option-element
2
- // https://www.w3.org/TR/html-aria/#el-option
3
- // https://w3c.github.io/html-aria/#el-option
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "optional": "#text"
9
- }
10
- ],
11
- "conditional": [
12
- {
13
- "condition": "[label][value]",
14
- "contents": false
15
- },
16
- {
17
- "condition": "label",
18
- "contents": [
19
- {
20
- "optional": "#text"
21
- }
22
- ]
23
- },
24
- {
25
- "condition": "datalist > [label]",
26
- "contents": [
27
- {
28
- "optional": "#text"
29
- }
30
- ]
31
- }
32
- ]
33
- },
34
- "globalAttrs": {
35
- "#HTMLGlobalAttrs": true,
36
- "#GlobalEventAttrs": true,
37
- "#DocumentElementEventAttrs": true,
38
- "#ARIAAttrs": true,
39
- "#HTMLFormControlElementAttrs": ["disabled"]
40
- },
41
- "attributes": {
42
- "label": {
43
- // https://html.spec.whatwg.org/multipage/form-elements.html#attr-option-label
44
- "type": "Any"
45
- },
46
- "selected": {
47
- // https://html.spec.whatwg.org/multipage/form-elements.html#attr-option-selected
48
- "type": "Boolean"
49
- },
50
- "value": {
51
- // https://html.spec.whatwg.org/multipage/form-elements.html#attr-option-value
52
- "type": "Any"
53
- }
54
- },
55
- "aria": {
56
- "implicitRole": "option",
57
- "permittedRoles": false,
58
- "properties": {
59
- "global": true,
60
- "role": "option",
61
- // Authors SHOULD NOT use the aria-selected attribute on the option element.
62
- "without": [
63
- {
64
- "type": "should-not",
65
- "name": "aria-selected"
66
- }
67
- ]
68
- }
69
- }
70
- }
@@ -1,29 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/form-elements.html#the-output-element
2
- // https://www.w3.org/TR/html-aria/#el-output
3
- // https://w3c.github.io/html-aria/#el-output
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "oneOrMore": ":model(phrasing)"
9
- }
10
- ]
11
- },
12
- "globalAttrs": {
13
- "#HTMLGlobalAttrs": true,
14
- "#GlobalEventAttrs": true,
15
- "#DocumentElementEventAttrs": true,
16
- "#ARIAAttrs": true,
17
- "#HTMLFormControlElementAttrs": ["form", "name"]
18
- },
19
- "attributes": {
20
- // https://html.spec.whatwg.org/multipage/form-elements.html#attr-output-for
21
- "for": {
22
- "type": "DOMID"
23
- }
24
- },
25
- "aria": {
26
- "implicitRole": "status",
27
- "permittedRoles": false
28
- }
29
- }
package/src/spec.p.json DELETED
@@ -1,27 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/grouping-content.html#the-p-element
2
- // https://www.w3.org/TR/html-aria/#el-p
3
- // https://w3c.github.io/html-aria/#el-p
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "oneOrMore": ":model(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": "paragraph",
21
- "permittedRoles": true,
22
- "namingProhibited": true,
23
- "1.1": {
24
- "implicitRole": false
25
- }
26
- }
27
- }
@@ -1,46 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/embedded-content.html#the-picture-element
2
- // https://www.w3.org/TR/html-aria/#el-picture
3
- // https://w3c.github.io/html-aria/#el-picture
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "zeroOrMore": ":model(script-supporting)"
9
- },
10
- {
11
- "zeroOrMore": "source"
12
- },
13
- {
14
- "zeroOrMore": ":model(script-supporting)"
15
- },
16
- {
17
- "require": "img"
18
- },
19
- {
20
- "zeroOrMore": ":model(script-supporting)"
21
- }
22
- ]
23
- },
24
- "globalAttrs": {
25
- "#HTMLGlobalAttrs": true,
26
- "#GlobalEventAttrs": true,
27
- "#DocumentElementEventAttrs": true,
28
- "#ARIAAttrs": true
29
- },
30
- "attributes": {},
31
- "aria": {
32
- "implicitRole": false,
33
- "permittedRoles": false,
34
- "properties": {
35
- "only": [
36
- {
37
- "name": "aria-hidden",
38
- "value": "true"
39
- }
40
- ]
41
- },
42
- "1.1": {
43
- "properties": false
44
- }
45
- }
46
- }
@@ -1,25 +0,0 @@
1
- // https://wicg.github.io/portals/
2
- {
3
- "contentModel": {
4
- "contents": [
5
- {
6
- "transparent": "*"
7
- }
8
- ]
9
- },
10
- "globalAttrs": {
11
- "#HTMLGlobalAttrs": true,
12
- "#GlobalEventAttrs": true,
13
- "#DocumentElementEventAttrs": true,
14
- "#ARIAAttrs": true,
15
- // https://wicg.github.io/portals/#dom-htmlportalelement-referrerpolicy
16
- "#HTMLLinkAndFetchingAttrs": ["referrerpolicy"],
17
- // https://wicg.github.io/portals/#dom-htmlportalelement-src
18
- "#HTMLEmbededAndMediaContentAttrs": ["src"]
19
- },
20
- "attributes": {},
21
- "aria": {
22
- "implicitRole": false,
23
- "permittedRoles": true
24
- }
25
- }
package/src/spec.pre.json DELETED
@@ -1,24 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/grouping-content.html#the-pre-element
2
- // https://www.w3.org/TR/html-aria/#el-pre
3
- // https://w3c.github.io/html-aria/#el-pre
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "oneOrMore": ":model(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": false,
21
- "permittedRoles": true,
22
- "namingProhibited": true
23
- }
24
- }
@@ -1,44 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/form-elements.html#the-progress-element
2
- // https://www.w3.org/TR/html-aria/#el-progress
3
- // https://w3c.github.io/html-aria/#el-progress
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "oneOrMore": ":model(phrasing):not(progress, :has(progress))"
9
- }
10
- ]
11
- },
12
- "globalAttrs": {
13
- "#HTMLGlobalAttrs": true,
14
- "#GlobalEventAttrs": true,
15
- "#DocumentElementEventAttrs": true,
16
- "#ARIAAttrs": true
17
- },
18
- "attributes": {
19
- // https://html.spec.whatwg.org/multipage/form-elements.html#attr-progress-value
20
- "value": {
21
- // The range is 0 to 1 but, the maximum will be the value when setting the `max` attribute from 1
22
- "type": "Number"
23
- },
24
- // https://html.spec.whatwg.org/multipage/form-elements.html#attr-progress-max
25
- "max": {
26
- "type": "Number"
27
- }
28
- },
29
- "aria": {
30
- "implicitRole": "progressbar",
31
- "permittedRoles": false,
32
- "properties": {
33
- "global": true,
34
- "role": "progressbar",
35
- // Authors SHOULD NOT use the aria-valuemax attribute on progress elements.
36
- "without": [
37
- {
38
- "type": "should-not",
39
- "name": "aria-valuemax"
40
- }
41
- ]
42
- }
43
- }
44
- }
package/src/spec.q.json DELETED
@@ -1,29 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-q-element
2
- // https://www.w3.org/TR/html-aria/#el-q
3
- // https://w3c.github.io/html-aria/#el-q
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "oneOrMore": ":model(phrasing)"
9
- }
10
- ]
11
- },
12
- "globalAttrs": {
13
- "#HTMLGlobalAttrs": true,
14
- "#GlobalEventAttrs": true,
15
- "#DocumentElementEventAttrs": true,
16
- "#ARIAAttrs": true
17
- },
18
- "attributes": {
19
- // https://html.spec.whatwg.org/multipage/text-level-semantics.html#attr-q-cite
20
- "cite": {
21
- "type": "URL"
22
- }
23
- },
24
- "aria": {
25
- "implicitRole": false,
26
- "permittedRoles": true,
27
- "namingProhibited": true
28
- }
29
- }
package/src/spec.rp.json DELETED
@@ -1,23 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-rp-element
2
- // https://www.w3.org/TR/html-aria/#el-rp
3
- // https://w3c.github.io/html-aria/#el-rp
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "oneOrMore": "#text"
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": true
22
- }
23
- }
package/src/spec.rt.json DELETED
@@ -1,24 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-rt-element
2
- // https://www.w3.org/TR/html-aria/#el-rt
3
- // https://w3c.github.io/html-aria/#el-rt
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "oneOrMore": ":model(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": false,
21
- "permittedRoles": true,
22
- "namingProhibited": true
23
- }
24
- }
@@ -1,55 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-ruby-element
2
- // https://www.w3.org/TR/html-aria/#el-ruby
3
- // https://w3c.github.io/html-aria/#el-ruby
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "oneOrMore": [
9
- {
10
- "require": ":model(phrasing):not(ruby, :has(ruby))"
11
- },
12
- {
13
- "choice": [
14
- [
15
- {
16
- "oneOrMore": "rt"
17
- }
18
- ],
19
- [
20
- {
21
- "oneOrMore": [
22
- {
23
- "require": "rp"
24
- },
25
- {
26
- "oneOrMore": [
27
- {
28
- "require": "rt"
29
- },
30
- {
31
- "require": "rp"
32
- }
33
- ]
34
- }
35
- ]
36
- }
37
- ]
38
- ]
39
- }
40
- ]
41
- }
42
- ]
43
- },
44
- "globalAttrs": {
45
- "#HTMLGlobalAttrs": true,
46
- "#GlobalEventAttrs": true,
47
- "#DocumentElementEventAttrs": true,
48
- "#ARIAAttrs": true
49
- },
50
- "attributes": {},
51
- "aria": {
52
- "implicitRole": false,
53
- "permittedRoles": true
54
- }
55
- }
package/src/spec.s.json DELETED
@@ -1,24 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-s-element
2
- // https://www.w3.org/TR/html-aria/#el-s
3
- // https://w3c.github.io/html-aria/#el-s
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "oneOrMore": ":model(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": false,
21
- "permittedRoles": true,
22
- "namingProhibited": true
23
- }
24
- }
@@ -1,24 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-samp-element
2
- // https://www.w3.org/TR/html-aria/#el-samp
3
- // https://w3c.github.io/html-aria/#el-samp
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "oneOrMore": ":model(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": false,
21
- "permittedRoles": true,
22
- "namingProhibited": true
23
- }
24
- }
@@ -1,73 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/scripting.html#the-script-element
2
- // https://www.w3.org/TR/html-aria/#el-script
3
- // https://w3c.github.io/html-aria/#el-script
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "zeroOrMore": "#text"
9
- }
10
- ]
11
- },
12
- "globalAttrs": {
13
- "#HTMLGlobalAttrs": true,
14
- "#GlobalEventAttrs": true,
15
- "#DocumentElementEventAttrs": true,
16
- "#ARIAAttrs": true,
17
- "#HTMLLinkAndFetchingAttrs": ["crossorigin", "referrerpolicy", "integrity", "fetchpriority"]
18
- },
19
- "attributes": {
20
- // https://html.spec.whatwg.org/multipage/scripting.html#attr-script-src
21
- "src": {
22
- "type": "URL"
23
- },
24
- // https://html.spec.whatwg.org/multipage/scripting.html#attr-script-type
25
- "type": {
26
- // When used to include data blocks the data must be embedded inline,
27
- // the format of the data must be given using the type attribute,
28
- // and the contents of the script element must conform to the requirements defined for the format used.
29
- // The src, async, nomodule, defer, crossorigin, integrity,
30
- // and referrerpolicy attributes must not be specified.
31
- "type": [
32
- "MIMEType",
33
- {
34
- "enum": ["module", "importmap"],
35
- "caseInsensitive": true
36
- }
37
- ]
38
- },
39
- // https://html.spec.whatwg.org/multipage/scripting.html#attr-script-nomodule
40
- "nomodule": {
41
- "type": "Boolean",
42
- "condition": ":not([type='module' i])"
43
- },
44
- // https://html.spec.whatwg.org/multipage/scripting.html#attr-script-async
45
- "async": {
46
- "type": "Boolean",
47
- "condition": ["[src]", "[type='module' i]"],
48
- "ineffective": ":not([src]):not([type='module' i])"
49
- },
50
- // https://html.spec.whatwg.org/multipage/scripting.html#attr-script-defer
51
- "defer": {
52
- "type": "Boolean",
53
- "condition": "[src]",
54
- // The `defer` attribute affects the element that has the async attribute if it doesn't support the async
55
- "ineffective": ["[type='module' i]", ":not([src])", "[async]"]
56
- },
57
- // https://html.spec.whatwg.org/multipage/scripting.html#attr-script-integrity
58
- "integrity": {
59
- "condition": "[src]"
60
- },
61
- // https://html.spec.whatwg.org/multipage/urls-and-fetching.html#render-blocking
62
- "blocking": {
63
- "type": {
64
- "enum": ["render"]
65
- }
66
- }
67
- },
68
- "aria": {
69
- "implicitRole": false,
70
- "permittedRoles": false,
71
- "properties": false
72
- }
73
- }