#93391<script> tag with empty type=""
Description
In a HTM5 page there are some <script> tags with empty type=”“. This results in a W3C validator warning: The type attribute is unnecessary for JavaScript resources. It seems like only includeJSFooterlibs is affected.</p> <p>TypoScript:</p> <p>
page {
includeJSFooterlibs {
jQuery = EXT:package_www/Resources/Public/Libraries/jQuery-3.5.1/jquery-3.5.1.min.js
}
includeJSFooter {
photoSwipe = EXT:package_www/Resources/Public/Libraries/photoSwipe-4.1.3/photoswipe.min.js
}
}</p>
<p>Frontend:</p>
<p> <script src="/typo3conf/ext/package_www/Resources/Public/Libraries/jQuery-3.5.1/jquery-3.5.1.min.js?1599656313" type=""></script>
<script src="/typo3conf/ext/package_www/Resources/Public/JavaScript/ZhawPhotoSwipe.min.js?1599656315"></script></p></script>Reviews 2
History 36
-
Wittkiel Gruppe commented 02/01/21, 12:34
-
Gerrit Code Review pushed patch set 1 for master to change 67630 status
NewUnder Review 02/02/21, 14:45 -
Gerrit Code Review pushed patch set 2 for master to change 67630 02/02/21, 14:46
-
Gerrit Code Review pushed patch set 1 for 10.4 to change 67599 02/03/21, 16:17
-
Oliver Bartsch commented and changed status
Under ReviewResolved done0 %100 % 02/03/21, 16:25Applied in changeset commit:14c037118386fa4df946973a789d7ab4bfaf3854.
-
Benni Mack changed status
ResolvedClosed 02/23/21, 13:05
Heinz Schilling wrote:
> It seems like only includeJSFooterlibs is affected.
includeJSLibsandincludeJSFooterlibsseems to be affected, see my comment and research here: https://forge.typo3.org/issues/91310#note-4