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

Re: HTML Tidy bug?

From: James Alarie <jalarie@flint.umich.edu>
Date: Mon, 08 Sep 2003 09:01:04 -0400
Message-ID: <3F5C7D8F.CBE605CF@flint.umich.edu>
To: html-tidy@w3.org

> W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2003
>
> Re: HTML Tidy bug?
>
>    * This message: [ Message body ] [ Respond ] [ More options ]
>    * Related messages: [ Next message ] [ Previous message ] [ In reply to ]
>
> From: Fred Bone <Fred.Bone@dial.pipex.com>
> Date: Wed, 11 Jun 2003 12:45:17 +0100
> To: html-tidy@w3.org
> Message-ID: <3EE7245D.27352.1B21312@localhost>
>
> On 10 Jun 2003 at 14:27, jalarie@umflint.edu wrote:
>
> >
> > Tidy (version HTML Tidy for Windows released on 1st February
> > 2003) thinks my loop parameter is a tag:
> >
> >   for (i=0; i<max; i++)
> >
> > How do I tell it otherwise?  Thank you.
>
> Cannot reproduce (with either Tidy for Windows 2003-02-27 or original
> Tidy 2000-08-04) in any of these contexts:
> - SCRIPT in HEAD
> - SCRIPT in BODY
> - "onclick" attribute in A tag
>
> In what context is your problem occurring?

Try this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>Title</title>
  </head>
  <body>
    <script type="text/javascript">
      <!-- Hide this code from non-JavaScript browsers
        max=10;
        for (i=0; i<max; i++) {
          document.write(i);
        }
      // End hiding -->
    </script>
  </body>
</html>
Received on Monday, 8 September 2003 14:32:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:54 UTC