From 8aa379ef9ee7c954124a2e62281a253b1452ee9b Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Tue, 18 Oct 2022 07:35:47 -0400 Subject: [PATCH] Fix argument-less :watch-attr() procedural operator It's valid to have no argument for `:watch-attr()`. --- src/js/static-filtering-parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/static-filtering-parser.js b/src/js/static-filtering-parser.js index b73035b40..0b47b0bf4 100644 --- a/src/js/static-filtering-parser.js +++ b/src/js/static-filtering-parser.js @@ -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 ) {