Skip to content

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

Closed

Description

@vitallium

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).

Activity

  1. vitallium commented on Jul 18, 2012

    @vitallium
    ContributorAuthor

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

  2. jamietre commented on Jul 18, 2012

    @jamietre
    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!

  3. jamietre commented on Jul 18, 2012

    @jamietre
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions