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