#15846 closed defect (fixed)
dojo.query does not work properly on FF (and likely others) when using rooted queries
Reported by: | dwinkler | Owned by: | Kris Zyp |
---|---|---|---|
Priority: | undecided | Milestone: | 1.8 |
Component: | Query | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
When processing XML documents, chrome is able to execute rooted queries, while FF and probably others do not provide results.
The example:
var entries = dojo.query("data > list > entry", someXml); dojo.forEach(entries, function(entry) { var sth = dojo.query("field[name='something'] > value", entry); var ste = dojo.query("field[name='somethingelse'] > value", entry); });
works on Chrome but gives empty results on FF, although it works for both platforms when skipping the
> value
part of the query. When replacing dojo.query with jquery everything works as expected also on FF:
var sth = $(entry).find("field[name='something'] > value")
Attachments (1)
Change History (5)
comment:1 Changed 8 years ago by
Component: | General → Query |
---|---|
Owner: | set to Kris Zyp |
Changed 8 years ago by
Attachment: | parse.html added |
---|
comment:2 Changed 8 years ago by
Thx for the fast reply, I attached an example that works on Chrome but won't work on FF.
comment:3 Changed 8 years ago by
Milestone: | tbd → 1.8 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
OK, I confirmed that your example doesn't work on Dojo 1.7.2 FF, but it does work on Dojo 1.8 FF.
Note: See
TracTickets for help on using
tickets.
Might already be fixed in 1.8 but not sure. Can you attach a test case using the "attach file" button?