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

[ShadyDOM]: <slot>.insertBefore causes an exception #266

Closed
sorvell opened this issue Feb 10, 2020 · 0 comments · Fixed by #267
Closed

[ShadyDOM]: <slot>.insertBefore causes an exception #266

sorvell opened this issue Feb 10, 2020 · 0 comments · Fixed by #267

Comments

@sorvell
Copy link
Collaborator

sorvell commented Feb 10, 2020

If fallback content is added via insertBefore after a shadowRoot has rendered, an exception occurs. This is because this is not currently detected as a rendering scenario that requires a shadowRoot to perform distribution. Instead a native insertion is attempted and fails because the ref_node is not actually a composed child of the element.

@sorvell sorvell self-assigned this Feb 10, 2020
sorvell pushed a commit that referenced this issue Feb 10, 2020
…tion

Fixes #266. If a `<slot>` is in a shadowRoot, when its children change, the shadowRoot needs to distribute to correctly render.
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