#45512Make the type attribute optional on script, style and link elements
Description
With HTML5, the type attribute is no longer required on script, style and link[rel="stylesheet"] elements, as they automatically default to “text/javascript” and “text/css” (x2) respectively.
It should be possible to configure this via TypoScript.
Reviews 2
Related issues 8
- Feature #11287Fluid section for header code
- Feature #47857Delete adding type="text/javascript" if doctype is HTML5
- Task #83633The type attribute is unnecessary for JavaScript resources.
- Bug #85053Page Validation Warning
- Feature #86759nomodule attribute on script tag
- Bug #88316Do not set type attribute by default in script tag for page.includeJS (HTML5 compliance)
- Feature #88772Omit type=text/javascript in HTML5 script tags
- Bug #92126Still <script type="text/javascript" ... hardcoded in PageRenderer.php -> leads to validity warning