July 31st, 2012, 06:07 AM
Are you using real XHTML? What is the content-type HTTP response header set to? If it's set to "text/html", then you're using HTML with XHTML syntax, which is not really XHTML.
Originally Posted by Pouya
Anyway, you could be using responseXML, instead of responseText, then you can use importNode. However, IE versions before 9 didn't implement it, so you'll need to use a workaround to support them.
It's been a while, but I seem to remember that you can't append a string directly to an element like that. You need to use document.createTextNode() first.
Originally Posted by Winters
Comments on this post
July 31st, 2012, 08:39 AM
As Kravvitz says.