Re: document.write

> Why?  There is nothing I can see in any specification preventing 
> application of the HTML DOM to XHTML documents.... (and in fact Mozilla 

But W3C DOM document.write requires an explicit open and close.  There
is nothing in the spec that I've seen that suggests that these operations
are performed implicitly around the loading of the current page.  Also
load time document.writes would be working on an only partially built
parse tree; that seems inconsistent with idea of a DOM based on a
complete tree (although XML languages don't require lookahead and HTML
might not do so, so the generated content may not require the construction
of the parse tree to be backtracked).

Received on Thursday, 3 April 2003 15:22:08 UTC