Project

General

Profile

Actions

Bug #20339

closed

Output of additionalCSS not valid

Added by Alexander Grein over 15 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Could have
Category:
-
Target version:
Start date:
2009-04-22
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Remote Sprint

Description

Output of tslib_fe::INTincScript_loadJSCode() produes invalid markup: are not valid there.

SteffenG: We're talking english here ;)

Der in der Datei "class.tslib_fe.php" generierte additionalCSS-Code ist nicht valide, da die ausgegebenen Kommentarzeichen "
02659 /*]]>/
02660 </script>';
02661 }
02662 if ($this->JSCode || count($this->additionalJavaScript)) { // Add javascript
02663 $this->additionalHeaderData['JSCode']='
02664 <script type="text/javascript">
02665 /
<![CDATA[*/
02666
02670 /*]]>/
02671 </script>';
02672 }
02673 if (count($this->additionalCSS)) { // Add javascript
02674 $this->additionalHeaderData['_CSS']='
02675 <style type="text/css">
02676 /
<![CDATA[*/
02677
02680 /*]]>*/
02681 </style>';
02682 }
02683 }

NEU:
02673 if (count($this->additionalCSS)) { // Add CSS
02674 $this->additionalHeaderData['_CSS']='
02675 <style type="text/css">
02676 /*<![CDATA[*/
02677
02678 '.implode(chr(10),$this->additionalCSS).'
02679
02680 /*]]>*/
02681 </style>';
02682 }

(issue imported from #M10955)


Files

10955.diff (565 Bytes) 10955.diff Administrator Admin, 2011-02-05 11:23
Actions

Also available in: Atom PDF