Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing error with escaped characters. #97

Closed
JimBobSquarePants opened this issue Jun 30, 2011 · 3 comments
Closed

Parsing error with escaped characters. #97

JimBobSquarePants opened this issue Jun 30, 2011 · 3 comments
Labels

Comments

@JimBobSquarePants
Copy link

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 http://www.w3.org/TR/CSS21/syndata.html#characters

For example:

/* Code for rating sprites.*/

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

.r0\.5
{
    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!

@mahonnaise
Copy link
Contributor

More escape stuff:

http://mathiasbynens.be/notes/html5-id-class#css

This should help to write some tests.

@nzakas
Copy link
Contributor

nzakas commented Jul 12, 2011

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 as completed in 93c4ac2 Jul 13, 2011
@JimBobSquarePants
Copy link
Author

Whoop!
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
Labels
Projects
None yet
Development

No branches or pull requests

3 participants