mirror of https://github.com/gorhill/uBlock.git
Fix argument-less :watch-attr() procedural operator
It's valid to have no argument for `:watch-attr()`.
This commit is contained in:
parent
44812dd3c0
commit
8aa379ef9e
|
@ -1977,7 +1977,7 @@ Parser.prototype.SelectorCompiler = class {
|
||||||
}
|
}
|
||||||
|
|
||||||
compileAttrList(s) {
|
compileAttrList(s) {
|
||||||
if ( s === '' ) { return; }
|
if ( s === '' ) { return s; }
|
||||||
const attrs = s.split('\s*,\s*');
|
const attrs = s.split('\s*,\s*');
|
||||||
const out = [];
|
const out = [];
|
||||||
for ( const attr of attrs ) {
|
for ( const attr of attrs ) {
|
||||||
|
|
Loading…
Reference in New Issue