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

Character Encoding set after title. #477

Closed
edent opened this issue Oct 1, 2023 · 0 comments · Fixed by #478
Closed

Character Encoding set after title. #477

edent opened this issue Oct 1, 2023 · 0 comments · Fixed by #478
Assignees
Labels
bug Something isn't working

Comments

@edent
Copy link
Contributor

edent commented Oct 1, 2023

Describe the bug
The character encoding is declared after the title. The charset must be set in the first 1,024 bytes. On a document with a long title, the charset may not be read correctly.

See https://www.w3.org/International/questions/qa-html-encoding-declarations.en

To Reproduce
Steps to reproduce the behavior:

  1. Create a document in, say, Chinese.
  2. Add a very long title
  3. Some browsers will show document encoding errors.

Expected behavior
Template conforms to spec.

Additional context
Some of the elements in <head> are self-closing. I'll remove the excess / - that will stop validators from complaining.

@edent edent added the bug Something isn't working label Oct 1, 2023
@edent edent mentioned this issue Oct 1, 2023
12 tasks
@lxndrblz lxndrblz linked a pull request Apr 6, 2024 that will close this issue
12 tasks
lxndrblz pushed a commit that referenced this issue Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants