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("dojox.data.dom");
var doc = dojox.data.dom.createDocument("<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)
Milestone: |
→ 1.2
|
Owner: |
changed from anonymous to alex
|
Resolution: |
→ fixed
|
Status: |
new →
closed
|
(In [14407]) add case-sensitive searching to dojo.query() for XML document. Tested on IE, FF, and Safari. Fixes #3866. Fixes #5262. !strict