diff --git a/src/js/static-filtering-parser.js b/src/js/static-filtering-parser.js index cf675a3d0..a813b9d34 100644 --- a/src/js/static-filtering-parser.js +++ b/src/js/static-filtering-parser.js @@ -3686,11 +3686,12 @@ class ExtSelectorCompiler { return { attr, value }; } - // When dealing with literal text, we must first eat _some_ - // backslash characters. // Remove potentially present quotes before processing. compileText(s) { - if ( s === '' ) { return; } + if ( s === '' ) { + this.error = 'argument missing'; + return; + } const r = this.unquoteString(s); if ( r.i !== s.length ) { return; } return r.s;