Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#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:


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)

parse.html (1.2 KB) - added by dwinkler 9 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 9 years ago by bill

Component: GeneralQuery
Owner: set to Kris Zyp

Might already be fixed in 1.8 but not sure. Can you attach a test case using the "attach file" button?

Changed 9 years ago by dwinkler

Attachment: parse.html added

comment:2 Changed 9 years ago by dwinkler

Thx for the fast reply, I attached an example that works on Chrome but won't work on FF.

comment:3 Changed 9 years ago by bill

Milestone: tbd1.8
Resolution: fixed
Status: newclosed

OK, I confirmed that your example doesn't work on Dojo 1.7.2 FF, but it does work on Dojo 1.8 FF.

comment:4 Changed 9 years ago by dwinkler

great, thanks!

Note: See TracTickets for help on using tickets.