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

type="text/javascript" could be removed #1754

Open
MacDada opened this Issue Sep 29, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@MacDada

MacDada commented Sep 29, 2018

Hi,

I noticed a lot of type="text/javascript" attributes in HTML. It could be safely removed, as the attribute is optional and the value is default.

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

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

I can make a PR if you agree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment