Bug Tracker

Ticket #4519 (closed bug: invalid)

Opened 6 years ago

Last modified 3 years ago

XML parsing error with IE

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


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

comment:1 Changed 6 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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.