html-validate 10.13.0 → 10.14.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/dist/cjs/core.js +234 -31
- package/dist/cjs/core.js.map +1 -1
- package/dist/cjs/elements.js +76 -5
- package/dist/cjs/elements.js.map +1 -1
- package/dist/cjs/tsdoc-metadata.json +1 -1
- package/dist/esm/core.js +234 -31
- package/dist/esm/core.js.map +1 -1
- package/dist/esm/elements.js +76 -5
- package/dist/esm/elements.js.map +1 -1
- package/dist/schema/elements.json +25 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/types/browser.d.ts +70 -0
- package/dist/types/index.d.ts +70 -0
- package/package.json +1 -1
package/dist/cjs/elements.js
CHANGED
|
@@ -66,6 +66,21 @@ function linkBodyOk(node) {
|
|
|
66
66
|
var html5 = {
|
|
67
67
|
"*": {
|
|
68
68
|
attributes: {
|
|
69
|
+
accesskey: {
|
|
70
|
+
enum: [/./u],
|
|
71
|
+
list: true
|
|
72
|
+
},
|
|
73
|
+
autocapitalize: {
|
|
74
|
+
enum: ["off", "none", "on", "sentences", "words", "characters"]
|
|
75
|
+
},
|
|
76
|
+
autocorrect: {
|
|
77
|
+
omit: true,
|
|
78
|
+
enum: ["on", "off"]
|
|
79
|
+
},
|
|
80
|
+
autofocus: {
|
|
81
|
+
boolean: true
|
|
82
|
+
},
|
|
83
|
+
class: {},
|
|
69
84
|
contenteditable: {
|
|
70
85
|
omit: true,
|
|
71
86
|
enum: ["true", "false"]
|
|
@@ -79,6 +94,17 @@ var html5 = {
|
|
|
79
94
|
draggable: {
|
|
80
95
|
enum: ["true", "false"]
|
|
81
96
|
},
|
|
97
|
+
enterkeyhint: {
|
|
98
|
+
enum: ["enter", "done", "go", "next", "previous", "search", "send"]
|
|
99
|
+
},
|
|
100
|
+
/* css-shadow */
|
|
101
|
+
exportparts: {},
|
|
102
|
+
headingoffset: {
|
|
103
|
+
enum: ["/^[0-8]$/"]
|
|
104
|
+
},
|
|
105
|
+
headingreset: {
|
|
106
|
+
boolean: true
|
|
107
|
+
},
|
|
82
108
|
hidden: {
|
|
83
109
|
omit: true,
|
|
84
110
|
enum: ["hidden", "until-found"]
|
|
@@ -89,12 +115,49 @@ var html5 = {
|
|
|
89
115
|
inert: {
|
|
90
116
|
boolean: true
|
|
91
117
|
},
|
|
118
|
+
inputmode: {
|
|
119
|
+
enum: ["none", "text", "decimal", "numeric", "tel", "search", "email", "url"]
|
|
120
|
+
},
|
|
121
|
+
is: {},
|
|
122
|
+
/* microdata */
|
|
123
|
+
itemid: {},
|
|
124
|
+
/* microdata */
|
|
125
|
+
itemprop: {},
|
|
126
|
+
/* microdata */
|
|
127
|
+
itemref: {},
|
|
128
|
+
/* microdata */
|
|
129
|
+
itemscope: {
|
|
130
|
+
boolean: true
|
|
131
|
+
},
|
|
132
|
+
/* microdata */
|
|
133
|
+
itemtype: {},
|
|
134
|
+
lang: {},
|
|
135
|
+
nonce: {},
|
|
136
|
+
/* css-shadow */
|
|
137
|
+
part: {},
|
|
138
|
+
popover: {
|
|
139
|
+
omit: true,
|
|
140
|
+
enum: ["auto", "hint", "manual"]
|
|
141
|
+
},
|
|
142
|
+
/* wai-aria */
|
|
143
|
+
role: {},
|
|
144
|
+
slot: {},
|
|
92
145
|
spellcheck: {
|
|
93
146
|
omit: true,
|
|
94
147
|
enum: ["true", "false"]
|
|
95
148
|
},
|
|
149
|
+
style: {},
|
|
96
150
|
tabindex: {
|
|
97
151
|
enum: ["/-?\\d+/"]
|
|
152
|
+
},
|
|
153
|
+
title: {},
|
|
154
|
+
translate: {
|
|
155
|
+
omit: true,
|
|
156
|
+
enum: ["yes", "no"]
|
|
157
|
+
},
|
|
158
|
+
writingsuggestions: {
|
|
159
|
+
omit: true,
|
|
160
|
+
enum: ["true", "false"]
|
|
98
161
|
}
|
|
99
162
|
}
|
|
100
163
|
},
|
|
@@ -664,6 +727,8 @@ var html5 = {
|
|
|
664
727
|
transparent: true
|
|
665
728
|
},
|
|
666
729
|
caption: {
|
|
730
|
+
implicitClosed: ["colgroup", "thead", "tfoot", "tbody", "tr"],
|
|
731
|
+
optionalEnd: true,
|
|
667
732
|
permittedContent: ["@flow"],
|
|
668
733
|
permittedDescendants: [{ exclude: ["table"] }],
|
|
669
734
|
attributes: {
|
|
@@ -727,7 +792,7 @@ var html5 = {
|
|
|
727
792
|
}
|
|
728
793
|
},
|
|
729
794
|
colgroup: {
|
|
730
|
-
implicitClosed: ["colgroup"],
|
|
795
|
+
implicitClosed: ["colgroup", "caption", "thead", "tbody", "tfoot", "tr"],
|
|
731
796
|
attributes: {
|
|
732
797
|
span: {
|
|
733
798
|
enum: ["/\\d+/"]
|
|
@@ -1110,7 +1175,7 @@ var html5 = {
|
|
|
1110
1175
|
}
|
|
1111
1176
|
},
|
|
1112
1177
|
head: {
|
|
1113
|
-
implicitClosed: ["body"],
|
|
1178
|
+
implicitClosed: ["body", "@flow-not-meta"],
|
|
1114
1179
|
optionalEnd: true,
|
|
1115
1180
|
permittedContent: ["base?", "title?", "@meta"],
|
|
1116
1181
|
permittedParent: ["html"],
|
|
@@ -1180,6 +1245,10 @@ var html5 = {
|
|
|
1180
1245
|
}
|
|
1181
1246
|
},
|
|
1182
1247
|
html: {
|
|
1248
|
+
implicitOpen: [
|
|
1249
|
+
{ for: ["@meta"], open: "head" },
|
|
1250
|
+
{ for: ["@flow-not-meta"], open: "body" }
|
|
1251
|
+
],
|
|
1183
1252
|
optionalEnd: true,
|
|
1184
1253
|
permittedContent: ["head?", "body?"],
|
|
1185
1254
|
permittedOrder: ["head", "body"],
|
|
@@ -2587,7 +2656,7 @@ var html5 = {
|
|
|
2587
2656
|
},
|
|
2588
2657
|
td: {
|
|
2589
2658
|
flow: true,
|
|
2590
|
-
implicitClosed: ["td", "th"],
|
|
2659
|
+
implicitClosed: ["td", "th", "tr", "tbody", "tfoot"],
|
|
2591
2660
|
attributes: {
|
|
2592
2661
|
align: {
|
|
2593
2662
|
deprecated: true
|
|
@@ -2709,6 +2778,7 @@ var html5 = {
|
|
|
2709
2778
|
},
|
|
2710
2779
|
tfoot: {
|
|
2711
2780
|
implicitClosed: ["tbody"],
|
|
2781
|
+
optionalEnd: true,
|
|
2712
2782
|
permittedContent: ["@script", "tr"],
|
|
2713
2783
|
attributes: {
|
|
2714
2784
|
align: {
|
|
@@ -2733,7 +2803,7 @@ var html5 = {
|
|
|
2733
2803
|
},
|
|
2734
2804
|
th: {
|
|
2735
2805
|
flow: true,
|
|
2736
|
-
implicitClosed: ["td", "th"],
|
|
2806
|
+
implicitClosed: ["td", "th", "tr", "tbody", "tfoot"],
|
|
2737
2807
|
attributes: {
|
|
2738
2808
|
align: {
|
|
2739
2809
|
deprecated: true
|
|
@@ -2798,6 +2868,7 @@ var html5 = {
|
|
|
2798
2868
|
},
|
|
2799
2869
|
thead: {
|
|
2800
2870
|
implicitClosed: ["tbody", "tfoot"],
|
|
2871
|
+
optionalEnd: true,
|
|
2801
2872
|
permittedContent: ["@script", "tr"],
|
|
2802
2873
|
attributes: {
|
|
2803
2874
|
align: {
|
|
@@ -2838,7 +2909,7 @@ var html5 = {
|
|
|
2838
2909
|
}
|
|
2839
2910
|
},
|
|
2840
2911
|
tr: {
|
|
2841
|
-
implicitClosed: ["tr"],
|
|
2912
|
+
implicitClosed: ["tr", "tbody", "tfoot"],
|
|
2842
2913
|
permittedContent: ["@script", "td", "th"],
|
|
2843
2914
|
attributes: {
|
|
2844
2915
|
align: {
|