Skip to content

Remove redundant type="text/javascript" from <script> elements#164

Closed
jdufresne wants to merge 1 commit intosphinx-doc:masterfrom
jdufresne:scripts
Closed

Remove redundant type="text/javascript" from <script> elements#164
jdufresne wants to merge 1 commit intosphinx-doc:masterfrom
jdufresne:scripts

Conversation

@jdufresne
Copy link
Copy Markdown
Contributor

In HTML5, <script> elements default to MIME type text/javascript. The
HTML5 living standard and MDN recommend against including the attribute.

From https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-type

The HTML5 specification urges authors to omit the attribute rather
than provide a redundant MIME type.

From https://html.spec.whatwg.org/#the-script-element

Authors should omit the type attribute instead of redundantly setting
it.

In HTML5, <script> elements default to MIME type text/javascript. The
HTML5 living standard and MDN recommend against including the attribute.

From https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-type

> The HTML5 specification urges authors to omit the attribute rather
> than provide a redundant MIME type.

From https://html.spec.whatwg.org/#the-script-element

> Authors should omit the type attribute instead of redundantly setting
> it.
introt added a commit to introt/alabester that referenced this pull request Apr 21, 2022
sphinx-doc#164

Co-authored-by: Jon Dufresne <347634+jdufresne@users.noreply.github.com>
@bitprophet bitprophet deleted the branch sphinx-doc:master January 13, 2023 00:42
@bitprophet bitprophet closed this Jan 13, 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.

2 participants