-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Move <!DOCTYPE html> to top of generated HTML #221
Comments
That's fine, this is only injected during dev and all supported browsers can handle that. |
This isn't true, it causes styling bugs because the DOCTYPE is ignored if it's not at the very top of the response. Example from my own project, here is what it looks like in Vite: Here is what it looks like in production: The browser applies different user agent styles to different doctypes, so it's important that we can server the correct one. |
fixed in 0.20.2 |
Below is output document...
should
<!DOCTYPE html>
be at the top?The text was updated successfully, but these errors were encountered: