import {DOMParser, parseHTML} from 'linkedom'; // Standard way: text/html, text/xml, image/svg+xml, etc... // const document = (new DOMParser).parseFromString(html, 'text/html'); // Simplified way for HTML const { // note, these are *not* globals window, document, customElements, HTMLElement, Event, CustomEvent // other exports .. } = parseHTML(` <!doctype html> <html lang="en"> <head> <title>Hell