<script> gets deleted

I am running Amaya 9.51 on Windows XP. I have some HTML pages that use 
the Javascript document.write() function to generate rows in a table. My 
page looks something like this:

<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 4.01 Transitional//EN">
<html>
<head>
   ...
   <script type="text/javascript">
     function makerow(arguments...) {
// code to generate a row in table, <tr> <td>text</td> ... </tr>
       document.write(...)
     }
   </script>
</head>
<body>
   <table>
     <tbody>
       <tr> (first table row is in plain html)
         <td>text1</td>
         <td>text2</td>
         <td>text3</td>
       </tr>
       <script type=text/javascript">
         makerow(...) (more table rows are generated via javascript)
         makerow(...)
         ...
         makerow(...)
       </script>
     </tbody>
   </table>
</body>
</html>

The problem is that when I read this page into Amaya, then save the 
file, everything inside the table from the <script> to the </script> is 
deleted!

This page (as above) renders perfectly in Netscape, Firefox, and 
Micro$oft Internet Explorer. However, Amaya does not seem to like a 
<script> inside the table. Javascript allows me to generate any document 
content, including table rows, using document.write(). Why doesn't Amaya 
allow <script> inside <table>?

Note that my actual table is much more complicated than the example 
above. My javascript generated table rows have cells containing text, 
hyperlinks, and even forms with buttons. Generating the rows with 
javascript is at least twenty times easier than coding up each row 
individually.

Keith Rubow

Received on Monday, 1 May 2006 23:24:21 UTC