mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-22 10:22:51 +01:00
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) {
|
||||
if ( s === '' ) { return; }
|
||||
if ( s === '' ) { return s; }
|
||||
const attrs = s.split('\s*,\s*');
|
||||
const out = [];
|
||||
for ( const attr of attrs ) {
|
||||
|
Loading…
Reference in New Issue
Block a user