Project

General

Profile

Actions

Bug #92126

closed

Still <script type="text/javascript" ... hardcoded in PageRenderer.php -> leads to validity warning

Added by Patrick Grochowy over 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2020-08-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The file 'typo3/sysext/core/Classes/Page/PageRenderer.php' still contains hardcoded <script type="text/javascript">, which leads to validation warnings (validator.w3.org/nu/).

For instance, when 'spamProtectEmailAddresses' is set, the 'typo3/sysext/frontend/Classes/Http/RequestHandler.php' creates inline-js which is then wrapped into <script type="text/javascript">...</script>

Also the function 'renderAdditionalJavaScriptLibraries()' (also in 'typo3/sysext/core/Classes/Page/PageRenderer.php') has a hardcoded [...] . '" type="' . [...] which leads to a <script type="">...</script>, which also results in a validity-warning.
In the function 'renderJavaScriptFiles()' directly afterwards it was already fixed. :-)

At the monent these are just warnings, but sometimes in the future they will propably become errors, so this should be fixed.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #45512: Make the type attribute optional on script, style and link elementsClosed2013-02-15

Actions
Actions

Also available in: Atom PDF