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

BUG: text-encoding-identifier-case fixes <meta charset="UTF-8" /> to an invalid value #2547

Closed
taep96 opened this issue Jan 26, 2025 · 1 comment
Labels

Comments

@taep96
Copy link

taep96 commented Jan 26, 2025

The text-encoding-identifier-case rule fixes <meta charset="UTF-8" /> to an invalid value ("utf8"). As per MDN:

charset

This attribute declares the document's character encoding. If the attribute is present, its value must be an ASCII case-insensitive match for the string "utf-8", because UTF-8 is the only valid encoding for HTML5 documents. elements which declare a character encoding must be located entirely within the first 1024 bytes of the document.

The only valid values would be UTF-8 and utf-8, not utf8

@taep96 taep96 added the bug label Jan 26, 2025
@fregante
Copy link
Collaborator

Duplicate of #1926

@fregante fregante marked this as a duplicate of #1926 Jan 29, 2025
@fregante fregante closed this as not planned Won't fix, can't repro, duplicate, stale Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants