I discovered something really odd today that maybe a seasoned AJAX guru already knew as a legendary bug which might even have a name. I was developing a little AJAX method on the server side that returned this:
<?xml version="1.0"?>
<sections>
<section>
<number>001</number>
<title>PLug 1</title>
</section>
<section>
<number>003</number>
<title>PLug 3 xyz</title>
</section>
</sections>
Note: The Content-Type used was "text/xml"
I used jQuery to kick off the AJAX call and then I loop over the document element returned with childNodes
almost like this:
children = data.childNodes[0].childNodes;
for (var i=0, len=children.length; i<len; i++)
// bla bla
It was working fine in Firefox and of course not in IE 6.0.