Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • typo3 typo3
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Insights
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • typo3typo3
  • typo3typo3
  • Repository
Switch branch/tag
  • typo3
  • typo3
  • sysext
  • frontend
  • Classes
  • Http
  • RequestHandler.php
Find file BlameHistoryPermalink
  • Benni Mack's avatar
    [!!!][FEATURE] Omit type=text/javascript in HTML5 script tags · 327fdc1b
    Benni Mack authored Jul 15, 2019 and Oliver Hader's avatar Oliver Hader committed Jul 16, 2019
    HTML5 defines that <script tags do not need "type=text/javascript"
    as additional attribute.
    
    TYPO3 Backend is fully HTML5, so all parts can be removed there.
    
    For Frontend, when having config.doctype = html5 (or empty),
    then the attributes do not get added anymore as well.
    
    If necessary, for Frontend rendering the attribute can be
    added in HTML5 by specifying
    includeJS.myfile.type = text/javascript
    in TypoScript.
    
    As this modifies Frontend output, it is considered breaking.
    
    Also see W3C specification:
    https://www.w3.org/TR/html52/semantics-scripting.html#element-attrdef-script-type
    
    Resolves: #88772
    Releases: master
    Change-Id: I26ca4361e84cae680eedbf6855e209a6311c33da
    Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61300
    
    
    Reviewed-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
    Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
    Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
    Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
    Reviewed-by: Oliver Hader's avatarOliver Hader <oliver.hader@typo3.org>
    Tested-by: default avatarTYPO3com <noreply@typo3.com>
    Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
    Tested-by: Oliver Hader's avatarOliver Hader <oliver.hader@typo3.org>
    327fdc1b