html-validate 11.3.0 → 11.4.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.
@@ -351,6 +351,11 @@
351
351
  "type": "boolean",
352
352
  "title": "Set to true if this attribute can optionally omit its value"
353
353
  },
354
+ "reference": {
355
+ "type": "string",
356
+ "enum": ["id"],
357
+ "title": "Set when the attribute references another element."
358
+ },
354
359
  "required": {
355
360
  "title": "Set to true or a function to evaluate if this attribute is required",
356
361
  "oneOf": [{ "type": "boolean" }, { "function": true }]
@@ -1475,6 +1475,16 @@ export declare interface MetaAttribute {
1475
1475
  * If `true` this attribute can omit the value.
1476
1476
  */
1477
1477
  omit?: boolean;
1478
+ /**
1479
+ * When set, this attribute references another element by the given type. If
1480
+ * `list` is also set, each individual token in the attribute value references another
1481
+ * element.
1482
+ *
1483
+ * - `id`: the attribute value references the id of another element in the document.
1484
+ *
1485
+ * @since 11.4.0
1486
+ */
1487
+ reference?: "id";
1478
1488
  /**
1479
1489
  * If set this attribute is required to be present on the element.
1480
1490
  */
@@ -1718,6 +1718,16 @@ export declare interface MetaAttribute {
1718
1718
  * If `true` this attribute can omit the value.
1719
1719
  */
1720
1720
  omit?: boolean;
1721
+ /**
1722
+ * When set, this attribute references another element by the given type. If
1723
+ * `list` is also set, each individual token in the attribute value references another
1724
+ * element.
1725
+ *
1726
+ * - `id`: the attribute value references the id of another element in the document.
1727
+ *
1728
+ * @since 11.4.0
1729
+ */
1730
+ reference?: "id";
1721
1731
  /**
1722
1732
  * If set this attribute is required to be present on the element.
1723
1733
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-validate",
3
- "version": "11.3.0",
3
+ "version": "11.4.0",
4
4
  "description": "Offline HTML5 validator and linter",
5
5
  "keywords": [
6
6
  "html",