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 CHANGED
@@ -2157,14 +2157,12 @@ function candidatesFromCombinator(element, combinator) {
2157
2157
  return adjacentSibling(element);
2158
2158
  case Combinator.GENERAL_SIBLING:
2159
2159
  return generalSibling(element);
2160
+ /* istanbul ignore next -- cannot really happen, the selector would be malformed */
2160
2161
  case Combinator.SCOPE:
2161
2162
  return scope(element);
2162
2163
  }
2163
2164
  }
2164
2165
  function matchElement(element, compounds, context) {
2165
- if (compounds.length === 0) {
2166
- return true;
2167
- }
2168
2166
  const last = compounds[compounds.length - 1];
2169
2167
  if (!last.match(element, context)) {
2170
2168
  return false;
@@ -6094,7 +6092,7 @@ class ElementPermittedContent extends Rule {
6094
6092
  }
6095
6093
  validatePermittedDescendant(node, parent) {
6096
6094
  for (let cur = parent; cur && !cur.isRootElement(); cur = /* istanbul ignore next */
6097
- cur?.parent ?? null) {
6095
+ cur.parent ?? null) {
6098
6096
  const meta = cur.meta;
6099
6097
  if (!meta) {
6100
6098
  continue;
@@ -11719,7 +11717,7 @@ class EventHandler {
11719
11717
  }
11720
11718
 
11721
11719
  const name = "html-validate";
11722
- const version = "9.4.2-rc.1";
11720
+ const version = "9.4.2";
11723
11721
  const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
11724
11722
 
11725
11723
  function freeze(src) {