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
1 changed files with 1 additions and 1 deletions

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