Skip to content

fall back HTMLElement in SSR contexts #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

keithamus
Copy link
Contributor

In SSR contexts HTMLElement isn't necessarily available. We can safely extend from null which means this element won't throw if it's imported in a library inside of, for e.g. Node.

We did this in github/relative-time-element#257 too.

@keithamus keithamus requested a review from a team as a code owner February 14, 2024 16:23
Copy link
Member

@owenniblock owenniblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@keithamus keithamus merged commit 1655676 into main Feb 14, 2024
@keithamus keithamus deleted the fall-back-htmlelement-in-ssr-contexts branch February 14, 2024 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants