mirror of https://github.com/gorhill/uBlock.git
Mark procedural filters with pseudo-elements selector as invalid
Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/2786
This commit is contained in:
parent
101cef44d2
commit
757b8be9cd
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue