[TYPO3-dev] HTMLcleaner wrongly cleans JavaScript

Bernd Wilke xoonsji02 at sneakemail.com
Mon Aug 14 22:31:04 CEST 2006


On Mon, 14 Aug 2006 20:46:58 +0200, Franz Holzinger wrote
with subject "Re: [TYPO3-dev] HTMLcleaner wrongly cleans JavaScript":

> Hello
> 
> > for (var k=0; k
> > 
> > 
> > part2:
> > len; k++) {
> > 
> > 
> > This happens in the middle of the for loop.
> > at
> > k<len
> > .
> > 
> > 
> > Later the output of part2 gets totally corrupted.
> > 
> > for (var k=0; k<len; k="" sboptionsk1="new" optioncccategory2k0="" 
> > ccategory2k="" else="" bshowarticle="" if="" sboptions0="new" 
> > optionlen="" keineunterkategorie="" var="" data="" array="" 
> > sb="document.getElementById(" pid="" 2="" option="" b="" 
> > tx_ttproducts_pi1="" tt_products_showarticledata="" c="" 
> > sbselectedindex="0;" selectselectedindex="index;" 
> > keinenartikelanzeigen="" test="" --="">
> > /*]]>*/
> > 
> > 
> 
> I have found out now that this work around helps:
> 
> for (var k = 0; k < len; k++) {
> 
> I just have to put a blank between 'k<len' in the JavaScript code of 
> tt_products.
> 
> Is this a bug or intended?

I reported this bug in september last year (#1477)
http://bugs.typo3.org/view.php?id=1477

maybe you can add your 2nd workaround to it.

Bernd
-- 
----------------
Bernd Wilke     
Annweilerstr.20 
40229 Düsseldorf
0211/229 2800




More information about the TYPO3-dev mailing list