XMLHttpRequest now sends HTML document as text/html instead of application/xml

Published: | Categories: DOM


Previously, the XMLHttpRequest.send method of Firefox was transmitting HTML documents as the application/xml MIME Type and adding an XML declaration <?xml version="1.0"?> to the documents. In order to improve interoperability, the XMLHttpRequest spec and Firefox implementation have been updated so HTML documents are now sent as text/html in the UTF-8 character encoding.