@markuplint/html-spec 2.0.0-alpha.0.26 → 2.0.0-dev.20211213.0
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.
- package/index.json +8519 -5691
- package/package.json +5 -3
- package/src/aria-in-html/td.json +6 -2
- package/src/attributes/a.json +9 -40
- package/src/attributes/address.json +11 -0
- package/src/attributes/area.json +24 -44
- package/src/attributes/article.json +11 -0
- package/src/attributes/aside.json +11 -0
- package/src/attributes/audio.json +10 -32
- package/src/attributes/b.json +11 -0
- package/src/attributes/base.json +9 -13
- package/src/attributes/bdi.json +11 -0
- package/src/attributes/bdo.json +8 -8
- package/src/attributes/blockquote.json +11 -4
- package/src/attributes/body.json +57 -50
- package/src/attributes/br.json +11 -0
- package/src/attributes/button.json +27 -44
- package/src/attributes/canvas.json +16 -8
- package/src/attributes/caption.json +11 -0
- package/src/attributes/cite.json +11 -0
- package/src/attributes/code.json +11 -0
- package/src/attributes/col.json +18 -5
- package/src/attributes/colgroup.json +18 -5
- package/src/attributes/data.json +12 -5
- package/src/attributes/datalist.json +11 -0
- package/src/attributes/dd.json +11 -0
- package/src/attributes/del.json +14 -7
- package/src/attributes/details.json +11 -9
- package/src/attributes/dfn.json +11 -0
- package/src/attributes/dialog.json +15 -4
- package/src/attributes/div.json +11 -0
- package/src/attributes/dl.json +11 -0
- package/src/attributes/dt.json +11 -0
- package/src/attributes/em.json +11 -0
- package/src/attributes/embed.json +22 -16
- package/src/attributes/fieldset.json +9 -14
- package/src/attributes/figcaption.json +11 -0
- package/src/attributes/figure.json +11 -0
- package/src/attributes/footer.json +11 -0
- package/src/attributes/form.json +62 -29
- package/src/attributes/h1.json +11 -0
- package/src/attributes/h2.json +11 -0
- package/src/attributes/h3.json +11 -0
- package/src/attributes/h4.json +11 -0
- package/src/attributes/h5.json +11 -0
- package/src/attributes/h6.json +11 -0
- package/src/attributes/head.json +11 -0
- package/src/attributes/header.json +11 -0
- package/src/attributes/hr.json +11 -0
- package/src/attributes/html.json +11 -0
- package/src/attributes/i.json +11 -0
- package/src/attributes/iframe.json +51 -57
- package/src/attributes/img.json +31 -50
- package/src/attributes/input.json +128 -120
- package/src/attributes/ins.json +14 -7
- package/src/attributes/kbd.json +11 -0
- package/src/attributes/label.json +11 -8
- package/src/attributes/legend.json +11 -0
- package/src/attributes/li.json +12 -5
- package/src/attributes/link.json +110 -51
- package/src/attributes/main.json +11 -0
- package/src/attributes/map.json +13 -5
- package/src/attributes/mark.json +11 -0
- package/src/attributes/menu.json +11 -0
- package/src/attributes/meta.json +36 -21
- package/src/attributes/meter.json +27 -20
- package/src/attributes/nav.json +11 -0
- package/src/attributes/noscript.json +11 -0
- package/src/attributes/object.json +20 -27
- package/src/attributes/ol.json +19 -9
- package/src/attributes/optgroup.json +13 -9
- package/src/attributes/option.json +18 -14
- package/src/attributes/output.json +12 -12
- package/src/attributes/p.json +11 -0
- package/src/attributes/param.json +17 -8
- package/src/attributes/picture.json +11 -0
- package/src/attributes/portal.json +17 -8
- package/src/attributes/pre.json +11 -0
- package/src/attributes/progress.json +16 -8
- package/src/attributes/q.json +11 -4
- package/src/attributes/rp.json +11 -0
- package/src/attributes/rt.json +11 -0
- package/src/attributes/ruby.json +11 -0
- package/src/attributes/s.json +11 -0
- package/src/attributes/samp.json +11 -0
- package/src/attributes/script.json +48 -27
- package/src/attributes/section.json +11 -0
- package/src/attributes/select.json +17 -29
- package/src/attributes/slot.json +12 -5
- package/src/attributes/small.json +11 -0
- package/src/attributes/source.json +34 -16
- package/src/attributes/span.json +11 -0
- package/src/attributes/strong.json +11 -0
- package/src/attributes/style.json +12 -5
- package/src/attributes/sub.json +11 -0
- package/src/attributes/summary.json +11 -0
- package/src/attributes/sup.json +11 -0
- package/src/attributes/svg_a.json +81 -47
- package/src/attributes/svg_animate.json +93 -13
- package/src/attributes/svg_animateMotion.json +36 -32
- package/src/attributes/svg_animateTransform.json +27 -14
- package/src/attributes/svg_circle.json +87 -26
- package/src/attributes/svg_clipPath.json +79 -15
- package/src/attributes/svg_defs.json +76 -1
- package/src/attributes/svg_desc.json +7 -1
- package/src/attributes/svg_discard.json +13 -10
- package/src/attributes/svg_ellipse.json +88 -27
- package/src/attributes/svg_feBlend.json +88 -40
- package/src/attributes/svg_feColorMatrix.json +85 -38
- package/src/attributes/svg_feComponentTransfer.json +75 -31
- package/src/attributes/svg_feComposite.json +113 -56
- package/src/attributes/svg_feConvolveMatrix.json +118 -62
- package/src/attributes/svg_feDiffuseLighting.json +90 -42
- package/src/attributes/svg_feDisplacementMap.json +100 -47
- package/src/attributes/svg_feDistantLight.json +16 -11
- package/src/attributes/svg_feDropShadow.json +91 -43
- package/src/attributes/svg_feFlood.json +82 -37
- package/src/attributes/svg_feFuncA.json +6 -10
- package/src/attributes/svg_feFuncB.json +6 -10
- package/src/attributes/svg_feFuncG.json +6 -10
- package/src/attributes/svg_feFuncR.json +6 -10
- package/src/attributes/svg_feGaussianBlur.json +85 -38
- package/src/attributes/svg_feImage.json +97 -31
- package/src/attributes/svg_feMerge.json +75 -15
- package/src/attributes/svg_feMergeNode.json +6 -19
- package/src/attributes/svg_feMorphology.json +87 -39
- package/src/attributes/svg_feOffset.json +86 -39
- package/src/attributes/svg_fePointLight.json +21 -15
- package/src/attributes/svg_feSpecularLighting.json +95 -47
- package/src/attributes/svg_feSpotLight.json +52 -58
- package/src/attributes/svg_feTile.json +75 -31
- package/src/attributes/svg_feTurbulence.json +100 -33
- package/src/attributes/svg_filter.json +102 -27
- package/src/attributes/svg_foreignObject.json +83 -38
- package/src/attributes/svg_g.json +79 -8
- package/src/attributes/svg_hatch.json +103 -29
- package/src/attributes/svg_hatchpath.json +79 -11
- package/src/attributes/svg_image.json +97 -46
- package/src/attributes/svg_line.json +104 -27
- package/src/attributes/svg_linearGradient.json +118 -37
- package/src/attributes/svg_marker.json +124 -44
- package/src/attributes/svg_mask.json +89 -22
- package/src/attributes/svg_mesh.json +82 -10
- package/src/attributes/svg_meshgradient.json +22 -29
- package/src/attributes/svg_meshpatch.json +75 -1
- package/src/attributes/svg_meshrow.json +75 -1
- package/src/attributes/svg_metadata.json +7 -1
- package/src/attributes/svg_mpath.json +11 -8
- package/src/attributes/svg_path.json +86 -15
- package/src/attributes/svg_pattern.json +110 -46
- package/src/attributes/svg_polygon.json +88 -14
- package/src/attributes/svg_polyline.json +88 -14
- package/src/attributes/svg_radialGradient.json +132 -49
- package/src/attributes/svg_rect.json +90 -51
- package/src/attributes/svg_script.json +20 -17
- package/src/attributes/svg_set.json +27 -13
- package/src/attributes/svg_stop.json +92 -18
- package/src/attributes/svg_style.json +16 -13
- package/src/attributes/svg_svg.json +114 -62
- package/src/attributes/svg_switch.json +79 -8
- package/src/attributes/svg_symbol.json +27 -44
- package/src/attributes/svg_text.json +114 -32
- package/src/attributes/svg_textPath.json +123 -37
- package/src/attributes/svg_title.json +7 -1
- package/src/attributes/svg_tspan.json +110 -32
- package/src/attributes/svg_use.json +87 -46
- package/src/attributes/svg_view.json +21 -17
- package/src/attributes/table.json +11 -0
- package/src/attributes/tbody.json +11 -0
- package/src/attributes/td.json +9 -14
- package/src/attributes/template.json +11 -0
- package/src/attributes/textarea.json +42 -50
- package/src/attributes/tfoot.json +11 -0
- package/src/attributes/th.json +18 -20
- package/src/attributes/thead.json +11 -0
- package/src/attributes/time.json +12 -23
- package/src/attributes/title.json +11 -0
- package/src/attributes/tr.json +11 -0
- package/src/attributes/track.json +38 -0
- package/src/attributes/u.json +11 -0
- package/src/attributes/ul.json +11 -0
- package/src/attributes/var.json +11 -0
- package/src/attributes/video.json +34 -48
- package/src/attributes/wbr.json +11 -0
- package/src/global-attributes/_global.json +1334 -1161
- package/src/permitted-structures/svg_a.json +1 -1
- package/src/structure.test.ts +64 -0
- package/src/attributes/_custom.json +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/html-spec",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-dev.20211213.0",
|
|
4
4
|
"description": "A specification of HTML Living Standard for markuplint",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
@@ -15,16 +15,18 @@
|
|
|
15
15
|
"gen": "ts-node gen/index.ts; prettier --write index.json"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
+
"@apidevtools/json-schema-ref-parser": "^9.0.9",
|
|
18
19
|
"@types/cheerio": "^0.22.30",
|
|
19
20
|
"@types/cli-progress": "^3.9.2",
|
|
20
21
|
"@types/node-fetch": "2",
|
|
21
22
|
"cheerio": "^1.0.0-rc.10",
|
|
22
23
|
"cli-progress": "^3.9.1",
|
|
23
24
|
"fast-xml-parser": "^3.21.1",
|
|
25
|
+
"jsonschema": "^1.4.0",
|
|
24
26
|
"node-fetch": "2"
|
|
25
27
|
},
|
|
26
28
|
"dependencies": {
|
|
27
|
-
"@markuplint/ml-spec": "
|
|
29
|
+
"@markuplint/ml-spec": "2.0.0-dev.20211213.0"
|
|
28
30
|
},
|
|
29
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "8f4682ca3e0937082af8c39b999443afa4a1aef3"
|
|
30
32
|
}
|
package/src/aria-in-html/td.json
CHANGED
|
@@ -3,14 +3,18 @@
|
|
|
3
3
|
"roles": true,
|
|
4
4
|
"conditions": [
|
|
5
5
|
{
|
|
6
|
-
"condition": ":closest(table[role=table], table[role=grid], table[role=treegrid])",
|
|
6
|
+
"condition": ":closest(table, table[role=table], table[role=grid], table[role=treegrid])",
|
|
7
7
|
"roles": false
|
|
8
8
|
}
|
|
9
9
|
]
|
|
10
10
|
},
|
|
11
11
|
"implicitRole": {
|
|
12
|
-
"role":
|
|
12
|
+
"role": false,
|
|
13
13
|
"conditions": [
|
|
14
|
+
{
|
|
15
|
+
"condition": ":closest(table, table[role=table])",
|
|
16
|
+
"role": "cell"
|
|
17
|
+
},
|
|
14
18
|
{
|
|
15
19
|
"condition": ":closest(table[role=grid], table[role=treegrid])",
|
|
16
20
|
"role": "gridcell"
|
package/src/attributes/a.json
CHANGED
|
@@ -1,43 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tag": "a",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
{
|
|
13
|
-
"name": "hreflang",
|
|
14
|
-
"type": "BCP47"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"name": "ping",
|
|
18
|
-
"type": "URLList"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"name": "referrerpolicy",
|
|
22
|
-
"type": "ReferrerPolicy"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"name": "rel",
|
|
26
|
-
"type": "LinkTypeList",
|
|
27
|
-
"condition": {
|
|
28
|
-
"self": "[href]"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"name": "target",
|
|
33
|
-
"type": "Target",
|
|
34
|
-
"condition": {
|
|
35
|
-
"self": "[href]"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "type",
|
|
40
|
-
"type": "String"
|
|
41
|
-
}
|
|
42
|
-
]
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-a-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true,
|
|
9
|
+
"#HTMLLinkAndFetchingAttrs": ["href", "target", "download", "ping", "rel", "hreflang", "type", "referrerpolicy"]
|
|
10
|
+
},
|
|
11
|
+
"attributes": {}
|
|
43
12
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tag": "address",
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/sections.html#the-address-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true
|
|
9
|
+
},
|
|
10
|
+
"attributes": {}
|
|
11
|
+
}
|
package/src/attributes/area.json
CHANGED
|
@@ -1,57 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tag": "area",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/image-maps.html#the-area-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true,
|
|
9
|
+
"#HTMLLinkAndFetchingAttrs": ["href", "target", "download", "ping", "rel", "hreflang", "type", "referrerpolicy"]
|
|
10
|
+
},
|
|
11
|
+
"attributes": {
|
|
12
|
+
"alt": {
|
|
13
|
+
"ref": "https://html.spec.whatwg.org/multipage/image-maps.html#attr-area-alt",
|
|
14
|
+
"type": "Any",
|
|
7
15
|
"required": true,
|
|
8
16
|
"condition": {
|
|
9
17
|
"self": "[href]"
|
|
10
18
|
}
|
|
11
19
|
},
|
|
12
|
-
{
|
|
13
|
-
"
|
|
14
|
-
"type": "Coords"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"name": "download",
|
|
18
|
-
"type": "String"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"name": "href",
|
|
22
|
-
"type": "URL"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"name": "ping",
|
|
26
|
-
"type": "URLList"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "referrerpolicy",
|
|
30
|
-
"type": "ReferrerPolicy"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"name": "rel",
|
|
34
|
-
"type": "LinkTypeList",
|
|
35
|
-
"condition": {
|
|
36
|
-
"self": "[href]"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"name": "shape",
|
|
20
|
+
"coords": {
|
|
21
|
+
"ref": "https://html.spec.whatwg.org/multipage/image-maps.html#attr-area-coords",
|
|
41
22
|
"type": {
|
|
42
|
-
"
|
|
23
|
+
"token": "Number",
|
|
24
|
+
"disallowToSurroundBySpaces": true,
|
|
25
|
+
"separator": "comma"
|
|
43
26
|
}
|
|
44
27
|
},
|
|
45
|
-
{
|
|
46
|
-
"
|
|
47
|
-
"type":
|
|
48
|
-
|
|
49
|
-
"
|
|
28
|
+
"shape": {
|
|
29
|
+
"ref": "https://html.spec.whatwg.org/multipage/image-maps.html#attr-area-shape",
|
|
30
|
+
"type": {
|
|
31
|
+
"enum": ["rect", "circle", "poly", "default"],
|
|
32
|
+
"missingValueDefault": "rect",
|
|
33
|
+
"invalidValueDefault": "rect"
|
|
50
34
|
}
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"name": "type",
|
|
54
|
-
"type": "String"
|
|
55
35
|
}
|
|
56
|
-
|
|
36
|
+
}
|
|
57
37
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tag": "article",
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/sections.html#the-article-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": "aside",
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/sections.html#the-aside-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true
|
|
9
|
+
},
|
|
10
|
+
"attributes": {}
|
|
11
|
+
}
|
|
@@ -1,35 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tag": "audio",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"name": "crossorigin",
|
|
14
|
-
"type": "Crossorigin"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"name": "loop",
|
|
18
|
-
"type": "Boolean"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"name": "muted",
|
|
22
|
-
"type": "Boolean"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"name": "preload",
|
|
26
|
-
"type": {
|
|
27
|
-
"enum": ["none", "metadata", "auto", ""]
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"name": "src",
|
|
32
|
-
"type": "URL"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/media.html#the-audio-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true,
|
|
9
|
+
"#HTMLLinkAndFetchingAttrs": ["crossorigin"],
|
|
10
|
+
"#HTMLEmbededAndMediaContentAttrs": ["src", "preload", "autoplay", "loop", "muted", "controls"]
|
|
11
|
+
},
|
|
12
|
+
"attributes": {}
|
|
35
13
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tag": "b",
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-b-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true
|
|
9
|
+
},
|
|
10
|
+
"attributes": {}
|
|
11
|
+
}
|
package/src/attributes/base.json
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tag": "base",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"self": "[href]"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
]
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/semantics.html#the-base-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true,
|
|
9
|
+
"#HTMLLinkAndFetchingAttrs": ["href", "target"]
|
|
10
|
+
},
|
|
11
|
+
"attributes": {}
|
|
16
12
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tag": "bdi",
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-bdi-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true
|
|
9
|
+
},
|
|
10
|
+
"attributes": {}
|
|
11
|
+
}
|
package/src/attributes/bdo.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tag": "bdo",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-bdo-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true
|
|
9
|
+
},
|
|
10
|
+
"attributes": {}
|
|
11
11
|
}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tag": "blockquote",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/grouping-content.html#the-blockquote-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true
|
|
9
|
+
},
|
|
10
|
+
"attributes": {
|
|
11
|
+
"cite": {
|
|
12
|
+
"ref": "https://html.spec.whatwg.org/multipage/grouping-content.html#attr-blockquote-cite",
|
|
6
13
|
"type": "URL"
|
|
7
14
|
}
|
|
8
|
-
|
|
15
|
+
}
|
|
9
16
|
}
|
package/src/attributes/body.json
CHANGED
|
@@ -1,69 +1,76 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tag": "body",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/sections.html#the-body-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true
|
|
9
|
+
},
|
|
10
|
+
"attributes": {
|
|
11
|
+
"onafterprint": {
|
|
12
|
+
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onafterprint",
|
|
13
|
+
"type": "FunctionBody"
|
|
7
14
|
},
|
|
8
|
-
{
|
|
9
|
-
"
|
|
10
|
-
"type": "
|
|
15
|
+
"onbeforeprint": {
|
|
16
|
+
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onbeforeprint",
|
|
17
|
+
"type": "FunctionBody"
|
|
11
18
|
},
|
|
12
|
-
{
|
|
13
|
-
"
|
|
14
|
-
"type": "
|
|
19
|
+
"onbeforeunload": {
|
|
20
|
+
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onbeforeunload",
|
|
21
|
+
"type": "FunctionBody"
|
|
15
22
|
},
|
|
16
|
-
{
|
|
17
|
-
"
|
|
18
|
-
"type": "
|
|
23
|
+
"onhashchange": {
|
|
24
|
+
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onhashchange",
|
|
25
|
+
"type": "FunctionBody"
|
|
19
26
|
},
|
|
20
|
-
{
|
|
21
|
-
"
|
|
22
|
-
"type": "
|
|
27
|
+
"onlanguagechange": {
|
|
28
|
+
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onlanguagechange",
|
|
29
|
+
"type": "FunctionBody"
|
|
23
30
|
},
|
|
24
|
-
{
|
|
25
|
-
"
|
|
26
|
-
"type": "
|
|
31
|
+
"onmessage": {
|
|
32
|
+
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onmessage",
|
|
33
|
+
"type": "FunctionBody"
|
|
27
34
|
},
|
|
28
|
-
{
|
|
29
|
-
"
|
|
30
|
-
"type": "
|
|
35
|
+
"onmessageerror": {
|
|
36
|
+
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onmessageerror",
|
|
37
|
+
"type": "FunctionBody"
|
|
31
38
|
},
|
|
32
|
-
{
|
|
33
|
-
"
|
|
34
|
-
"type": "
|
|
39
|
+
"onoffline": {
|
|
40
|
+
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onoffline",
|
|
41
|
+
"type": "FunctionBody"
|
|
35
42
|
},
|
|
36
|
-
{
|
|
37
|
-
"
|
|
38
|
-
"type": "
|
|
43
|
+
"ononline": {
|
|
44
|
+
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-ononline",
|
|
45
|
+
"type": "FunctionBody"
|
|
39
46
|
},
|
|
40
|
-
{
|
|
41
|
-
"
|
|
42
|
-
"type": "
|
|
47
|
+
"onpagehide": {
|
|
48
|
+
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onpagehide",
|
|
49
|
+
"type": "FunctionBody"
|
|
43
50
|
},
|
|
44
|
-
{
|
|
45
|
-
"
|
|
46
|
-
"type": "
|
|
51
|
+
"onpageshow": {
|
|
52
|
+
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onpageshow",
|
|
53
|
+
"type": "FunctionBody"
|
|
47
54
|
},
|
|
48
|
-
{
|
|
49
|
-
"
|
|
50
|
-
"type": "
|
|
55
|
+
"onpopstate": {
|
|
56
|
+
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onpopstate",
|
|
57
|
+
"type": "FunctionBody"
|
|
51
58
|
},
|
|
52
|
-
{
|
|
53
|
-
"
|
|
54
|
-
"type": "
|
|
59
|
+
"onrejectionhandled": {
|
|
60
|
+
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onrejectionhandled",
|
|
61
|
+
"type": "FunctionBody"
|
|
55
62
|
},
|
|
56
|
-
{
|
|
57
|
-
"
|
|
58
|
-
"type": "
|
|
63
|
+
"onstorage": {
|
|
64
|
+
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onstorage",
|
|
65
|
+
"type": "FunctionBody"
|
|
59
66
|
},
|
|
60
|
-
{
|
|
61
|
-
"
|
|
62
|
-
"type": "
|
|
67
|
+
"onunhandledrejection": {
|
|
68
|
+
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onunhandledrejection",
|
|
69
|
+
"type": "FunctionBody"
|
|
63
70
|
},
|
|
64
|
-
{
|
|
65
|
-
"
|
|
66
|
-
"type": "
|
|
71
|
+
"onunload": {
|
|
72
|
+
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onunload",
|
|
73
|
+
"type": "FunctionBody"
|
|
67
74
|
}
|
|
68
|
-
|
|
75
|
+
}
|
|
69
76
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tag": "br",
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-br-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true
|
|
9
|
+
},
|
|
10
|
+
"attributes": {}
|
|
11
|
+
}
|
|
@@ -1,51 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tag": "button",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"name"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"name": "formmethod",
|
|
24
|
-
"type": {
|
|
25
|
-
"enum": ["post", "get", "dialog"]
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "formnovalidate",
|
|
30
|
-
"type": "Boolean"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"name": "formtarget",
|
|
34
|
-
"type": "Target"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"name": "name",
|
|
38
|
-
"type": "String"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"name": "type",
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/form-elements.html#the-button-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true,
|
|
9
|
+
"#HTMLFormControlElementAttrs": [
|
|
10
|
+
"disabled",
|
|
11
|
+
"form",
|
|
12
|
+
"formaction",
|
|
13
|
+
"formenctype",
|
|
14
|
+
"formmethod",
|
|
15
|
+
"formnovalidate",
|
|
16
|
+
"formtarget",
|
|
17
|
+
"name"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"attributes": {
|
|
21
|
+
"type": {
|
|
22
|
+
"ref": "https://html.spec.whatwg.org/multipage/form-elements.html#attr-button-type",
|
|
42
23
|
"type": {
|
|
43
|
-
"enum": ["submit", "reset", "button"]
|
|
24
|
+
"enum": ["submit", "reset", "button"],
|
|
25
|
+
"invalidValueDefault": "submit",
|
|
26
|
+
"missingValueDefault": "submit"
|
|
44
27
|
}
|
|
45
28
|
},
|
|
46
|
-
{
|
|
47
|
-
"
|
|
48
|
-
"type": "
|
|
29
|
+
"value": {
|
|
30
|
+
"ref": "https://html.spec.whatwg.org/multipage/form-elements.html#attr-button-value",
|
|
31
|
+
"type": "Any"
|
|
49
32
|
}
|
|
50
|
-
|
|
33
|
+
}
|
|
51
34
|
}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tag": "canvas",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/canvas.html#the-canvas-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true,
|
|
9
|
+
"#HTMLEmbededAndMediaContentAttrs": ["height", "width"]
|
|
10
|
+
},
|
|
11
|
+
"attributes": {
|
|
12
|
+
"height": {
|
|
13
|
+
"ref": "https://html.spec.whatwg.org/multipage/canvas.html#attr-canvas-height",
|
|
14
|
+
"defaultValue": "150"
|
|
7
15
|
},
|
|
8
|
-
{
|
|
9
|
-
"
|
|
10
|
-
"
|
|
16
|
+
"width": {
|
|
17
|
+
"ref": "https://html.spec.whatwg.org/multipage/canvas.html#attr-canvas-width",
|
|
18
|
+
"defaultValue": "300"
|
|
11
19
|
}
|
|
12
|
-
|
|
20
|
+
}
|
|
13
21
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tag": "cite",
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-cite-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": "code",
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-code-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true
|
|
9
|
+
},
|
|
10
|
+
"attributes": {}
|
|
11
|
+
}
|