Skip to content
Permalink
Browse files
Fix broken :spath operators starting with >
Related feedback:
- gorhill/uBlock@7dd48a6#r41180568

Regression from:
- gorhill/uBlock@7dd48a6
  • Loading branch information
gorhill authored and hawkeye116477 committed Aug 11, 2020
1 parent c79db5c commit 2103e233e9023c9195359efa8254b2d042adbbaa
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/js/contentscript.js
@@ -431,6 +431,10 @@ vAPI.DOMFilterer = (function() {
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 ) {

0 comments on commit 2103e23

Please sign in to comment.