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

[encoding] Move <meta charset="UTF-8"> to be the first subelement of <head> to help with some specific encoding errors #75

Closed
fititnt opened this issue Apr 16, 2020 · 1 comment

Comments

@fititnt
Copy link
Contributor

fititnt commented Apr 16, 2020

Refs:


On some cases (this may affect at least crawlers that may default to a non-UTF-8 encoding until find the charset tag, but at this point they may get wrong the <title> encoding) by not having the <meta charset="UTF-8"> as one of the first elements of the this may lead to some bugs. I'm not fully 100% sure if this affects screen readers.

So the end code that today is this

<!DOCTYPE HTML>
<html>
    <head>
        <title>HXL Dash</title>
<meta charset="UTF-8">
(...)

Could be this

<!DOCTYPE HTML>
<html>
    <head>
        <meta charset="UTF-8">
        <title>HXL Dash</title>
(...)
@SimonbJohnson
Copy link
Owner

Fixed #77

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

2 participants