dojo.query fails to recognize attributes having certain kinds of brackets in their values
If you have an attribute value that contains square brackets, dojo.query fails to match on it. Example: <input name="data[foo][bar]">
wont match with a selector of dojo.query("input[name=data[foo][bar]]")
. I totally realize this is an edge case, but it did come up in production work. (CakePHP (no, don't worry, I'm not using it by choice), in particular, likes form fields to be named like data[X]
, so that's how it came up. Maybe there are others out there too.)
Tried this with 1.3.0.
Change History (12)
Component: |
Core →
Query
|
Owner: |
changed from anonymous to alex
|
Owner: |
changed from alex to dylan
|
Resolution: |
→ duplicate
|
Status: |
new →
closed
|
Resolution: |
duplicate
|
Status: |
closed →
reopened
|
Resolution: |
→ invalid
|
Status: |
reopened →
closed
|
Resolution: |
invalid
|
Status: |
closed →
reopened
|
Milestone: |
future →
1.8
|
Resolution: |
→ fixed
|
Status: |
reopened →
closed
|
With latest trunk code, using this type of query (adding escape characters to the query):
works in FF 3.5, Safari 4, Chrome 3, Opera 10 and IE 8.
However IE 7 fails, and I expect IE6 might also.