@markuplint/html-spec 2.0.0-dev.2021117.0 → 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 +8512 -5688
- package/package.json +5 -3
- 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
|
@@ -1,66 +1,60 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tag": "iframe",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-iframe-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true,
|
|
9
|
+
"#HTMLEmbededAndMediaContentAttrs": ["src", "height", "width"],
|
|
10
|
+
"#HTMLLinkAndFetchingAttrs": ["referrerpolicy", "loading"]
|
|
11
|
+
},
|
|
12
|
+
"attributes": {
|
|
13
|
+
"src": {
|
|
14
|
+
"ref": "https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-src",
|
|
15
|
+
"required": { "self": "[itemprop]" }
|
|
16
|
+
},
|
|
17
|
+
"srcdoc": {
|
|
18
|
+
"ref": "https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-srcdoc",
|
|
19
|
+
"type": "Any",
|
|
20
|
+
"_TODO_": "The type is HTML syntax, but it does not support"
|
|
21
|
+
},
|
|
22
|
+
"name": {
|
|
23
|
+
"ref": "https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-name",
|
|
24
|
+
"type": "BrowsingContextName"
|
|
25
|
+
},
|
|
26
|
+
"sandbox": {
|
|
27
|
+
"ref": "https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-sandbox",
|
|
18
28
|
"type": {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
"token": {
|
|
30
|
+
"enum": [
|
|
31
|
+
"allow-forms",
|
|
32
|
+
"allow-modals",
|
|
33
|
+
"allow-orientation-lock",
|
|
34
|
+
"allow-pointer-lock",
|
|
35
|
+
"allow-popups",
|
|
36
|
+
"allow-popups-to-escape-sandbox",
|
|
37
|
+
"allow-presentation",
|
|
38
|
+
"allow-same-origin",
|
|
39
|
+
"allow-scripts",
|
|
40
|
+
"allow-top-navigation",
|
|
41
|
+
"allow-top-navigation-by-user-activation",
|
|
42
|
+
"allow-downloads"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"caseInsensitive": true,
|
|
46
|
+
"ordered": true,
|
|
47
|
+
"unique": true,
|
|
48
|
+
"separator": "space"
|
|
33
49
|
}
|
|
34
50
|
},
|
|
35
|
-
{
|
|
36
|
-
"
|
|
37
|
-
"type": "
|
|
51
|
+
"allow": {
|
|
52
|
+
"ref": "https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-allow",
|
|
53
|
+
"type": "SerializedPermissionsPolicy"
|
|
38
54
|
},
|
|
39
|
-
{
|
|
40
|
-
"
|
|
55
|
+
"allowfullscreen": {
|
|
56
|
+
"ref": "https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-allowfullscreen",
|
|
41
57
|
"type": "Boolean"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "allowpaymentrequest",
|
|
45
|
-
"type": "Boolean"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"name": "width",
|
|
49
|
-
"type": "Uint"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"name": "height",
|
|
53
|
-
"type": "Uint"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"name": "referrerpolicy",
|
|
57
|
-
"type": "ReferrerPolicy"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"name": "loading",
|
|
61
|
-
"type": {
|
|
62
|
-
"enum": ["eager", "lazy"]
|
|
63
|
-
}
|
|
64
58
|
}
|
|
65
|
-
|
|
59
|
+
}
|
|
66
60
|
}
|
package/src/attributes/img.json
CHANGED
|
@@ -1,64 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tag": "img",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/embedded-content.html#the-img-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true,
|
|
9
|
+
"#HTMLEmbededAndMediaContentAttrs": ["src", "height", "srcset", "sizes", "width"],
|
|
10
|
+
"#HTMLLinkAndFetchingAttrs": ["crossorigin", "referrerpolicy", "loading"]
|
|
11
|
+
},
|
|
12
|
+
"attributes": {
|
|
13
|
+
"alt": {
|
|
14
|
+
"ref": "https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-alt",
|
|
15
|
+
"type": "Any"
|
|
16
|
+
},
|
|
17
|
+
"src": {
|
|
18
|
+
"ref": "https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-src",
|
|
19
|
+
"type": "URL",
|
|
20
|
+
"required": true
|
|
11
21
|
},
|
|
12
|
-
{
|
|
13
|
-
"
|
|
14
|
-
"type":
|
|
15
|
-
|
|
22
|
+
"usemap": {
|
|
23
|
+
"ref": "https://html.spec.whatwg.org/multipage/image-maps.html#attr-hyperlink-usemap",
|
|
24
|
+
"type": "HashName",
|
|
25
|
+
"condition": {
|
|
26
|
+
"ancestor": ":not(a):not(button)"
|
|
16
27
|
}
|
|
17
28
|
},
|
|
18
|
-
{
|
|
19
|
-
"
|
|
20
|
-
"type": "Uint"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"name": "ismap",
|
|
29
|
+
"ismap": {
|
|
30
|
+
"ref": "https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-ismap",
|
|
24
31
|
"type": "Boolean",
|
|
25
32
|
"condition": {
|
|
26
33
|
"ancestor": "a[href]"
|
|
27
34
|
}
|
|
28
35
|
},
|
|
29
|
-
{
|
|
30
|
-
"
|
|
36
|
+
"decoding": {
|
|
37
|
+
"ref": "https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-decoding",
|
|
31
38
|
"type": {
|
|
32
|
-
"enum": ["
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
{
|
|
36
|
-
"name": "referrerpolicy",
|
|
37
|
-
"type": "ReferrerPolicy"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"name": "sizes",
|
|
41
|
-
"type": "SourceSizeList"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "src",
|
|
45
|
-
"type": "URL",
|
|
46
|
-
"required": true
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "srcset",
|
|
50
|
-
"type": "SrcSet"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"name": "width",
|
|
54
|
-
"type": "Uint"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "usemap",
|
|
58
|
-
"type": "URLHash",
|
|
59
|
-
"condition": {
|
|
60
|
-
"ancestor": ":not(a):not(button)"
|
|
39
|
+
"enum": ["sync", "async", "auto"],
|
|
40
|
+
"invalidValueDefault": "auto",
|
|
41
|
+
"missingValueDefault": "auto"
|
|
61
42
|
}
|
|
62
43
|
}
|
|
63
|
-
|
|
44
|
+
}
|
|
64
45
|
}
|
|
@@ -1,23 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tag": "input",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/input.html#the-input-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true,
|
|
9
|
+
"#HTMLEmbededAndMediaContentAttrs": ["src", "height", "width"],
|
|
10
|
+
"#HTMLFormControlElementAttrs": [
|
|
11
|
+
"autocomplete",
|
|
12
|
+
"dirname",
|
|
13
|
+
"disabled",
|
|
14
|
+
"form",
|
|
15
|
+
"formaction",
|
|
16
|
+
"formenctype",
|
|
17
|
+
"formmethod",
|
|
18
|
+
"formnovalidate",
|
|
19
|
+
"formtarget",
|
|
20
|
+
"name",
|
|
21
|
+
"maxlength",
|
|
22
|
+
"minlength",
|
|
23
|
+
"readonly",
|
|
24
|
+
"required"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"attributes": {
|
|
28
|
+
"accept": {
|
|
29
|
+
"ref": "https://html.spec.whatwg.org/multipage/input.html#attr-input-accept",
|
|
30
|
+
"type": {
|
|
31
|
+
"token": "Accept",
|
|
32
|
+
"caseInsensitive": true,
|
|
33
|
+
"unique": true,
|
|
34
|
+
"separator": "comma"
|
|
35
|
+
},
|
|
7
36
|
"condition": {
|
|
8
37
|
"self": "[type='file' i]"
|
|
9
38
|
}
|
|
10
39
|
},
|
|
11
|
-
{
|
|
12
|
-
"
|
|
13
|
-
"type": "
|
|
40
|
+
"alt": {
|
|
41
|
+
"ref": "https://html.spec.whatwg.org/multipage/input.html#attr-input-alt",
|
|
42
|
+
"type": "Any",
|
|
14
43
|
"condition": {
|
|
15
44
|
"self": "[type='image' i]"
|
|
16
45
|
}
|
|
17
46
|
},
|
|
18
|
-
{
|
|
19
|
-
"
|
|
20
|
-
"type": "AutoComplete",
|
|
47
|
+
"autocomplete": {
|
|
48
|
+
"ref": "https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete",
|
|
21
49
|
"condition": {
|
|
22
50
|
"self": [
|
|
23
51
|
"[type='hidden' i]",
|
|
@@ -38,80 +66,29 @@
|
|
|
38
66
|
]
|
|
39
67
|
}
|
|
40
68
|
},
|
|
41
|
-
{
|
|
42
|
-
"
|
|
69
|
+
"checked": {
|
|
70
|
+
"ref": "https://html.spec.whatwg.org/multipage/input.html#attr-input-checked",
|
|
43
71
|
"type": "Boolean",
|
|
44
72
|
"condition": {
|
|
45
73
|
"self": ["[type='checkbox' i]", "[type='radio' i]"]
|
|
46
74
|
}
|
|
47
75
|
},
|
|
48
|
-
{
|
|
49
|
-
"
|
|
50
|
-
"type": "String",
|
|
76
|
+
"dirname": {
|
|
77
|
+
"ref": "https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-dirname",
|
|
51
78
|
"condition": {
|
|
52
79
|
"self": ["[type='text' i]", "[type='search' i]"]
|
|
53
80
|
}
|
|
54
81
|
},
|
|
55
|
-
{
|
|
56
|
-
"
|
|
57
|
-
"type": "Boolean"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"name": "form",
|
|
61
|
-
"type": "DOMID",
|
|
62
|
-
"condition": {
|
|
63
|
-
"self": ["[type='file' i]", "[type='file' i]"]
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"name": "formaction",
|
|
68
|
-
"type": "URL",
|
|
69
|
-
"condition": {
|
|
70
|
-
"self": ["[type='submit' i]", "[type='image' i]"]
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"name": "formenctype",
|
|
75
|
-
"type": {
|
|
76
|
-
"enum": ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]
|
|
77
|
-
},
|
|
78
|
-
"condition": {
|
|
79
|
-
"self": ["[type='submit' i]", "[type='image' i]"]
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"name": "formmethod",
|
|
84
|
-
"type": {
|
|
85
|
-
"enum": ["post", "get", "dialog"]
|
|
86
|
-
},
|
|
87
|
-
"condition": {
|
|
88
|
-
"self": ["[type='submit' i]", "[type='image' i]"]
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "formnovalidate",
|
|
93
|
-
"type": "Boolean",
|
|
94
|
-
"condition": {
|
|
95
|
-
"self": ["[type='submit' i]", "[type='image' i]"]
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"name": "formtarget",
|
|
100
|
-
"type": "Target",
|
|
101
|
-
"condition": {
|
|
102
|
-
"self": ["[type='submit' i]", "[type='image' i]"]
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "height",
|
|
107
|
-
"type": "Uint",
|
|
82
|
+
"height": {
|
|
83
|
+
"ref": "https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-height",
|
|
108
84
|
"condition": {
|
|
109
85
|
"self": "[type='image' i]"
|
|
110
86
|
}
|
|
111
87
|
},
|
|
112
|
-
{
|
|
113
|
-
"
|
|
88
|
+
"list": {
|
|
89
|
+
"ref": "https://html.spec.whatwg.org/multipage/input.html#attr-input-list",
|
|
114
90
|
"type": "DOMID",
|
|
91
|
+
"_TODO_": "must be the ID of a `datalist` element",
|
|
115
92
|
"condition": {
|
|
116
93
|
"self": [
|
|
117
94
|
"[type='text' i]",
|
|
@@ -130,9 +107,10 @@
|
|
|
130
107
|
]
|
|
131
108
|
}
|
|
132
109
|
},
|
|
133
|
-
{
|
|
134
|
-
"
|
|
135
|
-
"type": "
|
|
110
|
+
"max": {
|
|
111
|
+
"ref": "https://html.spec.whatwg.org/multipage/input.html#attr-input-max",
|
|
112
|
+
"type": ["DateTime", "Number"],
|
|
113
|
+
"_TODO_": "The `type` attribute determines the type either DateTime of Number",
|
|
136
114
|
"condition": {
|
|
137
115
|
"self": [
|
|
138
116
|
"[type='date' i]",
|
|
@@ -145,9 +123,8 @@
|
|
|
145
123
|
]
|
|
146
124
|
}
|
|
147
125
|
},
|
|
148
|
-
{
|
|
149
|
-
"
|
|
150
|
-
"type": "Uint",
|
|
126
|
+
"maxlength": {
|
|
127
|
+
"ref": "https://html.spec.whatwg.org/multipage/input.html#attr-input-maxlength",
|
|
151
128
|
"condition": {
|
|
152
129
|
"self": [
|
|
153
130
|
"[type='text' i]",
|
|
@@ -159,9 +136,10 @@
|
|
|
159
136
|
]
|
|
160
137
|
}
|
|
161
138
|
},
|
|
162
|
-
{
|
|
163
|
-
"
|
|
164
|
-
"type": "
|
|
139
|
+
"min": {
|
|
140
|
+
"ref": "https://html.spec.whatwg.org/multipage/input.html#attr-input-min",
|
|
141
|
+
"type": ["DateTime", "Number"],
|
|
142
|
+
"_TODO_": "The `type` attribute determines the type either DateTime of Number",
|
|
165
143
|
"condition": {
|
|
166
144
|
"self": [
|
|
167
145
|
"[type='date' i]",
|
|
@@ -174,9 +152,8 @@
|
|
|
174
152
|
]
|
|
175
153
|
}
|
|
176
154
|
},
|
|
177
|
-
{
|
|
178
|
-
"
|
|
179
|
-
"type": "Uint",
|
|
155
|
+
"minlength": {
|
|
156
|
+
"ref": "https://html.spec.whatwg.org/multipage/input.html#attr-input-minlength",
|
|
180
157
|
"condition": {
|
|
181
158
|
"self": [
|
|
182
159
|
"[type='text' i]",
|
|
@@ -188,20 +165,16 @@
|
|
|
188
165
|
]
|
|
189
166
|
}
|
|
190
167
|
},
|
|
191
|
-
{
|
|
192
|
-
"
|
|
168
|
+
"multiple": {
|
|
169
|
+
"ref": "https://html.spec.whatwg.org/multipage/input.html#attr-input-multiple",
|
|
193
170
|
"type": "Boolean",
|
|
194
171
|
"condition": {
|
|
195
172
|
"self": ["[type='email' i]", "[type='file' i]"]
|
|
196
173
|
}
|
|
197
174
|
},
|
|
198
|
-
{
|
|
199
|
-
"
|
|
200
|
-
"type": "
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"name": "pattern",
|
|
204
|
-
"type": "String",
|
|
175
|
+
"pattern": {
|
|
176
|
+
"ref": "https://html.spec.whatwg.org/multipage/input.html#attr-input-pattern",
|
|
177
|
+
"type": "Pattern",
|
|
205
178
|
"condition": {
|
|
206
179
|
"self": [
|
|
207
180
|
"[type='text' i]",
|
|
@@ -213,9 +186,9 @@
|
|
|
213
186
|
]
|
|
214
187
|
}
|
|
215
188
|
},
|
|
216
|
-
{
|
|
217
|
-
"
|
|
218
|
-
"type": "
|
|
189
|
+
"placeholder": {
|
|
190
|
+
"ref": "https://html.spec.whatwg.org/multipage/input.html#attr-input-placeholder",
|
|
191
|
+
"type": "OneLineAny",
|
|
219
192
|
"condition": {
|
|
220
193
|
"self": [
|
|
221
194
|
"[type='text' i]",
|
|
@@ -228,9 +201,8 @@
|
|
|
228
201
|
]
|
|
229
202
|
}
|
|
230
203
|
},
|
|
231
|
-
{
|
|
232
|
-
"
|
|
233
|
-
"type": "Boolean",
|
|
204
|
+
"readonly": {
|
|
205
|
+
"ref": "https://html.spec.whatwg.org/multipage/input.html#attr-input-readonly",
|
|
234
206
|
"condition": {
|
|
235
207
|
"self": [
|
|
236
208
|
"[type='text' i]",
|
|
@@ -248,9 +220,8 @@
|
|
|
248
220
|
]
|
|
249
221
|
}
|
|
250
222
|
},
|
|
251
|
-
{
|
|
252
|
-
"
|
|
253
|
-
"type": "Boolean",
|
|
223
|
+
"required": {
|
|
224
|
+
"ref": "https://html.spec.whatwg.org/multipage/input.html#attr-input-required",
|
|
254
225
|
"condition": {
|
|
255
226
|
"self": [
|
|
256
227
|
"[type='text' i]",
|
|
@@ -271,9 +242,12 @@
|
|
|
271
242
|
]
|
|
272
243
|
}
|
|
273
244
|
},
|
|
274
|
-
{
|
|
275
|
-
"
|
|
276
|
-
"type":
|
|
245
|
+
"size": {
|
|
246
|
+
"ref": "https://html.spec.whatwg.org/multipage/input.html#attr-input-size",
|
|
247
|
+
"type": {
|
|
248
|
+
"type": "integer",
|
|
249
|
+
"gt": 0
|
|
250
|
+
},
|
|
277
251
|
"condition": {
|
|
278
252
|
"self": [
|
|
279
253
|
"[type='text' i]",
|
|
@@ -283,18 +257,24 @@
|
|
|
283
257
|
"[type='email' i]",
|
|
284
258
|
"[type='password' i]"
|
|
285
259
|
]
|
|
286
|
-
}
|
|
260
|
+
},
|
|
261
|
+
"defaultValue": "20"
|
|
287
262
|
},
|
|
288
|
-
{
|
|
289
|
-
"
|
|
290
|
-
"type": "URL",
|
|
263
|
+
"src": {
|
|
264
|
+
"ref": "https://html.spec.whatwg.org/multipage/input.html#attr-input-src",
|
|
291
265
|
"condition": {
|
|
292
266
|
"self": "[type='image' i]"
|
|
293
267
|
}
|
|
294
268
|
},
|
|
295
|
-
{
|
|
296
|
-
"
|
|
297
|
-
"type":
|
|
269
|
+
"step": {
|
|
270
|
+
"ref": "https://html.spec.whatwg.org/multipage/input.html#attr-input-step",
|
|
271
|
+
"type": [
|
|
272
|
+
"Number",
|
|
273
|
+
{
|
|
274
|
+
"enum": ["any"],
|
|
275
|
+
"caseInsensitive": true
|
|
276
|
+
}
|
|
277
|
+
],
|
|
298
278
|
"condition": {
|
|
299
279
|
"self": [
|
|
300
280
|
"[type='date' i]",
|
|
@@ -307,20 +287,48 @@
|
|
|
307
287
|
]
|
|
308
288
|
}
|
|
309
289
|
},
|
|
310
|
-
{
|
|
311
|
-
"
|
|
312
|
-
"type":
|
|
290
|
+
"type": {
|
|
291
|
+
"ref": "https://html.spec.whatwg.org/multipage/input.html#attr-input-type",
|
|
292
|
+
"type": {
|
|
293
|
+
"enum": [
|
|
294
|
+
"hidden",
|
|
295
|
+
"text",
|
|
296
|
+
"search",
|
|
297
|
+
"tel",
|
|
298
|
+
"url",
|
|
299
|
+
"email",
|
|
300
|
+
"password",
|
|
301
|
+
"date",
|
|
302
|
+
"month",
|
|
303
|
+
"week",
|
|
304
|
+
"time",
|
|
305
|
+
"datetime-local",
|
|
306
|
+
"number",
|
|
307
|
+
"range",
|
|
308
|
+
"color",
|
|
309
|
+
"checkbox",
|
|
310
|
+
"radio",
|
|
311
|
+
"file",
|
|
312
|
+
"submit",
|
|
313
|
+
"image",
|
|
314
|
+
"reset",
|
|
315
|
+
"button"
|
|
316
|
+
],
|
|
317
|
+
"invalidValueDefault": "text",
|
|
318
|
+
"missingValueDefault": "text"
|
|
319
|
+
},
|
|
320
|
+
"defaultValue": "text"
|
|
313
321
|
},
|
|
314
|
-
{
|
|
315
|
-
"
|
|
316
|
-
"type": "
|
|
322
|
+
"value": {
|
|
323
|
+
"ref": "https://html.spec.whatwg.org/multipage/input.html#attr-input-value",
|
|
324
|
+
"type": "Any",
|
|
325
|
+
"_TODO_": "The `type` attribute determines the type"
|
|
317
326
|
},
|
|
318
|
-
{
|
|
319
|
-
"
|
|
320
|
-
"type": "Uint",
|
|
327
|
+
"width": {
|
|
328
|
+
"ref": "https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-width",
|
|
321
329
|
"condition": {
|
|
322
330
|
"self": "[type='image' i]"
|
|
323
331
|
}
|
|
324
332
|
}
|
|
325
|
-
|
|
333
|
+
}
|
|
326
334
|
}
|
package/src/attributes/ins.json
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tag": "ins",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/edits.html#the-ins-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/edits.html#attr-mod-cite",
|
|
6
13
|
"type": "URL"
|
|
7
14
|
},
|
|
8
|
-
{
|
|
9
|
-
"
|
|
10
|
-
"type": "
|
|
15
|
+
"datetime": {
|
|
16
|
+
"ref": "https://html.spec.whatwg.org/multipage/edits.html#attr-mod-datetime",
|
|
17
|
+
"type": "DateTime"
|
|
11
18
|
}
|
|
12
|
-
|
|
19
|
+
}
|
|
13
20
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tag": "kbd",
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-kbd-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true
|
|
9
|
+
},
|
|
10
|
+
"attributes": {}
|
|
11
|
+
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tag": "label",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/forms.html#the-label-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true
|
|
9
|
+
},
|
|
10
|
+
"attributes": {
|
|
11
|
+
"for": {
|
|
12
|
+
"ref": "https://html.spec.whatwg.org/multipage/forms.html#attr-label-for",
|
|
10
13
|
"type": "DOMID"
|
|
11
14
|
}
|
|
12
|
-
|
|
15
|
+
}
|
|
13
16
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tag": "legend",
|
|
3
|
+
"ref": "https://html.spec.whatwg.org/multipage/form-elements.html#the-legend-element",
|
|
4
|
+
"global": {
|
|
5
|
+
"#HTMLGlobalAttrs": true,
|
|
6
|
+
"#GlobalEventAttrs": true,
|
|
7
|
+
"#DocumentElementEventAttrs": true,
|
|
8
|
+
"#ARIAAttrs": true
|
|
9
|
+
},
|
|
10
|
+
"attributes": {}
|
|
11
|
+
}
|