Skip to content

Commit 738b2a7

Browse files
authored
Remove unneeded type attribute from HTML script tags (#674)
Fix typo in HTML code https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type Attribute is not set (default), an empty string, or a JavaScript MIME type Indicates that the script is a "classic script", containing JavaScript code. Authors are encouraged to omit the attribute if the script refers to JavaScript code rather than specify a MIME type.
1 parent 0475598 commit 738b2a7

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

content/dev/gitpubsub.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ license: https://www.apache.org/licenses/LICENSE-2.0
44
# GitPubSub
55

66
This service has been discontinued in favor of [pyPubSub](https://infra.apache.org/pypubsub.html).
7-
<script type="text/javascript">
7+
<script>
88
location.href = 'https://infra.apache.org/pypubsub.html';
99
</script>

content/dev/service_unavailable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
background:url(images/service_unavailable_footer.png) fixed no-repeat bottom right;
1010
}
1111
</style>
12-
<script type="text/javascript">
12+
<script>
1313

1414
// Referrer parser
1515
function parseURL(url) {

content/foundation/press/kit/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ The official event logo for Community Over Code, ASF's flagship annual event.
116116
<li>Now you can save it and use as needed.</li>
117117
</ol>
118118
<!-- Change the js-files path here -->
119-
<script type="text/javascript" src="overlays/poweredBy-overlay.js"></script>
119+
<script src="overlays/poweredBy-overlay.js"></script>
120120
<noscript>Sorry, your browser settings do not support JavaScript!</noscript>
121-
<form action="#" id="poweredBy_form" åonsubmit="return false;">
121+
<form action="#" id="poweredBy_form" onsubmit="return false;">
122122
<input id="poweredByImgFile" type="file" />
123123
<br />
124124
<input

content/foundation/sponsors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ ASF Targeted Sponsors provide the Foundation with contributions for specific act
334334
</ul>
335335
</div>
336336

337-
<script type="text/javascript">
337+
<script>
338338
var ar = ['platinum','gold','silver','bronze','targetedplatinum','targetedgold','targetedsilver','targetedbronze'];
339339
var co = [ 2, 3, 5, 6, 2, 3, 5, 6 ]; // column counts
340340

content/history/directors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ It is <em>not</em> an official record - just an informational page.
1414
<script src="./scripts/echarts.js"></script>
1515
<script src="./data/directors.js"></script>
1616
<script src="./scripts/directors-timeline.js"></script>
17-
<script type="text/javascript">
17+
<script>
1818
window.asf.directorsTimelineChart(document.getElementById('graph'), window.asf.getDirectorsTimelineData())
1919
</script>
2020

theme/apache/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
<!-- pagefind search -->
4848
<link href="/_pagefind/pagefind-ui.css" rel="stylesheet">
49-
<script src="/_pagefind/pagefind-ui.js" defer type="text/javascript"></script>
49+
<script src="/_pagefind/pagefind-ui.js" defer></script>
5050
<script>
5151
window.addEventListener('DOMContentLoaded', (event) => {
5252
new PagefindUI({ element: "#pagefind-search" });

0 commit comments

Comments
 (0)