mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue