-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Text Content being duplicated #4
Labels
bug
Something isn't working
Comments
This is only in cases where the island renders an invalid semantic child, example:
This is to be caught at the AST level since preact will go ahead and render it as sibling when the component is rendered with an island. The other option is to generate a text node tree like fresh does but that would make the rendering a little more complicated. |
The reason for this is as listed in this issue Possible solutions
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Any island tree being constructed inside a textContent based DOM Node get's replicated.
Example:
Would end up creating multiple
<h1>
andp
tagsThe text was updated successfully, but these errors were encountered: