Blank Nodes In IE
Hey guys, I'm new here so apologies if this is in the wrong place or whatever.
I currently have a website that pulls in some XML. Every browser loves it, but (surprise!) Internet Explorer can't pull in anything past the first empty node.
You can see this in action here:
Please help me! I will love you forever!
You document has no Doctype, no HTML, no HEAD and no BODY. Some of them, in different conditions, are not required, but all of them, in your case, might bring errors. The Doctype is a must.
1. swfobject is not defined
2. handler is undefined
3. document.getElementById("curtains") is null
Regarding the XML, you have some empty tags <SPOTIFY></SPOTIFY>. It looks like IE consider them as absolutely empty, thus without any textNode which could be the childNodes
you may try
x[i].getElementsByTagName('SPOTIFY').textContent || x[i].getElementsByTagName('SPOTIFY').text
Wait a minute... are you God? That XML worked perfectly, thank you soooo much!
Of course not. I have simply learned XML DOM :D
Originally Posted by LegoTrip