Project

General

Profile

Actions

Bug #45512

closed

Make the type attribute optional on script, style and link elements

Added by Ian Devlin about 11 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2013-02-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

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.


Related issues 8 (0 open8 closed)

Related to TYPO3 Core - Feature #47857: Delete adding type="text/javascript" if doctype is HTML5ClosedPatrick Broens2013-05-03

Actions
Related to TYPO3 Core - Feature #11287: Fluid section for header codeClosed2010-12-05

Actions
Related to TYPO3 Core - Task #83633: The type attribute is unnecessary for JavaScript resources.Closed2018-01-22

Actions
Related to TYPO3 Core - Bug #85053: Page Validation WarningClosed2018-05-21

Actions
Related to TYPO3 Core - Feature #86759: nomodule attribute on script tagClosed2018-10-26

Actions
Related to TYPO3 Core - Bug #88316: Do not set type attribute by default in script tag for page.includeJS (HTML5 compliance)Closed2019-05-09

Actions
Related to TYPO3 Core - Feature #88772: Omit type=text/javascript in HTML5 script tagsClosedBenni Mack2019-07-15

Actions
Related to TYPO3 Core - Bug #92126: Still <script type="text/javascript" ... hardcoded in PageRenderer.php -> leads to validity warningClosed2020-08-28

Actions
Actions

Also available in: Atom PDF