- From: <susan_levine@peoplesoft.com>
- Date: Fri, 24 Mar 2000 11:45:34 -0600
- To: html-tidy@w3.org
- Cc: ac.quick@sympatico.ca
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> tag? 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: <table> <tr> <td> <IMG WIDTH=240 HEIGHT=20 NAME=processing src='IMAGE1.gif'> </td> <SCRIPT LANGUAGE='javascript'> document.processing.src = 'IMAGE2.gif'; </SCRIPT> </tr> </table> Tidy makes it look like this: <script type="text/javascript" language='javascript'> document.processing.src = 'IMAGE2.gif'; </script> <table> <tr> <td> <img width="240" height="20" name="processing" src='IMAGE1.gif'> </td> </tr> </table> Thanks in advance, --Susan susan_levine@peoplesoft.com
Received on Friday, 24 March 2000 13:14:50 UTC