Opened 14 years ago
Closed 14 years ago
#4139 closed bug (invalid)
Selector failing on classes starting with ampersand
Reported by: | hjaven | Owned by: | john |
---|---|---|---|
Priority: | minor | Milestone: | 1.3.2 |
Component: | selector | Version: | 1.3.1 |
Keywords: | selector | Cc: | |
Blocked by: | Blocking: |
Description
Selector fails on classes containing ampersand which is a leagal character according to
Attachments (1)
Change History (2)
Changed 14 years ago by
Attachment: | ampersand.htm added |
---|
comment:1 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Thanks for the test case. You just need to escape the char:
alert("Matches =" + $(".my\\&Class").length); alert("Matches =" + $(".\\&myClass").length);
See the note at the bottom of this page:
Note: See
TracTickets for help on using
tickets.
Showing selector failing on classnames containing ampersand