Issue Bug Closed

#93391<script> tag with empty type=""

Heinz Schilling 02/01/21, 12:09 updated 02/23/21, 13:05

Description

In a HTM5 page there are some <script> tags with empty type=&#8221;&#8220;. 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

  1. Wittkiel Gruppe commented 02/01/21, 12:34

    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-4

  2. Gerrit Code Review pushed patch set 1 for master to change 67630 status New Under Review 02/02/21, 14:45

  3. Gerrit Code Review pushed patch set 2 for master to change 67630 02/02/21, 14:46

  4. Gerrit Code Review pushed patch set 1 for 10.4 to change 67599 02/03/21, 16:17

  5. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % 02/03/21, 16:25

    Applied in changeset commit:14c037118386fa4df946973a789d7ab4bfaf3854.

  6. Benni Mack changed status Resolved Closed 02/23/21, 13:05