You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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 Node::Doctype(_) branch, to make it clearer. A PR adding that would be welcome.
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: