Internet Explorer won't load XML documents via XMLHttpRequest that don't have the content type "text/xml".

In this demo, two identical documents are loaded via XMLHttpRequest. The only difference is that one is served with a Content-Type of "text/xml" and the other with "application/atom+xml".

There should be two results, each with "2" (the count of "title" elements) next it from both application/atom+xml and text/xml:

Internet Explorer (6, 7, 8 and 9 Platform Preview) only load the document served as text/xml! The jQuery docs note this, suggesting you manually parse the response text with Microsoft.XMLDOM.

The bug is still present when using Microsoft's ActiveX "Microsoft.XMLHTTP" XMLHttpRequest object implementation instead of the plain XMLHttpRequest.

This bug has been filed on Microsoft Connect.

Back to Browser Bugs