TYPO3 Forger
  • Dashboard
  • Get involved
  • Reviews
    Overview Ready for review Work in progress Needs action Needs review Needs verification Needs rebase Negative votes Reviewed and verified Ready to merge
  • Issues
    Stale issues Possible duplicates By category By month
  • Sprints
    Overview Initiatives TYPO3 Core Review board
  • Tools
    Backports ReST helper
  • Help
  • Search
  • Login
Esc

Words find the open ones, a number the issue and the change with it.

  1. Issues
  2. #91310
Issue Bug Closed

#91310config.concatenateJs = 1 disables auto generation of text/javascript

Raphael Zschorsch 05/05/20, 20:19 updated 09/29/20, 15:07

Open in Forge Comment in Forge

Description

When using config.concatenateJs = 1 and config.doctype = 1, the attribute type="text/javascript" is hardcoded and not omitted, like described here: https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/10.0/Breaking-88772-JavaScriptScriptTagsOmitTypetextjavascriptInHTML5.html

This is due to the fact, that the type is hardcoded here:

https://github.com/TYPO3/TYPO3.CMS/blob/7b919798c8784ba3a3dd8cb82ab2d8a7e777878a/typo3/sysext/core/Classes/Resource/ResourceCompressor.php#L189

Do we need the type attribute when used with concatenate?

Reviews 3

  • 10.4 65299[BUGFIX] Do not set type=text/javascript in ResourceCompressor Resolves this issue Merged Anja Leichsenring CR +2 V +2 → main Easy +24 −1 08/15/20, 15:29
  • main 64414[BUGFIX] Do not set type=text/javascript in ResourceCompressor Resolves this issue Merged Raphael Zschorsch CR +2 V +2 → 10.4 Easy +24 −1 08/15/20, 15:15
  • main 64413[BUGFIX] Do not set type=text/javascript in ResourceCompressor Resolves this issue Abandoned Benni Mack CR 0 V 0 Easy +0 −1 05/06/20, 15:24
Author
Raphael Zschorsch
Priority
Should have
TYPO3 version
10
© 2026 TYPO3 GmbH.
  • API
  • Privacy Policy
  • Legal Notice
  • Feedback