Skip to content

HTML errors #1919

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

Open
coveritytest opened this issue Nov 6, 2022 · 1 comment
Open

HTML errors #1919

coveritytest opened this issue Nov 6, 2022 · 1 comment

Comments

@coveritytest
Copy link

The generated HTML has still a few errors, see: https://validator.w3.org/nu/?doc=https%3A%2F%2Frust-lang.github.io%2FmdBook%2Fcli%2Fclean.html

@ulivz
Copy link

ulivz commented Nov 13, 2022

As this spec say, In order to define the charset encoding of an HTML document, both of these options are valid, but only one of them must appear in the document:

<!-- This is the preferred way -->
<meta charset="UTF-8">

<!-- This is the older way, also valid -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

ulivz added a commit to ulivz/mdBook that referenced this issue Nov 13, 2022
Quoting from the HTML specification[1] about "Specifying the document's character encoding":

  A document must not contain both a `meta` element with an `http-equiv` attribute
  in the `Encoding declaration state` and a `meta` element with the `charset`
  attribute present.

Closes: rust-lang#1919

[1]: https://html.spec.whatwg.org/dev/semantics.html#charset
ulivz added a commit to ulivz/mdBook that referenced this issue Nov 13, 2022
Quoting from the HTML specification<sup>[1]<sup> about "Specifying the document's character encoding":

  A document must not contain both a `meta` element with an `http-equiv` attribute
  in the `Encoding declaration state` and a `meta` element with the `charset`
  attribute present.

Closes: rust-lang#1919

[1]: https://html.spec.whatwg.org/dev/semantics.html#charset
ulivz added a commit to ulivz/mdBook that referenced this issue Nov 13, 2022
Quoting from the HTML specification<sup>[1]</sup> about "Specifying the document's character encoding":

  A document must not contain both a `meta` element with an `http-equiv` attribute
  in the `Encoding declaration state` and a `meta` element with the `charset`
  attribute present.

Closes: rust-lang#1919

[1]: https://html.spec.whatwg.org/dev/semantics.html#charset
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

Successfully merging a pull request may close this issue.

2 participants