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

巧了我就是萌 提交于 2021-02-07 05:16:05

问题


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?


回答1:


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.




回答2:


XML5619: Incorrect document syntax.

Above issue throws in IE because the Content-Type wont be there in the response header. To cross check the same, Open Developer Tools >Network check Content-Type for the request that will be black. IE expect Content-Type for every response data. To solve this issue set the content type for the response



来源:https://stackoverflow.com/questions/15360918/xml5619-incorrect-document-syntax-error-in-ie10-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!