mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue