-
Notifications
You must be signed in to change notification settings - Fork 47.7k
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
Encoding declaration have been written in several ways #4347
Labels
Comments
IIRC the HTML5 meta charset tag, as with the doctype, was chosen because older browsers already interpreted it properly. |
oic, ok, so it sounds like this is a reasonable/desirable thing for us to do. |
ok, I'll create pull request. |
This was referenced Nov 30, 2023
This was referenced Feb 11, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From the react/examples:
Encoding is declared as described below. In the 9 files.
https://github.com/facebook/react/blame/master/examples/basic-jsx-external/index.html#L4
<meta http-equiv='Content-type' content='text/html; charset=utf-8'>
However, in another example it has been declared in another writing.
https://github.com/facebook/react/blob/master/examples/jquery-mobile/index.html#L4
<meta charset="utf-8">
I think that we should unify to the latter way. In HTML5, it is possible to provide a short code by using the
charset
attribute.The text was updated successfully, but these errors were encountered: