@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
@@ -1,313 +0,0 @@
1
- {
2
- "models": {
3
- "#metadata": ["base", "link", "meta", "noscript", "script", "style", "template", "title"],
4
- "#flow": [
5
- "a",
6
- "abbr",
7
- "address",
8
- "area",
9
- "article",
10
- "aside",
11
- "audio",
12
- "b",
13
- "bdi",
14
- "bdo",
15
- "blockquote",
16
- "br",
17
- "button",
18
- "canvas",
19
- "cite",
20
- "code",
21
- "data",
22
- "datalist",
23
- "del",
24
- "details",
25
- "dfn",
26
- "dialog",
27
- "div",
28
- "dl",
29
- "em",
30
- "embed",
31
- "fieldset",
32
- "figure",
33
- "footer",
34
- "form",
35
- "h1",
36
- "h2",
37
- "h3",
38
- "h4",
39
- "h5",
40
- "h6",
41
- "header",
42
- "hgroup",
43
- "hr",
44
- "i",
45
- "iframe",
46
- "img",
47
- "input",
48
- "ins",
49
- "kbd",
50
- "label",
51
- "link[itemprop]",
52
- "link[rel=dns-prefetch]",
53
- "link[rel=modulepreload]",
54
- "link[rel=pingback]",
55
- "link[rel=preconnect]",
56
- "link[rel=prefetch]",
57
- "link[rel=preload]",
58
- "link[rel=prerender]",
59
- "link[rel=stylesheet]",
60
- "main",
61
- "map",
62
- "mark",
63
- "math",
64
- "menu",
65
- "meta[itemprop]",
66
- "meter",
67
- "nav",
68
- "noscript",
69
- "object",
70
- "ol",
71
- "output",
72
- "p",
73
- "picture",
74
- "pre",
75
- "progress",
76
- "q",
77
- "ruby",
78
- "s",
79
- "samp",
80
- "script",
81
- "section",
82
- "select",
83
- "slot",
84
- "small",
85
- "span",
86
- "strong",
87
- "sub",
88
- "sup",
89
- "svg|svg",
90
- "table",
91
- "template",
92
- "textarea",
93
- "time",
94
- "u",
95
- "ul",
96
- "var",
97
- "video",
98
- "wbr",
99
- "#custom",
100
- "#text"
101
- ],
102
- "#sectioning": ["article", "aside", "nav", "section"],
103
- "#heading": ["h1", "h2", "h3", "h4", "h5", "h6", "hgroup"],
104
- "#phrasing": [
105
- "a",
106
- "abbr",
107
- "area",
108
- "audio",
109
- "b",
110
- "bdi",
111
- "bdo",
112
- "br",
113
- "button",
114
- "canvas",
115
- "cite",
116
- "code",
117
- "data",
118
- "datalist",
119
- "del",
120
- "dfn",
121
- "em",
122
- "embed",
123
- "i",
124
- "iframe",
125
- "img",
126
- "input",
127
- "ins",
128
- "kbd",
129
- "label",
130
- "link[itemprop]",
131
- "link[rel=dns-prefetch]",
132
- "link[rel=modulepreload]",
133
- "link[rel=pingback]",
134
- "link[rel=preconnect]",
135
- "link[rel=prefetch]",
136
- "link[rel=preload]",
137
- "link[rel=prerender]",
138
- "link[rel=stylesheet]",
139
- "map",
140
- "mark",
141
- "math",
142
- "meta[itemprop]",
143
- "meter",
144
- "noscript",
145
- "object",
146
- "output",
147
- "picture",
148
- "progress",
149
- "q",
150
- "ruby",
151
- "s",
152
- "samp",
153
- "script",
154
- "select",
155
- "slot",
156
- "small",
157
- "span",
158
- "strong",
159
- "sub",
160
- "sup",
161
- "svg|svg",
162
- "template",
163
- "textarea",
164
- "time",
165
- "u",
166
- "var",
167
- "video",
168
- "wbr",
169
- "#custom",
170
- "#text"
171
- ],
172
- "#embedded": ["audio", "canvas", "embed", "iframe", "img", "math", "object", "picture", "svg|svg", "video"],
173
- // https://html.spec.whatwg.org/multipage/dom.html#interactive-content
174
- "#interactive": [
175
- "a[href]",
176
- "audio[controls]",
177
- "button",
178
- "details",
179
- "embed",
180
- "iframe",
181
- "img[usemap]",
182
- "input:not([type='hidden' i])",
183
- "label",
184
- "select",
185
- "textarea",
186
- "video[controls]"
187
- ],
188
- "#script-supporting": ["script", "template"],
189
- "#SVGAnimation": [
190
- "svg|animate",
191
- "svg|animateColor",
192
- "svg|animateMotion",
193
- "svg|animateTransform",
194
- "svg|discard",
195
- "svg|mpath",
196
- "svg|set"
197
- ],
198
- "#SVGBasicShapes": ["svg|circle", "svg|ellipse", "svg|line", "svg|polygon", "svg|polyline", "svg|rect"],
199
- "#SVGContainer": [
200
- "svg|a",
201
- "svg|defs",
202
- "svg|g",
203
- "svg|marker",
204
- "svg|mask",
205
- "svg|missing-glyph",
206
- "svg|pattern",
207
- "svg|svg",
208
- "svg|switch",
209
- "svg|symbol"
210
- ],
211
- "#SVGDescriptive": ["svg|desc", "svg|metadata", "svg|title"],
212
- "#SVGFilterPrimitive": [
213
- "svg|feBlend",
214
- "svg|feColorMatrix",
215
- "svg|feComponentTransfer",
216
- "svg|feComposite",
217
- "svg|feConvolveMatrix",
218
- "svg|feDiffuseLighting",
219
- "svg|feDisplacementMap",
220
- "svg|feDropShadow",
221
- "svg|feFlood",
222
- "svg|feFuncA",
223
- "svg|feFuncB",
224
- "svg|feFuncG",
225
- "svg|feFuncR",
226
- "svg|feGaussianBlur",
227
- "svg|feImage",
228
- "svg|feMerge",
229
- "svg|feMergeNode",
230
- "svg|feMorphology",
231
- "svg|feOffset",
232
- "svg|feSpecularLighting",
233
- "svg|feTile",
234
- "svg|feTurbulence"
235
- ],
236
- "#SVGFont": [
237
- "svg|font",
238
- "svg|font-face",
239
- "svg|font-face-format",
240
- "svg|font-face-name",
241
- "svg|font-face-src",
242
- "svg|font-face-uri",
243
- "svg|hkern",
244
- "svg|vkern"
245
- ],
246
- "#SVGGradient": ["svg|linearGradient", "svg|radialGradient", "svg|stop"],
247
- "#SVGGraphics": [
248
- "svg|circle",
249
- "svg|ellipse",
250
- "svg|image",
251
- "svg|line",
252
- "svg|path",
253
- "svg|polygon",
254
- "svg|polyline",
255
- "svg|rect",
256
- "svg|text",
257
- "svg|use"
258
- ],
259
- "#SVGGraphicsReferencing": ["svg|use"],
260
- "#SVGLightSource": ["svg|feDistantLight", "svg|fePointLight", "svg|feSpotLight"],
261
- "#SVGNeverRendered": [
262
- "svg|clipPath",
263
- "svg|defs",
264
- "svg|linearGradient",
265
- "svg|marker",
266
- "svg|mask",
267
- "svg|metadata",
268
- "svg|pattern",
269
- "svg|radialGradient",
270
- "svg|script",
271
- "svg|style",
272
- "svg|symbol",
273
- "svg|title"
274
- ],
275
- "#SVGPaintServer": ["svg|linearGradient", "svg|pattern", "svg|radialGradient", "svg|solidcolor"],
276
- "#SVGRenderable": [
277
- "svg|a",
278
- "svg|circle",
279
- "svg|ellipse",
280
- "svg|foreignObject",
281
- "svg|g",
282
- "svg|image",
283
- "svg|line",
284
- "svg|path",
285
- "svg|polygon",
286
- "svg|polyline",
287
- "svg|rect",
288
- "svg|svg",
289
- "svg|switch",
290
- "svg|symbol",
291
- "svg|text",
292
- "svg|textPath",
293
- "svg|tspan",
294
- "svg|unknown",
295
- "svg|use"
296
- ],
297
- "#SVGShape": ["svg|circle", "svg|ellipse", "svg|line", "svg|path", "svg|polygon", "svg|polyline", "svg|rect"],
298
- "#SVGStructural": ["svg|defs", "svg|g", "svg|svg", "svg|symbol", "svg|use"],
299
- "#SVGStructurallyExternal": [],
300
- "#SVGTextContent": [
301
- "svg|altGlyph",
302
- "svg|altGlyphDef",
303
- "svg|altGlyphItem",
304
- "svg|glyph",
305
- "svg|glyphRef",
306
- "svg|textPath",
307
- "svg|text",
308
- "svg|tref",
309
- "svg|tspan"
310
- ],
311
- "#SVGTextContentChild": ["svg|altGlyph", "svg|textPath", "svg|tref", "svg|tspan"]
312
- }
313
- }
package/src/spec.a.json DELETED
@@ -1,59 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-a-element
2
- // https://www.w3.org/TR/html-aria/#el-a
3
- // https://w3c.github.io/html-aria/#el-a
4
- // https://www.w3.org/TR/html-aam-1.0/#:~:text=Collapse%20all-,a%20(represents%20a%20hyperlink),-a%20(no%20href
5
- {
6
- "contentModel": {
7
- "contents": [
8
- {
9
- "zeroOrMore": "#transparent",
10
- "notAllowedDescendants": ["#interactive"]
11
- }
12
- ]
13
- },
14
- "globalAttrs": {
15
- "#HTMLGlobalAttrs": true,
16
- "#GlobalEventAttrs": true,
17
- "#DocumentElementEventAttrs": true,
18
- "#ARIAAttrs": true,
19
- "#HTMLLinkAndFetchingAttrs": ["href", "target", "download", "ping", "rel", "hreflang", "type", "referrerpolicy"]
20
- },
21
- "attributes": {},
22
- "aria": {
23
- "implicitRole": "link",
24
- "permittedRoles": [
25
- "button",
26
- "checkbox",
27
- "menuitem",
28
- "menuitemcheckbox",
29
- "menuitemradio",
30
- "option",
31
- "radio",
32
- "switch",
33
- "tab",
34
- "treeitem"
35
- ],
36
- "properties": {
37
- "global": true,
38
- "role": true,
39
- "whithout": [
40
- {
41
- "type": "not-recommended",
42
- "name": "aria-disabled",
43
- "value": "true",
44
- "alt": {
45
- "method": "remove-attr",
46
- "target": "href"
47
- }
48
- }
49
- ]
50
- },
51
- "conditions": {
52
- ":not([href])": {
53
- "implicitRole": false,
54
- "permittedRoles": true,
55
- "namingProhibited": true
56
- }
57
- }
58
- }
59
- }
@@ -1,25 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-abbr-element
2
- // https://www.w3.org/TR/html-aria/#el-abbr
3
- // https://w3c.github.io/html-aria/#el-abbr
4
- // https://www.w3.org/TR/html-aam-1.0/#:~:text=no%20href%20attribute)-,abbr,-address
5
- {
6
- "contentModel": {
7
- "contents": [
8
- {
9
- "zeroOrMore": "#phrasing"
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": true,
23
- "namingProhibited": true
24
- }
25
- }
@@ -1,26 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/sections.html#the-address-element
2
- // https://www.w3.org/TR/html-aria/#el-address
3
- // https://w3c.github.io/html-aria/#el-address
4
- // https://www.w3.org/TR/html-aam-1.0/#:~:text=abbr-,address,-area%20(represents%20a
5
- {
6
- "contentModel": {
7
- "contents": [
8
- {
9
- "zeroOrMore": "#flow",
10
- "notAllowedDescendants": ["address", "#heading", "#sectioning", "header", "footer"]
11
- }
12
- ]
13
- },
14
- "globalAttrs": {
15
- "#HTMLGlobalAttrs": true,
16
- "#GlobalEventAttrs": true,
17
- "#DocumentElementEventAttrs": true,
18
- "#ARIAAttrs": true
19
- },
20
- "attributes": {},
21
- "aria": {
22
- "implicitRole": false,
23
- "permittedRoles": true,
24
- "namingProhibited": true
25
- }
26
- }
@@ -1,64 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/image-maps.html#the-area-element
2
- // https://www.w3.org/TR/html-aria/#el-area
3
- // https://w3c.github.io/html-aria/#el-area
4
- // https://www.w3.org/TR/html-aam-1.0/#:~:text=Comments-,area%20(represents%20a%20hyperlink),-area%20(no%20href
5
- {
6
- "contentModel": {
7
- "contents": false,
8
- "descendantOf": "map"
9
- },
10
- "globalAttrs": {
11
- "#HTMLGlobalAttrs": true,
12
- "#GlobalEventAttrs": true,
13
- "#DocumentElementEventAttrs": true,
14
- "#ARIAAttrs": true,
15
- "#HTMLLinkAndFetchingAttrs": ["href", "target", "download", "ping", "rel", "hreflang", "type", "referrerpolicy"]
16
- },
17
- "attributes": {
18
- // https://html.spec.whatwg.org/multipage/image-maps.html#attr-area-alt
19
- "alt": {
20
- "type": "Any",
21
- "required": true,
22
- "condition": "[href]"
23
- },
24
- // https://html.spec.whatwg.org/multipage/image-maps.html#attr-area-coords
25
- "coords": {
26
- "type": {
27
- "token": "Number",
28
- "disallowToSurroundBySpaces": true,
29
- "separator": "comma"
30
- }
31
- },
32
- // https://html.spec.whatwg.org/multipage/image-maps.html#attr-area-shape
33
- "shape": {
34
- "type": {
35
- "enum": ["rect", "circle", "poly", "default"],
36
- "missingValueDefault": "rect",
37
- "invalidValueDefault": "rect"
38
- }
39
- }
40
- },
41
- "aria": {
42
- "implicitRole": "link",
43
- "permittedRoles": false,
44
- "properties": {
45
- "global": true,
46
- "role": "link"
47
- },
48
- "conditions": {
49
- ":not([href])": {
50
- "implicitRole": false,
51
- "permittedRoles": ["button", "link"],
52
- "namingProhibited": true
53
- }
54
- },
55
- "1.1": {
56
- "conditions": {
57
- ":not([href])": {
58
- "implicitRole": false,
59
- "permittedRoles": false
60
- }
61
- }
62
- }
63
- }
64
- }
@@ -1,24 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/sections.html#the-article-element
2
- // https://www.w3.org/TR/html-aria/#el-article
3
- // https://w3c.github.io/html-aria/#el-article
4
- // https://www.w3.org/TR/html-aam-1.0/#:~:text=Comments-,article,-aside%20(scoped%20to
5
- {
6
- "contentModel": {
7
- "contents": [
8
- {
9
- "zeroOrMore": "#flow"
10
- }
11
- ]
12
- },
13
- "globalAttrs": {
14
- "#HTMLGlobalAttrs": true,
15
- "#GlobalEventAttrs": true,
16
- "#DocumentElementEventAttrs": true,
17
- "#ARIAAttrs": true
18
- },
19
- "attributes": {},
20
- "aria": {
21
- "implicitRole": "article",
22
- "permittedRoles": ["application", "document", "feed", "main", "none", "presentation", "region"]
23
- }
24
- }
@@ -1,38 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/sections.html#the-aside-element
2
- // https://www.w3.org/TR/html-aria/#el-aside
3
- // https://w3c.github.io/html-aria/#el-aside
4
- // https://www.w3.org/TR/html-aam-1.0/#:~:text=Comments-,aside%20(scoped%20to%20the%20body%20or%20main%20element),-aside%20(scoped%20to
5
- {
6
- "contentModel": {
7
- "contents": [
8
- {
9
- "zeroOrMore": "#flow"
10
- }
11
- ]
12
- },
13
- "globalAttrs": {
14
- "#HTMLGlobalAttrs": true,
15
- "#GlobalEventAttrs": true,
16
- "#DocumentElementEventAttrs": true,
17
- "#ARIAAttrs": true
18
- },
19
- "attributes": {},
20
- "aria": {
21
- // v1.2 later
22
- // "implicitRole": "generic",
23
- // "conditions": [
24
- // {
25
- // "condition": ":is(body, main) aside",
26
- // "role": "complementary"
27
- // },
28
- // {
29
- // // Sectioning content elements are: article, aside, nav, section
30
- // // Sectioning root elements are: blockquote, body, details, dialog, fieldset, figure, td
31
- // "condition": ":is(article, aside, nav, section, blockquote, details, dialog, fieldset, figure, td) aside:hasaccname",
32
- // "role": "complementary"
33
- // }
34
- // ]
35
- "implicitRole": "complementary",
36
- "permittedRoles": ["feed", "none", "note", "presentation", "region", "search"]
37
- }
38
- }
@@ -1,50 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/media.html#the-audio-element
2
- // https://www.w3.org/TR/html-aria/#el-audio
3
- // https://w3c.github.io/html-aria/#el-audio
4
- {
5
- "contentModel": {
6
- "contents": [
7
- {
8
- "zeroOrMore": "source"
9
- },
10
- {
11
- "zeroOrMore": "track"
12
- },
13
- {
14
- "zeroOrMore": "#transparent",
15
- "notAllowedDescendants": ["audio", "video"]
16
- }
17
- ],
18
- "conditional": [
19
- {
20
- "condition": "[src]",
21
- "contents": [
22
- {
23
- "zeroOrMore": "track"
24
- },
25
- {
26
- "zeroOrMore": "#transparent",
27
- "notAllowedDescendants": ["audio", "video"]
28
- }
29
- ]
30
- }
31
- ]
32
- },
33
- "globalAttrs": {
34
- "#HTMLGlobalAttrs": true,
35
- "#GlobalEventAttrs": true,
36
- "#DocumentElementEventAttrs": true,
37
- "#ARIAAttrs": true,
38
- "#HTMLLinkAndFetchingAttrs": ["crossorigin"],
39
- "#HTMLEmbededAndMediaContentAttrs": ["src", "preload", "autoplay", "loop", "muted", "controls"]
40
- },
41
- "attributes": {},
42
- "aria": {
43
- "implicitRole": false,
44
- "permittedRoles": ["application"],
45
- "properties": {
46
- "global": true,
47
- "role": "application"
48
- }
49
- }
50
- }
package/src/spec.b.json DELETED
@@ -1,24 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-b-element
2
- // https://www.w3.org/TR/html-aria/#el-b
3
- // https://w3c.github.io/html-aria/#el-b
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": false,
21
- "permittedRoles": true,
22
- "namingProhibited": true
23
- }
24
- }
@@ -1,21 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/semantics.html#the-base-element
2
- // https://www.w3.org/TR/html-aria/#el-base
3
- // https://w3c.github.io/html-aria/#el-base
4
- {
5
- "contentModel": {
6
- "contents": false
7
- },
8
- "globalAttrs": {
9
- "#HTMLGlobalAttrs": true,
10
- "#GlobalEventAttrs": true,
11
- "#DocumentElementEventAttrs": true,
12
- "#ARIAAttrs": true,
13
- "#HTMLLinkAndFetchingAttrs": ["href", "target"]
14
- },
15
- "attributes": {},
16
- "aria": {
17
- "implicitRole": false,
18
- "permittedRoles": false,
19
- "properties": false
20
- }
21
- }
package/src/spec.bdi.json DELETED
@@ -1,24 +0,0 @@
1
- // https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-bdi-element
2
- // https://www.w3.org/TR/html-aria/#el-bdi
3
- // https://w3c.github.io/html-aria/#el-bdi
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": false,
21
- "permittedRoles": true,
22
- "namingProhibited": true
23
- }
24
- }