html-validate 10.2.1 → 10.3.1

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.
@@ -75,7 +75,8 @@ var html5 = {
75
75
  enum: ["true", "false"]
76
76
  },
77
77
  hidden: {
78
- boolean: true
78
+ omit: true,
79
+ enum: ["hidden", "until-found"]
79
80
  },
80
81
  id: {
81
82
  enum: [validId]
@@ -98,7 +99,9 @@ var html5 = {
98
99
  return node.hasAttribute("href");
99
100
  },
100
101
  phrasing: true,
101
- interactive: true,
102
+ interactive(node) {
103
+ return node.hasAttribute("href");
104
+ },
102
105
  transparent: true,
103
106
  attributes: {
104
107
  charset: {
@@ -224,7 +227,12 @@ var html5 = {
224
227
  deprecated: true
225
228
  }
226
229
  },
227
- permittedDescendants: [{ exclude: "@interactive" }],
230
+ permittedDescendants: [
231
+ /* "Transparent, but there must be no interactive content descendant, a
232
+ * element descendant, or descendant with the tabindex attribute
233
+ * specified." */
234
+ { exclude: ["@interactive", "a"] }
235
+ ],
228
236
  aria: {
229
237
  implicitRole(node) {
230
238
  return node.hasAttribute("href") ? "link" : "generic";
@@ -1635,7 +1643,7 @@ var html5 = {
1635
1643
  ]
1636
1644
  },
1637
1645
  blocking: {
1638
- allowed: allowedIfAttributeHasValue("rel", ["stylesheet", "preload", "modulepreload"]),
1646
+ allowed: allowedIfAttributeHasValue("rel", ["expect", "stylesheet"]),
1639
1647
  list: true,
1640
1648
  enum: ["render"]
1641
1649
  },
@@ -2014,7 +2022,8 @@ var html5 = {
2014
2022
  aria: {
2015
2023
  implicitRole: "option"
2016
2024
  },
2017
- permittedContent: []
2025
+ permittedContent: ["@phrasing", "div"],
2026
+ permittedDescendants: [{ exclude: ["@interactive", "datalist", "object"] }]
2018
2027
  },
2019
2028
  output: {
2020
2029
  flow: true,
@@ -2284,7 +2293,31 @@ var html5 = {
2284
2293
  return "combobox";
2285
2294
  }
2286
2295
  },
2287
- permittedContent: ["@script", "datasrc", "datafld", "dataformatas", "option", "optgroup"]
2296
+ /* "Zero or one button elements if the select is a drop-down box, followed
2297
+ * by zero or more select element inner content element."
2298
+ *
2299
+ * "The following are select element inner content elements:
2300
+ * option, optgroup, hr, script-supporting elements, noscript, div"
2301
+ *
2302
+ * https://html.spec.whatwg.org/multipage/form-elements.html#the-select-element
2303
+ */
2304
+ permittedContent: [
2305
+ "@script",
2306
+ "button?",
2307
+ "datasrc",
2308
+ "datafld",
2309
+ "dataformatas",
2310
+ "option",
2311
+ "optgroup",
2312
+ "hr"
2313
+ ],
2314
+ permittedOrder: ["button", "option, optgroup, hr"]
2315
+ },
2316
+ selectedcontent: {
2317
+ phrasing: true,
2318
+ permittedContent: [],
2319
+ textContent: "none",
2320
+ requiredAncestors: ["select > button"]
2288
2321
  },
2289
2322
  slot: {
2290
2323
  flow: true,