Bug #93391
closed<script> tag with empty type=""
100%
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.
TypoScript:
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 } }
Frontend:
<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>
Updated by Wittkiel Gruppe almost 4 years ago
Heinz Schilling wrote:
It seems like only includeJSFooterlibs is affected.
includeJSLibs
and includeJSFooterlibs
seems to be affected, see my comment and research here: https://forge.typo3.org/issues/91310#note-4Updated by Gerrit Code Review almost 4 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/67630
Updated by Gerrit Code Review almost 4 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/67630
Updated by Gerrit Code Review almost 4 years ago
Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/67599
Updated by Oliver Bartsch almost 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 14c037118386fa4df946973a789d7ab4bfaf3854.