#15319 closed defect (worksforme)
dojo/query fails to find elements with tilde (~) character in id
Reported by: | chris2m | Owned by: | Kris Zyp |
---|---|---|---|
Priority: | undecided | Milestone: | 1.7.5 |
Component: | Query | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
dojo/query with selectorEngine=acme fails to find elements with id attributes that contain the tilde (~) character:
// query element with id=this~is~silly query('#this~is~silly');
The above code snippet works correctly with sizzle. It is also worth noting that thanks to this change http://trac.dojotoolkit.org/ticket/10651 we can use the following in dojo 1.8:
// query element with id=this~is~silly query("[id='this~is~silly']");
Please find the test case attached.
Attachments (1)
Change History (6)
Changed 9 years ago by
Attachment: | query_test.html added |
---|
comment:2 Changed 9 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
According to http://www.w3.org/TR/CSS21/grammar.html, tildes must be escaped to be used in the selector ids.
comment:5 Changed 8 years ago by
Milestone: | tbd → 1.7.5 |
---|
Note: See
TracTickets for help on using
tickets.
Test Case for dojo/query