Skip to content

Commit

Permalink
Mind implicit prelude * element in pseudo operators
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Nov 10, 2022
1 parent b7b53ee commit 4d4a5f3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/js/static-filtering-parser.js
Expand Up @@ -1728,12 +1728,14 @@ Parser.prototype.SelectorCompiler = class {
break;
case 'ProceduralSelector':
if ( prelude.length !== 0 ) {
let spath = prelude.join('');
prelude.length = 0;
if ( spath.endsWith(' ') ) { spath += '*'; }
if ( tasks.length === 0 ) {
out.selector = prelude.join('');
out.selector = spath;
} else {
tasks.push(this.createSpathTask(prelude.join('')));
tasks.push(this.createSpathTask(spath));
}
prelude.length = 0;
}
const args = this.compileArgumentAst(data.name, part.args);
if ( args === undefined ) { return; }
Expand Down

0 comments on commit 4d4a5f3

Please sign in to comment.