[TYPO3-dev] HTMLcleaner wrongly cleans JavaScript

Franz Holzinger franz at fholzinger.com
Mon Aug 14 20:46:58 CEST 2006


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?

- Franz




More information about the TYPO3-dev mailing list