Skip to content
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

[scoped-custom-element-registry] Safari Tech Preview 214 breaks polyfill #613

Open
4 tasks
sorvell opened this issue Feb 28, 2025 · 0 comments · May be fixed by #614
Open
4 tasks

[scoped-custom-element-registry] Safari Tech Preview 214 breaks polyfill #613

sorvell opened this issue Feb 28, 2025 · 0 comments · May be fixed by #614

Comments

@sorvell
Copy link
Collaborator

sorvell commented Feb 28, 2025

Description

On Safari Tech Preview version 214 with the scoped custom elements feature flag on (it seems to be default on), the polyfill generates an exception that causes custom elements not to render Shadow DOM content.

Example

Here is a minimal repro that test this issue.

Note, it also tests #609 which is fixed on Safari TP 214 .

Workaround

Making the customElements property writable before loading the polyfill.

workaround example

Browsers affected

  • Chrome
  • Firefox
  • Edge
  • [ X] Safari Tech Preview 214
  • IE 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant