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.
@@ -64,6 +64,21 @@ function linkBodyOk(node) {
64
64
  var html5 = {
65
65
  "*": {
66
66
  attributes: {
67
+ accesskey: {
68
+ enum: [/./u],
69
+ list: true
70
+ },
71
+ autocapitalize: {
72
+ enum: ["off", "none", "on", "sentences", "words", "characters"]
73
+ },
74
+ autocorrect: {
75
+ omit: true,
76
+ enum: ["on", "off"]
77
+ },
78
+ autofocus: {
79
+ boolean: true
80
+ },
81
+ class: {},
67
82
  contenteditable: {
68
83
  omit: true,
69
84
  enum: ["true", "false"]
@@ -77,6 +92,17 @@ var html5 = {
77
92
  draggable: {
78
93
  enum: ["true", "false"]
79
94
  },
95
+ enterkeyhint: {
96
+ enum: ["enter", "done", "go", "next", "previous", "search", "send"]
97
+ },
98
+ /* css-shadow */
99
+ exportparts: {},
100
+ headingoffset: {
101
+ enum: ["/^[0-8]$/"]
102
+ },
103
+ headingreset: {
104
+ boolean: true
105
+ },
80
106
  hidden: {
81
107
  omit: true,
82
108
  enum: ["hidden", "until-found"]
@@ -87,12 +113,49 @@ var html5 = {
87
113
  inert: {
88
114
  boolean: true
89
115
  },
116
+ inputmode: {
117
+ enum: ["none", "text", "decimal", "numeric", "tel", "search", "email", "url"]
118
+ },
119
+ is: {},
120
+ /* microdata */
121
+ itemid: {},
122
+ /* microdata */
123
+ itemprop: {},
124
+ /* microdata */
125
+ itemref: {},
126
+ /* microdata */
127
+ itemscope: {
128
+ boolean: true
129
+ },
130
+ /* microdata */
131
+ itemtype: {},
132
+ lang: {},
133
+ nonce: {},
134
+ /* css-shadow */
135
+ part: {},
136
+ popover: {
137
+ omit: true,
138
+ enum: ["auto", "hint", "manual"]
139
+ },
140
+ /* wai-aria */
141
+ role: {},
142
+ slot: {},
90
143
  spellcheck: {
91
144
  omit: true,
92
145
  enum: ["true", "false"]
93
146
  },
147
+ style: {},
94
148
  tabindex: {
95
149
  enum: ["/-?\\d+/"]
150
+ },
151
+ title: {},
152
+ translate: {
153
+ omit: true,
154
+ enum: ["yes", "no"]
155
+ },
156
+ writingsuggestions: {
157
+ omit: true,
158
+ enum: ["true", "false"]
96
159
  }
97
160
  }
98
161
  },
@@ -662,6 +725,8 @@ var html5 = {
662
725
  transparent: true
663
726
  },
664
727
  caption: {
728
+ implicitClosed: ["colgroup", "thead", "tfoot", "tbody", "tr"],
729
+ optionalEnd: true,
665
730
  permittedContent: ["@flow"],
666
731
  permittedDescendants: [{ exclude: ["table"] }],
667
732
  attributes: {
@@ -725,7 +790,7 @@ var html5 = {
725
790
  }
726
791
  },
727
792
  colgroup: {
728
- implicitClosed: ["colgroup"],
793
+ implicitClosed: ["colgroup", "caption", "thead", "tbody", "tfoot", "tr"],
729
794
  attributes: {
730
795
  span: {
731
796
  enum: ["/\\d+/"]
@@ -1108,7 +1173,7 @@ var html5 = {
1108
1173
  }
1109
1174
  },
1110
1175
  head: {
1111
- implicitClosed: ["body"],
1176
+ implicitClosed: ["body", "@flow-not-meta"],
1112
1177
  optionalEnd: true,
1113
1178
  permittedContent: ["base?", "title?", "@meta"],
1114
1179
  permittedParent: ["html"],
@@ -1178,6 +1243,10 @@ var html5 = {
1178
1243
  }
1179
1244
  },
1180
1245
  html: {
1246
+ implicitOpen: [
1247
+ { for: ["@meta"], open: "head" },
1248
+ { for: ["@flow-not-meta"], open: "body" }
1249
+ ],
1181
1250
  optionalEnd: true,
1182
1251
  permittedContent: ["head?", "body?"],
1183
1252
  permittedOrder: ["head", "body"],
@@ -2585,7 +2654,7 @@ var html5 = {
2585
2654
  },
2586
2655
  td: {
2587
2656
  flow: true,
2588
- implicitClosed: ["td", "th"],
2657
+ implicitClosed: ["td", "th", "tr", "tbody", "tfoot"],
2589
2658
  attributes: {
2590
2659
  align: {
2591
2660
  deprecated: true
@@ -2707,6 +2776,7 @@ var html5 = {
2707
2776
  },
2708
2777
  tfoot: {
2709
2778
  implicitClosed: ["tbody"],
2779
+ optionalEnd: true,
2710
2780
  permittedContent: ["@script", "tr"],
2711
2781
  attributes: {
2712
2782
  align: {
@@ -2731,7 +2801,7 @@ var html5 = {
2731
2801
  },
2732
2802
  th: {
2733
2803
  flow: true,
2734
- implicitClosed: ["td", "th"],
2804
+ implicitClosed: ["td", "th", "tr", "tbody", "tfoot"],
2735
2805
  attributes: {
2736
2806
  align: {
2737
2807
  deprecated: true
@@ -2796,6 +2866,7 @@ var html5 = {
2796
2866
  },
2797
2867
  thead: {
2798
2868
  implicitClosed: ["tbody", "tfoot"],
2869
+ optionalEnd: true,
2799
2870
  permittedContent: ["@script", "tr"],
2800
2871
  attributes: {
2801
2872
  align: {
@@ -2836,7 +2907,7 @@ var html5 = {
2836
2907
  }
2837
2908
  },
2838
2909
  tr: {
2839
- implicitClosed: ["tr"],
2910
+ implicitClosed: ["tr", "tbody", "tfoot"],
2840
2911
  permittedContent: ["@script", "td", "th"],
2841
2912
  attributes: {
2842
2913
  align: {