mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix broken :spath operators starting with >
Related feedback: -7dd48a6c8c (r41180568)Regression from: -7dd48a6c8c
This commit is contained in:
parent
49aa9ba549
commit
4c6ee1e0d3
1 changed files with 4 additions and 0 deletions
|
|
@ -574,6 +574,10 @@ vAPI.injectScriptlet = function(doc, text) {
|
|||
constructor(task) {
|
||||
this.spath = task[1];
|
||||
this.nth = /^(?:\s*[+~]|:)/.test(this.spath);
|
||||
if ( this.nth ) { return; }
|
||||
if ( /^\s*>/.test(this.spath) ) {
|
||||
this.spath = `:scope ${this.spath.trim()}`;
|
||||
}
|
||||
}
|
||||
qsa(node) {
|
||||
if ( this.nth === false ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue