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

Remove type and language attributes of script element #2021

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

zecakeh
Copy link
Contributor

@zecakeh zecakeh commented Nov 30, 2024

The type attribute is not needed when the content is JavaScript. From MDN:

Authors are encouraged to omit the attribute if the script refers to JavaScript code rather than specify a MIME type.

And the language attribute is non-standard and deprecated.

Pull Request Checklist

Preview: https://pr2021--matrix-spec-previews.netlify.app

The `type` attribute is not needed when the content is JavaScript,
and the `language` attribute is deprecated.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
@zecakeh zecakeh requested a review from a team as a code owner November 30, 2024 10:14
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
@richvdh richvdh merged commit 7867ebb into matrix-org:main Dec 10, 2024
12 checks passed
@zecakeh zecakeh deleted the script-attrs branch December 10, 2024 23:36
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