1const dom = new JSDOM(`<!DOCTYPE html>hello`);
2
3dom.serialize() === "<!DOCTYPE html><html><head></head><body>hello</body></html>";
4
5// Contrast with:
6dom.window.document.documentElement.outerHTML === "<html><head></head><body>hello</body></html>";