Re: Valid positioning of script elements

Clover Andrew:

> The following code is invalid, according to the w3 validator.  But I would argue
> that it should not be.  Can someone offer an explanation as to why it should be
> invalid?

> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
>      <title>Test</title>
> </head>
> 
> <body>
> 
> <table>
>      <tr>
>           <td>1,1</td></tr>
>      <script language="Javascript" type="text/javascript">
>      var str = "<tr><td>2,1<\/td><\/tr>"
>      document.write(str);
>      </script>
> </table>
> 
> </body>
> </script>
    ^^^^^^

:-)

#####################################################################
                         Bertilo Wennergren
                 <http://purl.oclc.org/net/bertilo>
                     <bertilow@hem.passagen.se>
#####################################################################

Received on Monday, 5 June 2000 16:11:36 UTC