'XML5619: Incorrect document syntax. ' error in IE10 Only

streetlight picture streetlight · Mar 12, 2013 · Viewed 22.3k times · Source

I've been noticing during some IE10 testing that I keep running into the following error:

XML5619: Incorrect document syntax. 

However, I'm not using XML explicitly, and I can't seem to find documentation as to what this error actually means. I'm using the HTML5 doctype, if that matters.

Can anyone out there with IE expertise help lead me in the right direction?

Answer

Melad picture Melad · May 8, 2013

set the content-type of you're request to text/xml and the error will disappear.

I think IE10 expects the content-type to be set. Check Developer tools -> Network -> Start capturing what type your request is.

For Ext.Ajax.request set the content-type to application/json.