html-validate 10.12.1 → 10.12.2
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.
- package/dist/cjs/core.js +13 -6
- package/dist/cjs/core.js.map +1 -1
- package/dist/cjs/elements.js +4 -0
- package/dist/cjs/elements.js.map +1 -1
- package/dist/esm/core.js +13 -6
- package/dist/esm/core.js.map +1 -1
- package/dist/esm/elements.js +4 -0
- package/dist/esm/elements.js.map +1 -1
- package/dist/schema/elements.json +6 -0
- package/dist/types/browser.d.ts +9 -0
- package/dist/types/index.d.ts +9 -0
- package/package.json +1 -1
|
@@ -90,6 +90,12 @@
|
|
|
90
90
|
"items": { "type": "string" }
|
|
91
91
|
},
|
|
92
92
|
|
|
93
|
+
"optionalEnd": {
|
|
94
|
+
"title": "Mark element as having an optional end tag",
|
|
95
|
+
"description": "Elements whose end tag may be omitted per the HTML spec. Such an element is treated as implicitly closed at end-of-document and when a parent’s explicit end tag is encountered while it is still open.",
|
|
96
|
+
"type": "boolean"
|
|
97
|
+
},
|
|
98
|
+
|
|
93
99
|
"implicitRole": {
|
|
94
100
|
"title": "Implicit ARIA role for this element",
|
|
95
101
|
"description": "Some elements have implicit ARIA roles.",
|
package/dist/types/browser.d.ts
CHANGED
|
@@ -851,6 +851,7 @@ export declare class HtmlElement extends DOMNode {
|
|
|
851
851
|
* - foreign
|
|
852
852
|
* - void
|
|
853
853
|
* - implicitClosed
|
|
854
|
+
* - optionalEnd
|
|
854
855
|
* - scriptSupporting
|
|
855
856
|
* - deprecatedAttributes
|
|
856
857
|
*
|
|
@@ -1567,6 +1568,14 @@ export declare interface MetaData {
|
|
|
1567
1568
|
void?: boolean;
|
|
1568
1569
|
transparent?: boolean | string[];
|
|
1569
1570
|
implicitClosed?: string[];
|
|
1571
|
+
/**
|
|
1572
|
+
* Set to `true` if this element’s end tag is optional per the HTML spec.
|
|
1573
|
+
* Such an element is treated as implicitly closed in two situations:
|
|
1574
|
+
* - When the document ends with this element still open (EOF).
|
|
1575
|
+
* - When a parent’s explicit end tag is encountered while this element is
|
|
1576
|
+
* still open (e.g. `</html>` implicitly closing an open `<body>`).
|
|
1577
|
+
*/
|
|
1578
|
+
optionalEnd?: boolean;
|
|
1570
1579
|
scriptSupporting?: boolean;
|
|
1571
1580
|
/** Mark element as able to receive focus (without explicit `tabindex`) */
|
|
1572
1581
|
focusable?: boolean | MetaFocusableCallback;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1087,6 +1087,7 @@ export declare class HtmlElement extends DOMNode {
|
|
|
1087
1087
|
* - foreign
|
|
1088
1088
|
* - void
|
|
1089
1089
|
* - implicitClosed
|
|
1090
|
+
* - optionalEnd
|
|
1090
1091
|
* - scriptSupporting
|
|
1091
1092
|
* - deprecatedAttributes
|
|
1092
1093
|
*
|
|
@@ -1810,6 +1811,14 @@ export declare interface MetaData {
|
|
|
1810
1811
|
void?: boolean;
|
|
1811
1812
|
transparent?: boolean | string[];
|
|
1812
1813
|
implicitClosed?: string[];
|
|
1814
|
+
/**
|
|
1815
|
+
* Set to `true` if this element’s end tag is optional per the HTML spec.
|
|
1816
|
+
* Such an element is treated as implicitly closed in two situations:
|
|
1817
|
+
* - When the document ends with this element still open (EOF).
|
|
1818
|
+
* - When a parent’s explicit end tag is encountered while this element is
|
|
1819
|
+
* still open (e.g. `</html>` implicitly closing an open `<body>`).
|
|
1820
|
+
*/
|
|
1821
|
+
optionalEnd?: boolean;
|
|
1813
1822
|
scriptSupporting?: boolean;
|
|
1814
1823
|
/** Mark element as able to receive focus (without explicit `tabindex`) */
|
|
1815
1824
|
focusable?: boolean | MetaFocusableCallback;
|