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

http-equiv delivery method: recommend to set after <meta charset="utf-8">? #387

Open
Malvoz opened this issue Mar 9, 2019 · 0 comments
Open

Comments

@Malvoz
Copy link

Malvoz commented Mar 9, 2019

Should the spec explicitly recommend <meta charset> come before any <meta http-equiv>?

In https://w3c.github.io/webappsec-csp/#meta-element:

Authors are strongly encouraged to place <meta> elements as early in the document as possible, because policies in <meta> elements are not applied to content which precedes them. [...]

The W3C HTML spec states:

It is recommended to keep the usage of attributes and their values defined on the head element to a minimum to allow for proper detection of the character encoding declaration within the first 1024 bytes.

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