Opened 12 years ago
Closed 12 years ago
#6353 closed bug (invalid)
IE xml tag selector
Reported by: | DriverX | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.3 | |
Component: | selector | Version: | 1.4.2 |
Keywords: | selector, tag selector, tags, xml | Cc: | |
Blocked by: | Blocking: |
Description
some.xml: <?xml version="1.0" encoding="utf-8"?> <test>
<item>
<image>
<src>IEbug1</src>
</image>
</item> <item>
<image>
<src>IEbug2</src>
</image>
</item> <item>
<image>
<src>IEbug3</src>
</image>
</item> <item>
<image>
<src>IEbug4</src>
</image>
</item> <item>
<image>
<src>IEbug5</src>
</image>
</item>
</test>
load and parse xml:
$.get("some.xml", function(data){
alert($(data).find("item").eq(0).find("image src").length); need 1, but in IE length == 5
});
Note: See
TracTickets for help on using
tickets.
Please do some further debugging, using the forum if needed: http://forum.jquery.com .
Most likely, your $.get from the server is returning a data type other than xml, in which case you cannot use $() to convert it to xml.