Skip to content

Commit 959fe80

Browse files
tkrotoffSpaceK33z
authored andcommitted
Remove unneeded script type attribute
See https://www.w3.org/TR/html5/scripting-1.html#attr-script-type “The default, which is used if the attribute is absent, is "text/javascript””
1 parent 15e6c92 commit 959fe80

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

content/get-started/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ __index.html__
4848
<html>
4949
<head>
5050
<title>Webpack demo</title>
51-
<script src="https://unpkg.com/[email protected]" type="text/javascript"></script>
51+
<script src="https://unpkg.com/[email protected]"></script>
5252
</head>
5353
<body>
54-
<script src="app/index.js" type="text/javascript"></script>
54+
<script src="app/index.js"></script>
5555
</body>
5656
</html>
5757
```
@@ -81,11 +81,11 @@ Also we will need to change the `index.html` to expect a single bundled js file.
8181
<html>
8282
<head>
8383
<title>Webpack demo</title>
84-
- <script src="https://unpkg.com/[email protected]" type="text/javascript"></script>
85-
- <script src="app/index.js" type="text/javascript"></script>
84+
- <script src="https://unpkg.com/[email protected]"></script>
85+
- <script src="app/index.js"></script>
8686
</head>
8787
<body>
88-
+ <script src="dist/bundle.js" type="text/javascript"></script>
88+
+ <script src="dist/bundle.js"></script>
8989
</body>
9090
</html>
9191
```

content/guides/author-libraries.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ webpackNumbers.numToWord(3); // output is Three
5353

5454
<html>
5555
...
56-
<script src='https://unpkg.com/webpack-numbers' type='text/javascript'/>
57-
<script type='text/javascript'>
56+
<script src="https://unpkg.com/webpack-numbers"></script>
57+
<script>
5858
...
5959
/* webpackNumbers is available as a global variable */
6060
webpackNumbers.wordToNum('Five') //output is 5

template.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<%- webpackConfig.html %>
2121

2222
<% for (var script of webpackConfig.template.jsFiles) { %>
23-
<script src="<%= script %>" type="text/javascript"></script>
23+
<script src="<%= script %>"></script>
2424
<% } %>
2525

2626
<script>

0 commit comments

Comments
 (0)