html-validate 10.13.1 → 10.14.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.
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.58.2"
8
+ "packageVersion": "7.58.7"
9
9
  }
10
10
  ]
11
11
  }
@@ -979,6 +979,9 @@ export declare class HtmlElement extends DOMNode {
979
979
  /* Excluded from this release type: someChildren */
980
980
  /* Excluded from this release type: everyChildren */
981
981
  /* Excluded from this release type: find */
982
+ append(node: DOMNode): void;
983
+ insertBefore(node: DOMNode, reference: DOMNode | null): void;
984
+ removeChild<T extends DOMNode>(node: T): T;
982
985
  /* Excluded from this release type: _setParent */
983
986
  }
984
987
 
@@ -1917,7 +1920,31 @@ export declare class Parser {
1917
1920
  * valid). The parser handles this by checking if the element on top of the
1918
1921
  * stack when is allowed to omit.
1919
1922
  */
1923
+ /**
1924
+ * Check whether a given element would be implicitly closed by an incoming
1925
+ * start tag. Used both in `closeOptional` and in the multi-level lookahead.
1926
+ */
1927
+ private wouldCloseElement;
1928
+ /**
1929
+ * Walk up the active stack to find the parent element that will remain
1930
+ * after all multi-level implicit closes triggered by the incoming start tag.
1931
+ * For a single-level close this is equivalent to `getActive().parent`.
1932
+ */
1933
+ private getParentAfterImplicitClose;
1920
1934
  private closeOptional;
1935
+ /**
1936
+ * Returns `true` if the element’s end tag may be omitted, either because
1937
+ * its `implicitClosed` list includes its own tag name (e.g. `<li>`, `<td>`)
1938
+ * or because `optionalEnd` is set.
1939
+ */
1940
+ private canOmitEndTag;
1941
+ /**
1942
+ * Check whether the active element can be implicitly closed by an incoming
1943
+ * end tag. The end tag may close a direct parent or any ancestor, as long as
1944
+ * every intermediate element can also have its end tag omitted.
1945
+ * This handles cases like `</table>` implicitly closing `<td>`, `<tr>`, `<tbody>`.
1946
+ */
1947
+ private closeOptionalEndTag;
1921
1948
  /**
1922
1949
  * Check whether an intermediary element (e.g. `<head>` or `<body>`) should
1923
1950
  * be implicitly opened before the incoming element is inserted under
@@ -1215,6 +1215,9 @@ export declare class HtmlElement extends DOMNode {
1215
1215
  /* Excluded from this release type: someChildren */
1216
1216
  /* Excluded from this release type: everyChildren */
1217
1217
  /* Excluded from this release type: find */
1218
+ append(node: DOMNode): void;
1219
+ insertBefore(node: DOMNode, reference: DOMNode | null): void;
1220
+ removeChild<T extends DOMNode>(node: T): T;
1218
1221
  /* Excluded from this release type: _setParent */
1219
1222
  }
1220
1223
 
@@ -2185,7 +2188,31 @@ export declare class Parser {
2185
2188
  * valid). The parser handles this by checking if the element on top of the
2186
2189
  * stack when is allowed to omit.
2187
2190
  */
2191
+ /**
2192
+ * Check whether a given element would be implicitly closed by an incoming
2193
+ * start tag. Used both in `closeOptional` and in the multi-level lookahead.
2194
+ */
2195
+ private wouldCloseElement;
2196
+ /**
2197
+ * Walk up the active stack to find the parent element that will remain
2198
+ * after all multi-level implicit closes triggered by the incoming start tag.
2199
+ * For a single-level close this is equivalent to `getActive().parent`.
2200
+ */
2201
+ private getParentAfterImplicitClose;
2188
2202
  private closeOptional;
2203
+ /**
2204
+ * Returns `true` if the element’s end tag may be omitted, either because
2205
+ * its `implicitClosed` list includes its own tag name (e.g. `<li>`, `<td>`)
2206
+ * or because `optionalEnd` is set.
2207
+ */
2208
+ private canOmitEndTag;
2209
+ /**
2210
+ * Check whether the active element can be implicitly closed by an incoming
2211
+ * end tag. The end tag may close a direct parent or any ancestor, as long as
2212
+ * every intermediate element can also have its end tag omitted.
2213
+ * This handles cases like `</table>` implicitly closing `<td>`, `<tr>`, `<tbody>`.
2214
+ */
2215
+ private closeOptionalEndTag;
2189
2216
  /**
2190
2217
  * Check whether an intermediary element (e.g. `<head>` or `<body>`) should
2191
2218
  * be implicitly opened before the incoming element is inserted under
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-validate",
3
- "version": "10.13.1",
3
+ "version": "10.14.0",
4
4
  "description": "Offline HTML5 validator and linter",
5
5
  "keywords": [
6
6
  "html",