mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-23 10:52:43 +01:00
Fix removal of :scope
prefix in :has()
operator
Related feedback: https://github.com/uBlockOrigin/uBlock-issues/issues/2778#issuecomment-1705101771
This commit is contained in:
parent
d5fb3c08a1
commit
2571660161
@ -3687,7 +3687,7 @@ class ExtSelectorCompiler {
|
||||
case 'has': {
|
||||
let r = this.astCompile(parts, { noaction: true });
|
||||
if ( typeof r === 'string' ) {
|
||||
r = { selector: r.replace(/^\s*:scope\s*/, ' ') };
|
||||
r = { selector: r.replace(/^\s*:scope\s*/, '') };
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user