Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

For HTML5 script tags you can omit the type attribute when its value … #193

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.

Example from MDN:
HTML4 and (x)HTML

<script type="text/javascript" src="javascript.js"></script>

HTML5

<script src="javascript.js"></script>

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.
@chriddyp
Copy link
Member

chriddyp commented Jan 8, 2018

thanks @jbampton !

@chriddyp chriddyp merged commit 94ab1e7 into plotly:master Jan 8, 2018
@jbampton jbampton deleted the patch-1 branch January 8, 2018 17:18
HammadTheOne pushed a commit to HammadTheOne/dash that referenced this pull request May 28, 2021
HammadTheOne pushed a commit that referenced this pull request Jul 23, 2021
HammadTheOne pushed a commit that referenced this pull request Jul 23, 2021
update ci for new renderer build
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants