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.
@@ -99,7 +99,9 @@ var html5 = {
99
99
  return node.hasAttribute("href");
100
100
  },
101
101
  phrasing: true,
102
- interactive: true,
102
+ interactive(node) {
103
+ return node.hasAttribute("href");
104
+ },
103
105
  transparent: true,
104
106
  attributes: {
105
107
  charset: {
@@ -225,7 +227,12 @@ var html5 = {
225
227
  deprecated: true
226
228
  }
227
229
  },
228
- 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
+ ],
229
236
  aria: {
230
237
  implicitRole(node) {
231
238
  return node.hasAttribute("href") ? "link" : "generic";
@@ -2286,6 +2293,14 @@ var html5 = {
2286
2293
  return "combobox";
2287
2294
  }
2288
2295
  },
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
+ */
2289
2304
  permittedContent: [
2290
2305
  "@script",
2291
2306
  "button?",
@@ -2293,9 +2308,10 @@ var html5 = {
2293
2308
  "datafld",
2294
2309
  "dataformatas",
2295
2310
  "option",
2296
- "optgroup"
2311
+ "optgroup",
2312
+ "hr"
2297
2313
  ],
2298
- permittedOrder: ["button", "option, optgroup"]
2314
+ permittedOrder: ["button", "option, optgroup, hr"]
2299
2315
  },
2300
2316
  selectedcontent: {
2301
2317
  phrasing: true,