Project

General

Profile

Actions

Bug #30547

closed

t3lib_div::wrapJS oddities

Added by Anonymous about 13 years ago. Updated almost 10 years ago.

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 #1

Updated by Alexander Opitz almost 10 years ago

  • Status changed from New to Needs Feedback
  • Is Regression set to No

Hi,

as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (6.2.7)?

Actions #2

Updated by Anonymous almost 10 years ago

Hello Alexander,

You will need to find out yourself.

I haven't used the version you mentioned.

If you are looking into the code, it must be perfectly visible at your end, even without asking me.

Thanks.

Cheers,
T

Actions #3

Updated by Alexander Opitz almost 10 years ago

  • Status changed from Needs Feedback to Closed

No helpful answer, closing this issue.

Actions

Also available in: Atom PDF