-
-
Notifications
You must be signed in to change notification settings - Fork 584
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
<!DOCTYPE html>
tag is never rendered
#2338
Labels
Milestone
Comments
I can confirm this already works in the different implementation for the next version. I never intended this to be used as a general-purpose HTML templating library, so DOCTYPE just does nothing. The alternative for this versio would be to emit a compile error in the proc macro in the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
<!DOCTYPE html>
tag does not show up when rendering a view.Leptos Dependencies
To Reproduce
Code to reproduce the behavior:
Expected behavior
Expected to print
<!DOCTYPE html><html></html>
, but prints only<html></html>
.Additional context
When server side rendering, these are the relevant lines:
leptos/leptos_macro/src/view/server_template.rs
Line 42 in ffcf3c2
leptos/leptos_macro/src/view/server_template.rs
Line 389 in ffcf3c2
When rendering on the client side, the logic is about the same.
Since the
Node::Doctype(_)
pattern is being handled explicitly, I am not sure if this behavior is by design. It was a little surprising for me when I first encountered it.The text was updated successfully, but these errors were encountered: