mirror of
https://github.com/gorhill/uBlock.git
synced 2024-07-01 02:02:29 +02:00
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; }
|
if ( value === null ) { return; }
|
||||||
value = value[prop];
|
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);
|
output.push(node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user