mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-20 04:53:50 +02:00
Fix :matches-prop()
operator when no value provided
This commit is contained in:
parent
aaceabeba1
commit
47b985a056
1 changed files with 5 additions and 1 deletions
|
@ -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 a new issue