Is it feasible to adjust XHR
settings in order to receive an HTML document?
xhr.responseType = "document";
Upon receiving the response, xhr.responseXML
contains an HTML document parsed against the HTML namespace URI. To verify this, you can use:
xhr.responseXML.children[0].namespaceURI === 'http://www.w3.org/1999/xhtml'
Is there a way to retrieve a pure XML document response without HTML parsing, similar to:
document.implementation.createDocument(null,'');