Issue Bug Closed

#30547t3lib_div::wrapJS oddities

Anonymous 10/04/11, 14:46 updated 12/08/14, 14:46

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

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.