Ticket #7869 (new defect)

Opened 3 months ago

Last modified 5 days ago

Dojo.query on XML in IE 7 fails for nth-child selectors

Reported by: jaredj Owned by: alex
Priority: high Milestone: tbd
Component: General Version: 1.2.0
Severity: normal Keywords:
Cc: alex

Description

Dojo.query on XML in IE 7 fails for nth-child selectors

I was trying to do a basic nth-child query across an XML dom in IE7 and discovered it fails. The same testcase works great in Firefox/Safari.

Error in firebug lite: [ XmlDoc? ] FAILURE IN QUERY! [ Error: Object doesn't support this property or method ]

Testcase will be attached.

Attachments

testcase.zip (0.9 kB) - added by jaredj 3 months ago.
Testcase demonstrating the issue.
query.js.diff (2.5 kB) - added by nic 5 days ago.
[cla][patch] fixes the "nth-child" selector (xml docs on IE7)

Change History

Changed 3 months ago by jaredj

Testcase demonstrating the issue.

Changed 3 months ago by peller

  • owner changed from anonymous to alex

Changed 5 days ago by nic

I have almost fixed the bug, using setAttribute/getAttribute instead of node___cachedIndex? = index in the getNodeIndex function - it seems IE doesn't allow that, when node is an xml node. But there is another problem: both FF and IE don't allow setAttribute and getAttribute on the Document Node (nodeType = 9). Thoughts?

Nicola

Changed 5 days ago by nic

[cla][patch] fixes the "nth-child" selector (xml docs on IE7)

Note: See TracTickets for help on using tickets.