html-validate 9.4.2-rc.1 → 9.4.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 +3 -5
- package/dist/cjs/core.js.map +1 -1
- package/dist/cjs/html-validate.d.ts +1 -0
- package/dist/cjs/html5.d.ts +1 -0
- package/dist/cjs/jest-worker.d.ts +1 -0
- package/dist/cjs/package.json +2 -2
- package/dist/cjs/vitest.d.ts +1 -0
- package/dist/es/core.js +3 -5
- package/dist/es/core.js.map +1 -1
- package/dist/es/html-validate.d.ts +1 -0
- package/dist/es/html5.d.ts +1 -0
- package/dist/es/jest-worker.d.ts +1 -0
- package/dist/es/package.json +2 -2
- package/dist/es/vitest.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../types/html-validate";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../types/html5";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../types/jest-worker";
|
package/dist/cjs/package.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
}
|
|
2
|
+
"type": "commonjs"
|
|
3
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../types/vitest";
|
package/dist/es/core.js
CHANGED
|
@@ -2148,14 +2148,12 @@ function candidatesFromCombinator(element, combinator) {
|
|
|
2148
2148
|
return adjacentSibling(element);
|
|
2149
2149
|
case Combinator.GENERAL_SIBLING:
|
|
2150
2150
|
return generalSibling(element);
|
|
2151
|
+
/* istanbul ignore next -- cannot really happen, the selector would be malformed */
|
|
2151
2152
|
case Combinator.SCOPE:
|
|
2152
2153
|
return scope(element);
|
|
2153
2154
|
}
|
|
2154
2155
|
}
|
|
2155
2156
|
function matchElement(element, compounds, context) {
|
|
2156
|
-
if (compounds.length === 0) {
|
|
2157
|
-
return true;
|
|
2158
|
-
}
|
|
2159
2157
|
const last = compounds[compounds.length - 1];
|
|
2160
2158
|
if (!last.match(element, context)) {
|
|
2161
2159
|
return false;
|
|
@@ -6085,7 +6083,7 @@ class ElementPermittedContent extends Rule {
|
|
|
6085
6083
|
}
|
|
6086
6084
|
validatePermittedDescendant(node, parent) {
|
|
6087
6085
|
for (let cur = parent; cur && !cur.isRootElement(); cur = /* istanbul ignore next */
|
|
6088
|
-
cur
|
|
6086
|
+
cur.parent ?? null) {
|
|
6089
6087
|
const meta = cur.meta;
|
|
6090
6088
|
if (!meta) {
|
|
6091
6089
|
continue;
|
|
@@ -11710,7 +11708,7 @@ class EventHandler {
|
|
|
11710
11708
|
}
|
|
11711
11709
|
|
|
11712
11710
|
const name = "html-validate";
|
|
11713
|
-
const version = "9.4.2
|
|
11711
|
+
const version = "9.4.2";
|
|
11714
11712
|
const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
|
|
11715
11713
|
|
|
11716
11714
|
function freeze(src) {
|