W3C home > Mailing lists > Public > www-html@w3.org > March 2004

RE: XHTML 2.0: W3C Working Draft 11 December 2002: XHTML Scripting Module Issue

From: Victor Kapustin <vak@mail.nw.ru>
Date: Sun, 7 Mar 2004 19:50:31 +0300
To: <www-html@w3.org>
Message-ID: <NDBBJLCNEKMCLIIAEOHBIECLDIAA.vak@mail.nw.ru>

> The current working draft [1] is that of 6 May 2003 and the text has
> changed considerably for this part [2] of the module.

Thanks, the new version is a bit more clear. Still it probably has a
misprint in the last words:

"rather than using document.write top generate text that then gets parsed."
probably should be----------------||
"rather than using document.write to generate text that then gets parsed."

Even the current text doesn't touch the issue of scripts that could modify
themselves. Rule 1 of "16.2.1. Rules for processing scripts" states that
"The user agent must first try to process the script element". Suppose that
script removes itself from the DOM tree (say, for the purpose of modyfying
itself and reinserting it back as another node). Or it inserts a hundred of
other scripts into the DOM before and after each other.

Should it be permitted at any time while loading a document? Or just on
succesfull load? Or no dynamic manipulation of scripts should be
permissible?

Current browsers (I tried IE 6.1 and Mozilla) allow such manipulations, but
with unpredictable results (probably, because all linked resources -
including scripts - are loaded as separate streams).

Victor Kapustin
Received on Sunday, 7 March 2004 11:50:12 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 18 February 2014 13:20:08 UTC