Bug Tracker

Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#4519 closed bug (invalid)

XML parsing error with IE

Reported by: nico87 Owned by: john
Priority: critical Milestone: 1.4
Component: selector Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:


This function works well in FF, but not in IE6.

$(xml).find("[name=\"societa\"]").children().each(function() {

menu1+="<span class=\"inline-div padding20\"><a href='"+$(this).attr("href")+"'\">"+$(this).text()+"</a></span>";


Also I've tried to do this:


and FF returns the correct XML code inside <item name='societa'> </item>. IE returns a empty string.

Follows the XML code:

<?xml version="1.0" encoding="UTF-8"?> <menu>

<item name="societa" href="#">

<voice href="#">Storia</voice> <voice href="#">Certificazioni</voice> <voice href="#">Contatti</voice> <voice href="#">Dove siamo</voice>

</item> <item name="flotta" href="#">

<voice href="#">PZL M18B Dromader</voice> <voice href="#">PZL 104-80 Wilga</voice>



Thank you so much.

Change History (1)

comment:1 Changed 14 years ago by dmethvin

Resolution: invalid
Status: newclosed

It looks like you are trying to parse XML with the $("htmlstring") method. That won't work in general, unless the XML is also valid HTML.


If you need to parse XML, use an XML parser.


Note: See TracTickets for help on using tickets.