Skip to content

Commit ddab225

Browse files
authored
Merge pull request rails#41919 from jbampton/fix-html-script-tag
chore: remove redundant MIME type from HTML script tag
2 parents 54979ff + 44c32c1 commit ddab225

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

actionpack/lib/action_dispatch/journey/visualizer/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<%= style %>
99
<% end %>
1010
</style>
11-
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.4.8/d3.min.js" type="text/javascript"></script>
11+
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.4.8/d3.min.js"></script>
1212
</head>
1313
<body>
1414
<div id="wrapper">

actionpack/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</div>
2626
<% end %>
2727

28-
<script type="text/javascript">
28+
<script>
2929
(function() {
3030
var traceFrames = document.getElementsByClassName('trace-frames-<%= error_index %>');
3131
var selectedFrame, currentSource = document.getElementById('frame-source-<%= error_index %>-0');

actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
</tbody>
9696
</table>
9797

98-
<script type='text/javascript'>
98+
<script>
9999
// support forEach iterator on NodeList
100100
NodeList.prototype.forEach = Array.prototype.forEach;
101101

actionview/test/ujs/views/layouts/application.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><%= @title %></title>
55
<%= csp_meta_tag %>
66
<link href="/vendor/qunit.css" media="screen" rel="stylesheet" type="text/css" media="screen, projection" />
7-
<script src="/vendor/jquery-2.2.0.js" type="text/javascript"></script>
7+
<script src="/vendor/jquery-2.2.0.js"></script>
88
<%= javascript_tag nonce: true do %>
99
// This is for test in override.js.
1010
// Must go before rails-ujs.

0 commit comments

Comments
 (0)