beerman
beerman2y ago

ReferenceError: HTMLElement is not defined

Has anyone encountered this issue before? Minimal reproduction repo: https://github.com/jakubdonovan/deno-sveltekit/tree/web3
GitHub
GitHub - jakubdonovan/deno-sveltekit at web3
Contribute to jakubdonovan/deno-sveltekit development by creating an account on GitHub.
1 Reply
AnotherParsleyAgain
yup, Deno doesn't seem to support this and looking at the issue on Github it doesn't seem like enough people care about it for it to be implemented 😅 (which is a shame since i'd also love this for SSR purposes when working with web components) see: https://github.com/denoland/deno/issues/6794
GitHub
Support for HTMLElement · Issue #6794 · denoland/deno
Similar to other browser globals but recognize this is an ambitious request. If web compatibility is a goal then from my perspective this should be too. Currently there are only a few options for c...