Issue Bug Closed

#18793Default Javascript browser detection doesn't work while using GMENU

Regis TEDONE 05/15/08, 11:16 updated 05/07/13, 08:02

Description

Roll over on GMENU doesn’t work in Typo3 4.2 with PHP 5.2.
The javascript error occurs : version not defined.

It seems that the rendered Javascript has not a break return after the beginning comment :

<script type="text/javascript"><br /> /*&lt;![CDATA[*/<br /> &lt;!&#8212;var browserName=navigator.appName;<br />&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<br />Or it should be :</p> <p><script type="text/javascript"><br /> /*&lt;![CDATA[*/<br /> &lt;!&#8212;<br />var browserName=navigator.appName;<br />&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.</p> <p>To correct this, just modify the file : typo3//sysext/cms/tslib/class.tslib_pagegen.php</p> <p>at line 723 :</p> <p>- $_scriptCode = &#8216;<br />+ $_scriptCode = &#8216;\n<br />(issue imported from #M8421)</p></script>

Reviews 0

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