W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2000

Script inside a TABLE gets damaged

From: Hubert Kauker <Hubert.Kauker@Stinnes.de>
Date: Fri, 10 Nov 2000 12:17:32 +0100
Message-ID: <3A0BD94B.B1047318@Stinnes.de>
To: html-tidy@w3.org, hubert.kauker@Stinnes.de
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 GMT

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