Skip to content

Commit

Permalink
Mark procedural filters with pseudo-elements selector as invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jan 16, 2024
1 parent 101cef4 commit 757b8be
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/js/static-filtering-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -3297,10 +3297,9 @@ class ExtSelectorCompiler {
if ( this.astHasType(parts, 'Error') ) { return; }
if ( this.astHasType(parts, 'Selector') === false ) { return; }
if ( this.astIsValidSelectorList(parts) === false ) { return; }
if (
this.astHasType(parts, 'ProceduralSelector') === false &&
this.astHasType(parts, 'ActionSelector') === false
) {
if ( this.astHasType(parts, 'ProceduralSelector') ) {
if ( this.astHasType(parts, 'PseudoElementSelector') ) { return; }
} else if ( this.astHasType(parts, 'ActionSelector') === false ) {
return this.astSerialize(parts);
}
const r = this.astCompile(parts);
Expand Down

0 comments on commit 757b8be

Please sign in to comment.