Skip to content


Parsing error with escaped characters. #97

JimBobSquarePants opened this Issue · 3 comments

3 participants


Hi there,

I'm getting a lot of parsing errors when escaping special characters in css selectors.

This seems to be conflicting with the rules set here

For example:

/* Code for rating sprites.*/

.rating, .r0\.0
    background: url("img/ratings/rating_sprite.gif") 0 0;

    background-position: 0 -15px;

This will cause an 18 errors even though it appears to be perfectly acceptable within the spec.

Keep up the good work. This stuff is brilliant!


More escape stuff:

This should help to write some tests.


Ew, yeah, that's nasty. I remember punting on that with the parser because it got hairy. Will likely take me a while to fix.

@nzakas nzakas closed this issue from a commit
Nicholas C. Zakas Updated parser to deal with CSS escaping (fixes #97) 93c4ac2
@nzakas nzakas closed this in 93c4ac2

That was fast. Look forward to testing it on the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.