html-validate 10.3.0 → 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.
@@ -97,7 +97,9 @@ var html5 = {
97
97
  return node.hasAttribute("href");
98
98
  },
99
99
  phrasing: true,
100
- interactive: true,
100
+ interactive(node) {
101
+ return node.hasAttribute("href");
102
+ },
101
103
  transparent: true,
102
104
  attributes: {
103
105
  charset: {
@@ -223,7 +225,12 @@ var html5 = {
223
225
  deprecated: true
224
226
  }
225
227
  },
226
- 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
+ ],
227
234
  aria: {
228
235
  implicitRole(node) {
229
236
  return node.hasAttribute("href") ? "link" : "generic";
@@ -2284,6 +2291,14 @@ var html5 = {
2284
2291
  return "combobox";
2285
2292
  }
2286
2293
  },
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
+ */
2287
2302
  permittedContent: [
2288
2303
  "@script",
2289
2304
  "button?",
@@ -2291,9 +2306,10 @@ var html5 = {
2291
2306
  "datafld",
2292
2307
  "dataformatas",
2293
2308
  "option",
2294
- "optgroup"
2309
+ "optgroup",
2310
+ "hr"
2295
2311
  ],
2296
- permittedOrder: ["button", "option, optgroup"]
2312
+ permittedOrder: ["button", "option, optgroup, hr"]
2297
2313
  },
2298
2314
  selectedcontent: {
2299
2315
  phrasing: true,