Skip to content

Commit

Permalink
fix(js): skip css preudo class check
Browse files Browse the repository at this point in the history
  • Loading branch information
zealotchen0 committed Sep 7, 2023
1 parent b3b7df6 commit 737aa6d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,7 @@ class PseudoClassSelector extends SimpleSelector {
}

match(node) {
if (!node) return false;
return node.cssPseudoClasses && node.cssPseudoClasses.has(this.cssPseudoClass);
return !!node;
}

mayMatch() {
Expand Down

0 comments on commit 737aa6d

Please sign in to comment.