Actions
Bug #30547
closedt3lib_div::wrapJS oddities
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-10-04
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:
Description
Hello,
It looks like there are few strange things in the following static method: t3lib_div::wrapJS
1. The JavaScript is being wrapped to
/*<![CDATA[*/ .. /*]]>*/, in order to be XHTML ready, while exactly this is not XHTML compliant, and it is causing issues with validation, and possibly with execution.
2. There is an option to wrap the script in line-breaks, which are subsequently stripped by trim():
return trim($string);This is not making much sense, I am afraid.
Could you have a look at these issues, please.
Thank you very much in advance.
Kind regards,
Tomas
Actions