W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2000

Over-tidying <TR>'s

From: <susan_levine@peoplesoft.com>
Date: Mon, 17 Jan 2000 14:26:47 -0800
To: html-tidy@w3.org
Cc: ac.quick@sympatico.ca
Message-ID: <OF71599D12.E3BB7C72-ON88256869.007AA787@peoplesoft.com>
Hi Tidy People--

Tidy doesn't like script tags inside a <tr>.  It chooses to move it to
before the <table> tag.  The problem is that my <script> tag references an
image defined above it using the javascript DOM, so that when it's moved to
before the table, it gets an undefined object error when it executes.  I
can't find anything in the HTML spec that specifically prohibits the
<script> tag from living within the <tr> (or any other tag).  I believe my
HTML is correct, and Tidy is providing an unnecessary clean up.

Is this something you can (or would be willing to) fix, or is there some
specification that says script tags can only be defined within the <body>

I am actually experiencing this problem with the Java version of Tidy, but
Andy Q. does not want to deviate from your functionality.

My HTML looks like this:

            <IMG WIDTH=240 HEIGHT=20 NAME=processing src='IMAGE1.gif'>
        <SCRIPT LANGUAGE='javascript'>
          document.processing.src = 'IMAGE2.gif';


Tidy makes it look like this:

<script type="text/javascript" language='javascript'>
document.processing.src = 'IMAGE2.gif';


          <img width="240" height="20" name="processing" src='IMAGE1.gif'>

Thanks in advance,

Received on Monday, 17 January 2000 17:26:52 UTC

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