1fetch("https://enable-cors.org/")
2 .then(response => response.text())
3 .then(text => {
4 const parser = new DOMParser();
5 const htmlDocument = parser.parseFromString(text, "text/html");
6 const section = htmlDocument.documentElement.querySelector("section");
7 document.querySelector("div").appendChild(section);
8 })