W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2000

hyphens in comments in script tags

From: Erik Severinsen <erik@abnett.no>
Date: Wed, 2 Aug 2000 16:54:08 +0200
To: <html-tidy@w3.org>
Message-ID: <000301bffc91$83d62450$792c86c3@LAPTOP3>
Despite using the 'fix-bad-comments: true' setting the HTML comment inside
the script tag isn't cleaned as hoped. The multiple hyphens (---) stops my
XSL-transformation as '--' is not valid XML. Isn't Tidy suppose to handle
this. I'm using JTidy ver. 8jul

<script type="text/javascript" language="javascript">
<!--
myRandomNum = Math.round(10000*Math.random())
//--- Preload Images ---//
var idx;
var check;
var maxImages = 14;         // Number of images to preload.
var rollImg = new Array();
for(idx=0; idx < maxImages + 1; idx++)
{
    rollImg[idx] = new Image();
    if (idx == 0)
        rollImg[idx].src = "/gfx/lc_glbnetwork_usaflag.gif";
    if (idx == 1)
        rollImg[idx].src = "/gfx/lc_glbnetwork_dkflag.gif";
      if (idx == 11)
        rollImg[idx].src = "/gfx/lc_glbnetwork_no.gif";
}
//-->


Erik Severinsen :|: ABnett AS :|: Phone/Fax 66768600/1
erik@abnett.no  :|: Mobile: 91606563



Erik Severinsen :|: ABnett AS :|: Phone/Fax 66768600/1
erik@abnett.no  :|: Mobile: 91606563
Received on Wednesday, 2 August 2000 10:54:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:44 GMT