cwdoh/cssparser.js

whitespace in selectors is removed

Closed this issue · 4 comments

If I parse the string:

 .foo .bar { bar:foo; }

The data object contains:

 selector: ".foo.bar"

when it should be:

  selector: ".foo .bar"

Good point. It's a bug concatenating separated selectors into single selector. I'll fix it soon. Thx :)

Really too late fix of issue. Thanks again for filing issue, @tomgenoni. :)

Still the spacing issue is not fixed for element and class combination selectors:
div .header { bar:foo; }
The data object contains:
selector: "div.header"
when it should be:
selector: "div .header"

cwdoh commented

Fixed since version 0.9.0