Issue Bug Closed

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

Patrick Grochowy 08/28/20, 17:54 updated 05/11/21, 15:59

Description

The file ‘typo3/sysext/core/Classes/Page/PageRenderer.php’ still contains hardcoded <script type="text/javascript"></strong>, which leads to validation warnings (validator.w3.org/nu/).</p> <p>For instance, when <strong>&#8216;spamProtectEmailAddresses&#8217;</strong> is set, the <strong>&#8216;typo3/sysext/frontend/Classes/Http/RequestHandler.php&#8217;</strong> creates inline-js which is then wrapped into <strong><script type="text/javascript">&#8230;</script>

Also the function ‘renderAdditionalJavaScriptLibraries()’ (also in ‘typo3/sysext/core/Classes/Page/PageRenderer.php’) has a hardcoded […] . ‘” type=”’ . […] which leads to a <script type>&#8230;</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.

Reviews 2