mirror of https://github.com/gorhill/uBlock.git
Drop as invalid unknown argument-based pseudoclass operators
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2442 These invalid pseudoclass operators were still seen as valid when mixed with procedural pseudoclass operators.
This commit is contained in:
parent
7847731e9a
commit
d9b50fcd51
|
@ -1750,9 +1750,12 @@ Parser.prototype.SelectorCompiler = class {
|
|||
case 'IdSelector':
|
||||
case 'PseudoClassSelector':
|
||||
case 'PseudoElementSelector':
|
||||
case 'TypeSelector':
|
||||
prelude.push(this.astSerializePart(part));
|
||||
case 'TypeSelector': {
|
||||
const component = this.astSerializePart(part);
|
||||
if ( component === undefined ) { return; }
|
||||
prelude.push(component);
|
||||
break;
|
||||
}
|
||||
case 'ProceduralSelector': {
|
||||
if ( prelude.length !== 0 ) {
|
||||
let spath = prelude.join('');
|
||||
|
|
Loading…
Reference in New Issue