Project

General

Profile

Actions

Bug #93391

closed

<script> tag with empty type=""

Added by Heinz Schilling almost 4 years ago. Updated over 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 #1

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-4
Actions #2

Updated 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

Actions #3

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

Actions #4

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

Actions #5

Updated by Oliver Bartsch almost 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack over 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF