mirror of https://github.com/gorhill/uBlock.git
Fix `:matches-prop()` operator when no value provided
This commit is contained in:
parent
aaceabeba1
commit
47b985a056
|
@ -188,7 +188,11 @@ class PSelectorMatchesPropTask extends PSelectorTask {
|
|||
if ( value === null ) { return; }
|
||||
value = value[prop];
|
||||
}
|
||||
if ( this.reValue !== null && this.reValue.test(value) === false ) { return; }
|
||||
if ( this.reValue === null ) {
|
||||
if ( value === undefined ) { return; }
|
||||
} else if ( this.reValue.test(value) === false ) {
|
||||
return;
|
||||
}
|
||||
output.push(node);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue