Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#5262 closed defect (fixed)

dojo.query does not work on nodes that aren't lowercase

Reported by: guest Owned by: alex
Priority: high Milestone: 1.2
Component: Query Version: 1.0
Keywords: Cc:
Blocked By: Blocking:


When using dojo.query against an xml document you are unable to query nodes that are capitalized. By the tests in dojo/tests/_base/query.html it looks querying by case was expected to work. The following code is taken from the xml() function in that test file, with an addition of the lowerresult node and the query for the lowerresult node to illustrate a working example.

dojo.require(""); var doc ="<ResultSet?><Result>One</Result><Result>Two</Result><lowerresult>Three</lowerresult></ResultSet?>"); console.debug(doc); console.debug(doc.documentElement); console.debug(dojo.query("Result", doc.documentElement)); console.debug(dojo.query("lowerresult", doc.documentElement));

When running this, you can note that the query for "Result" returns an empty array, but should return an array of 2 elements, while the query for "lowerresult" works as expected and returns 1 element in it's array.

Change History (3)

comment:1 Changed 14 years ago by dylan

Milestone: 1.2
Owner: changed from anonymous to alex

comment:2 Changed 14 years ago by alex

Resolution: fixed
Status: newclosed

(In [14407]) add case-sensitive searching to dojo.query() for XML document. Tested on IE, FF, and Safari. Fixes #3866. Fixes #5262. !strict

comment:3 Changed 12 years ago by bill

Component: CoreQuery
Note: See TracTickets for help on using tickets.