-
Notifications
You must be signed in to change notification settings - Fork 24
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
Script tag portals body data when empty #42
Comments
I think I'm seeing the same behaviour with <textarea> |
I'm seeing this with both script and textarea; inserting an empty string does workaround it |
If I understand this correctly, only void elements are allowed to be self-closing in HTML, and even then it doesn't actually do anything |
vpzomtrrfrt
added a commit
to vpzomtrrfrt/render.rs
that referenced
this issue
Sep 29, 2021
gkhk0
added a commit
to gkhk0/render.rs
that referenced
this issue
Oct 1, 2023
Previously empty element tags were causing other elements to be incorrectly rendered inside them. This commit fixes the issue by ensuring that empty non self-closing tags are handeld correctly. Closes render-rs#42
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure whats going on here but checkout this layout function.
When I use the above, the entire body content gets rendered inside of the <script> tag. However if I add an empty template string inside the script tag it will work fine... like this...
I'm assuming that it's not closing out empty tags.
The text was updated successfully, but these errors were encountered: