#13084 closed defect (fixed)
Query attribute selector with square bracket fails in IE7
Reported by: | Ed Siok | Owned by: | bill |
---|---|---|---|
Priority: | low | Milestone: | 1.7.5 |
Component: | Query | Version: | 1.6.1 |
Keywords: | IE7 attribute selector query square bracket | Cc: | |
Blocked By: | Blocking: |
Description (last modified by )
This selector always fails in IE7:
dojo.query('[name="test[0]"]')
This works in IE8 and above, along with Firefox, Chrome, and Safari
This can be seen here (if you run in IE7): http://jsfiddle.net/sioked/ma2NM/
I double checked that the jquery library works correctly in this scenario http://jsfiddle.net/sioked/GtRK2/1/
It appears as though the brackets in the selector value are causing this to fail. The brackets are common in names of input nodes/ select nodes when those nodes are used to create a unique structure on the server.
Change History (9)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Owner: | changed from alex to Kris Zyp |
---|
comment:3 Changed 10 years ago by
Keywords: | needsreview added |
---|---|
Priority: | high → low |
comment:4 Changed 10 years ago by
Description: | modified (diff) |
---|---|
Keywords: | needsreview removed |
Still fails in trunk (and 1.7.2) on IE6, along with 7479.
comment:6 Changed 10 years ago by
Milestone: | tbd → 1.8 |
---|---|
Owner: | changed from Kris Zyp to bill |
Status: | new → assigned |
I will check in the patch to #7479 which fixes this too.
comment:15 Changed 10 years ago by
Milestone: | 1.8 → 1.7.5 |
---|
Note: See
TracTickets for help on using
tickets.
Also tried using the dojo._base.query-sizzle via xd version of dojo. This did not work either:
http://jsfiddle.net/ma2NM/3/