fix: handle whitespace token for new ast

pull/7572/head
sid 4 years ago committed by tanhauhau
parent b0eb6792eb
commit 14df143fa6

@ -212,7 +212,7 @@ function apply_selector(blocks: Block[], node: Element, to_encapsulate: Array<{
}
if (block.combinator) {
if (block.combinator.type === 'WhiteSpace') {
if (block.combinator.type === 'Combinator' && block.combinator.name === ' ') {
for (const ancestor_block of blocks) {
if (ancestor_block.global) {
continue;

Loading…
Cancel
Save