Skip to content

Commit 12db280

Browse files
committed
Drop redundant type attribute from <script> tags
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
1 parent 682b206 commit 12db280

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

example/templates/jquery/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
.hide {display:none;}
88
</style>
99
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
10-
<script type="text/javascript">
10+
<script>
1111
$(document).ready(function() {
1212
$('p.hide').show();
1313
$('#v').text($.fn.jquery);

example/templates/mootools/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
.hide {display:none;}
88
</style>
99
<script src="//ajax.googleapis.com/ajax/libs/mootools/1.6.0/mootools.min.js"></script>
10-
<script type="text/javascript">
10+
<script>
1111
window.addEvent('domready', function() {
1212
$$('p.hide').setStyle('display', 'block');
1313
$('v').set('text', MooTools.version);

example/templates/prototype/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
.hide {display:none;}
88
</style>
99
<script src="//ajax.googleapis.com/ajax/libs/prototype/1.7.3.0/prototype.js"></script>
10-
<script type="text/javascript">
10+
<script>
1111
document.observe('dom:loaded', function() {
1212
$('showme').removeClassName('hide');
1313
$('v').textContent = Prototype.Version;

0 commit comments

Comments
 (0)