Skip to content
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

✨ Add <!doctype html> to html serialization #9

Merged
merged 1 commit into from
Sep 6, 2024
Merged

Conversation

cowboyd
Copy link
Member

@cowboyd cowboyd commented Sep 6, 2024

Motivation

Without a proper doctype, html will load in quirks mode.

Approach

This adds a doctype declaration to force the output to be HTML5 for every single HTML response.

Theoretically, this sets up a situation where you want to serve a doc in quirks mode, but can't.

  1. this will never happen
  2. when it does, we can figure out how to deal with it at that point.

Without a proper doctype, html will load in quirks mode, so this adds
a doctype declaration to force the output to be HTML5 for every single
HTML response.

Theoretically, this sets up a situation where you want to serve a
doc in quirks mode, but can't.

1) this will never happen
2) when it does, we can figure out how to deal with it at that point.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant