W3C home > Mailing lists > Public > www-html@w3.org > June 2000

Re: Valid positioning of script elements

From: <pdf@bizfon.com>
Date: Mon, 5 Jun 2000 16:35:32 -0400
To: "Bertilo Wennergren" <bertilow@hem.passagen.se>
cc: www-html@w3.org
Message-ID: <852568F5.00711E8E.00@Enterprise>


Ooops... can't believe I posted that like that.  :)
Anyway, even after fixing that and making that last tag say </html> it still is
not valid according to the validator.  So my point still stands.

Pete





"Bertilo Wennergren" <bertilow@hem.passagen.se> on 06/05/2000 04:15:06 PM

To:   "Clover Andrew" <aclover@1VALUE.com>
cc:   www-html@w3.org (bcc: Peter Foti)

Subject:  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:33:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:43 GMT