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 'IdSelector':
|
||||||
case 'PseudoClassSelector':
|
case 'PseudoClassSelector':
|
||||||
case 'PseudoElementSelector':
|
case 'PseudoElementSelector':
|
||||||
case 'TypeSelector':
|
case 'TypeSelector': {
|
||||||
prelude.push(this.astSerializePart(part));
|
const component = this.astSerializePart(part);
|
||||||
|
if ( component === undefined ) { return; }
|
||||||
|
prelude.push(component);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case 'ProceduralSelector': {
|
case 'ProceduralSelector': {
|
||||||
if ( prelude.length !== 0 ) {
|
if ( prelude.length !== 0 ) {
|
||||||
let spath = prelude.join('');
|
let spath = prelude.join('');
|
||||||
|
|
Loading…
Reference in New Issue