Skip to content

Conversation

@jonathanhefner
Copy link
Member

Via MDN:

If present, [the attribute's] value must be an ASCII case-insensitive match for "utf-8". It's unnecessary to specify the charset attribute, because documents must use UTF-8, and the script element inherits its character encoding from the document.

Via [MDN][]:

> If present, [the attribute's] value must be an ASCII case-insensitive
> match for "utf-8". It's unnecessary to specify the charset attribute,
> because documents must use UTF-8, and the script element inherits its
> character encoding from the document.

[MDN]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#deprecated_attributes
@jonathanhefner jonathanhefner merged commit 3c47224 into rails:main Sep 1, 2023
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 this pull request may close these issues.

1 participant