html-validate 10.11.2 → 10.11.3
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 +7 -7
- package/dist/cjs/core.js.map +1 -1
- package/dist/cjs/tsdoc-metadata.json +1 -1
- package/dist/esm/core.js +7 -7
- package/dist/esm/core.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/types/jest.d.ts +32 -0
- package/package.json +17 -17
package/dist/esm/core.js
CHANGED
|
@@ -6823,14 +6823,14 @@ class EmptyTitle extends Rule {
|
|
|
6823
6823
|
}
|
|
6824
6824
|
switch (classifyNodeText(node)) {
|
|
6825
6825
|
case TextClassification.DYNAMIC_TEXT:
|
|
6826
|
-
case TextClassification.STATIC_TEXT:
|
|
6826
|
+
case TextClassification.STATIC_TEXT: {
|
|
6827
6827
|
break;
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
}
|
|
6828
|
+
}
|
|
6829
|
+
case TextClassification.EMPTY_TEXT: {
|
|
6830
|
+
const message = `<${node.tagName}> cannot be empty, must have text content`;
|
|
6831
|
+
this.report(node, message, node.location);
|
|
6833
6832
|
break;
|
|
6833
|
+
}
|
|
6834
6834
|
}
|
|
6835
6835
|
});
|
|
6836
6836
|
}
|
|
@@ -12501,7 +12501,7 @@ class EventHandler {
|
|
|
12501
12501
|
}
|
|
12502
12502
|
|
|
12503
12503
|
const name = "html-validate";
|
|
12504
|
-
const version = "10.11.
|
|
12504
|
+
const version = "10.11.3";
|
|
12505
12505
|
const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
|
|
12506
12506
|
|
|
12507
12507
|
function freeze(src) {
|