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