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