Script inside a TABLE gets damaged

Hello,
Tidy does not correctly work when I have a <script>...</script> nested inside a
<table>...</table>.
See the following example.
The version is dated 30-April-2000.
Thank you,
Hubert.

INPUT:
======
<html>
<head><title>Tidy Test 2</title>
<body>
<table border=1>
<tr>
 <th>Head</th>
</tr>
<script>
 document.write("<tr><td>text 1</td></tr>")
</script>
</table>
</body>
</html>

OUTPUT:
=======
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
  <head>
    <title>Tidy Test 2</title>
  </head>

  <body>
<script type="text/javascript">
</script>
    document.write("")

    <table border="1">
      <tr>
        <th>Head</th>
      </tr>

      <tr>
        <td>text 1</td>
      </tr>
    </table>
  </body>
</html>

Received on Friday, 10 November 2000 06:16:08 UTC