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

Duplicate html charset declaration #266

Open
giulioturetta opened this issue Jan 24, 2022 · 1 comment
Open

Duplicate html charset declaration #266

giulioturetta opened this issue Jan 24, 2022 · 1 comment

Comments

@giulioturetta
Copy link

If you render a page in Plone 6, you will see a duplicate charset meta element:

<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <title>My site title</title>
  [...]
  <meta charset="utf-8" />
  [...]
</head>

As stated in https://www.w3.org/International/questions/qa-html-encoding-declarations, "The declaration should fit completely within the first 1024 bytes at the start of the file, so it's best to put it immediately after the opening head tag".

Expected behaviour: have only one <meta charset="utf-8" /> element right after the opening head tag.

@giulioturetta
Copy link
Author

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

No branches or pull requests

1 participant