mirror of https://github.com/gorhill/uBlock.git
Properly detect unsupported pseudo operators
Related feedback: - https://www.reddit.com/r/uBlockOrigin/comments/yr8eda/
This commit is contained in:
parent
4d4a5f3807
commit
20181e9f18
|
@ -1549,6 +1549,10 @@ Parser.prototype.SelectorCompiler = class {
|
|||
|
||||
// Post-analysis
|
||||
// Mind https://w3c.github.io/csswg-drafts/selectors-4/#has-pseudo
|
||||
if ( data.name.startsWith('-abp-') ) {
|
||||
data.type = 'Error';
|
||||
return;
|
||||
}
|
||||
data.name = this.normalizedOperators.get(data.name) || data.name;
|
||||
if ( this.proceduralOperatorNames.has(data.name) ) {
|
||||
data.type = 'ProceduralSelector';
|
||||
|
|
Loading…
Reference in New Issue