Skip to content

Commit

Permalink
Drop redundant type attribute from <script> tags
Browse files Browse the repository at this point in the history
Since HTML5, script tags default to JavaScript when the type attribute
is omitted. The HTML5 specification urges authors to omit the attribute
rather than provide a redundant MIME type.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-type
  • Loading branch information
jdufresne committed Dec 10, 2019
1 parent 682b206 commit 12db280
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/templates/jquery/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
.hide {display:none;}
</style>
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript">
<script>
$(document).ready(function() {
$('p.hide').show();
$('#v').text($.fn.jquery);
Expand Down
2 changes: 1 addition & 1 deletion example/templates/mootools/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
.hide {display:none;}
</style>
<script src="//ajax.googleapis.com/ajax/libs/mootools/1.6.0/mootools.min.js"></script>
<script type="text/javascript">
<script>
window.addEvent('domready', function() {
$$('p.hide').setStyle('display', 'block');
$('v').set('text', MooTools.version);
Expand Down
2 changes: 1 addition & 1 deletion example/templates/prototype/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
.hide {display:none;}
</style>
<script src="//ajax.googleapis.com/ajax/libs/prototype/1.7.3.0/prototype.js"></script>
<script type="text/javascript">
<script>
document.observe('dom:loaded', function() {
$('showme').removeClassName('hide');
$('v').textContent = Prototype.Version;
Expand Down

0 comments on commit 12db280

Please sign in to comment.