Skip to content

You are using a HTML5 DOCTYPE. For HTML5 script tags you can omit the type attribute when its value … #2235

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

Merged
merged 1 commit into from
Jan 8, 2018

Conversation

jbampton
Copy link
Contributor

@jbampton jbampton commented Jan 7, 2018

…is JavaScript. From MDN -> https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script - Omitted or a JavaScript MIME type: For HTML5-compliant browsers this indicates the script is JavaScript. HTML5 specification urges authors to omit the attribute rather than provide a redundant MIME type. https://www.w3.org/TR/2011/WD-html5-20110405/scripting-1.html#script

…is JavaScript. From MDN -> https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script - Omitted or a JavaScript MIME type: For HTML5-compliant browsers this indicates the script is JavaScript. HTML5 specification urges authors to omit the attribute rather than provide a redundant MIME type.
@alexcjohnson
Copy link
Collaborator

Thanks @jbampton - It does seem like the wider web world is getting rid of these tags. For reference, see https://stackoverflow.com/a/23254634/9188800 - since that was posted in 2014, google and amazon have both joined facebook getting rid of it, linkedin and instagram still have it.

@alexcjohnson alexcjohnson merged commit 5e7ac01 into plotly:master Jan 8, 2018
@jbampton jbampton deleted the patch-1 branch January 8, 2018 17:13
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