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

RE: Valid positioning of script elements

From: <JOrendorff@ixl.com>
Date: Mon, 5 Jun 2000 16:36:04 -0400
Message-ID: <CD8E2CDBC6D0D111ACB900805FBBD97E0263041D@memntsxchange.mem.ixl.com>
To: www-html@w3.org
Clover Andrew wrote:
> I note [...] that one may only insert <script>s at block-level,
> inline, or in <head>. It is invalid for a script to live in
> [...] <table>, <tr>, <dl> and so on.

Right.  This is weird.  <ins> and <del> have a related problem.

Really, the purpose of <script> is orthogonal to all the other
markup in HTML.  Same with <ins> and <del> (although one hopes
there would be a more substantial vocabulary-- XDiff?)

I hope that <script> <ins> and <del> will eventually fall out
of HTML and be replaced by some sort of more independent
XML-based standard.

For your purposes today, it's probably best to write server-side
code to generate the HTML document.

Pete wrote:
> You can create server side scripts (using ASP for example)
> that dynamically fills in a table, but it's invalid to use
> client side scripting to accomplish the same thing.

HTML wasn't intended to self-modify.

Remember, it's just a hypertext markup language.

Jason Orendorff
Received on Monday, 5 June 2000 16:36:48 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:54 UTC