Opened 12 years ago
Closed 9 years ago
#8223 closed defect (duplicate)
dojo.query: results reversed for ".foo .bar"
Reported by: | bill | Owned by: | dylan |
---|---|---|---|
Priority: | low | Milestone: | future |
Component: | Query | Version: | 1.2.1 |
Keywords: | needsreview | Cc: | |
Blocked By: | Blocking: |
Description
In dijit/tests/layout/test_AccordionContainer_prog.html, try this in FF console:
dojo.query(".dijitAccordionTitle .dijitAccordionText")[0].innerHTML
It returns "pane 3", not "pane 1" as I expected.
Seems like a bug although I'm not sure if we've officially guaranteed the results to be in document order.
Tested on FF3 and Safari.
Attachments (1)
Change History (7)
comment:1 Changed 12 years ago by
Changed 12 years ago by
Attachment: | query.html added |
---|
test case showing several different queries. only two sets returned: orig and reversed
comment:2 Changed 12 years ago by
Milestone: | tbd → future |
---|---|
Owner: | changed from anonymous to alex |
comment:3 Changed 11 years ago by
Component: | Core → Query |
---|
comment:5 Changed 9 years ago by
Keywords: | needsreview added |
---|---|
Priority: | high → low |
I've come across similar situations. Should we close as wontfix based on order has never been guaranteed?
comment:6 Changed 9 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
fyi:
returns the "proper" first element you are looking for. though I'm not certain we've ever promised the NodeList? to appear in the order of the dom.