1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

Fix argument-less :watch-attr() procedural operator

It's valid to have no argument for `:watch-attr()`.
This commit is contained in:
Raymond Hill 2022-10-18 07:35:47 -04:00
parent 44812dd3c0
commit 8aa379ef9e
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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 ) {