[BUGFIX] Make output of additionalCSS valid 28/36028/4
authorMathias Schreiber <mathias.schreiber@wmdb.de>
Thu, 15 Jan 2015 17:13:07 +0000 (18:13 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Thu, 15 Jan 2015 18:40:06 +0000 (19:40 +0100)
INTincScript_loadJSCode no longer wraps CSS in CDATA tags.
Doing so resulted in invalid CSS markup.

Fixes: #20339
Releases: 6.2, master
Change-Id: I5e9d3ff8867c8ba5dfbdc711ba3942124e68b911
Reviewed-on: http://review.typo3.org/36028
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Michael Stucki <michael.stucki@typo3.org>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php

index 3b3b543..c076046 100644 (file)
@@ -3539,11 +3539,7 @@ class TypoScriptFrontendController {
                if ($additionalCss !== '') {
                        $this->additionalHeaderData['_CSS'] = '
 <style type="text/css">
-       /*<![CDATA[*/
-<!--
 ' . $additionalCss . '
-// -->
-       /*]]>*/
 </style>';
                }
        }