JSFiddle - React, Tailwind, and code Playground
by luwes
JavaScript
function HTMLinXHR() {
var req = new window.XMLHttpRequest();
req.open('GET', window.location.href);
req.responseType = 'document';
req.onload = (e) => {
console.log(req.responseXML);
}
req.send();
}
HTMLinXHR();