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

The selector engine doesn't support the HEX escaped characters #20

Closed
vitallium opened this issue Jul 18, 2012 · 3 comments
Closed

The selector engine doesn't support the HEX escaped characters #20

vitallium opened this issue Jul 18, 2012 · 3 comments
Labels

Comments

@vitallium
Copy link
Contributor

We have:
HTML fragment:

<div id="B&W?"><p>test</p></div>

Selector:

#B\\26 W\\3F

And it doesn't work. Returns 0 elements. Following this document http://www.w3.org/TR/CSS2/syndata.html#characters CSS identifier (or selector) may contain any ISO 10646 character as a numeric code (or HEX code, as I show here).

@vitallium
Copy link
Contributor Author

I have fix for this. If this will be confirmed as an issue.

@jamietre
Copy link
Owner

Confirmed, and I'm not going to lie I am surprised it works in jQuery, but I just confirmed it does. The engine should have no problem matching a selector that includes any ISO10646 character but it definitely does not know try to parse hex codes. That is - it should work using a unicode character just fine, so this should be only a problem in the selector parser.

Looking forward to your code!

@jamietre
Copy link
Owner

Done. Thanks for your work, I look forward to you will contributions in the future!

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

2 participants