Project

General

Profile

Actions

Bug #93391

closed

<script> tag with empty type=""

Added by Heinz Schilling over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-02-01
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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>

Actions

Also available in: Atom PDF