Re: An HTML language specification

Mark Baker wrote:
> Your definition of "go away" is implementation dependent.  Consider a
> (admittedly very inefficient) implementation which rewrote the byte
> stream and then reparsed it after a document.write().

This implementation would be not only inefficient but also incorrect. 
Consider the a document being loaded in a subframe which contains:

   <script>
     parent.nonIdempotentMethod();
     document.write("I wrote something");
   </script>

> The old document is the one before document.write() happened.  The new
> one is the document after.

That approach (per above) is not compatible with the way you actually 
have to parse if you're executing scripts....

-Boris

Received on Thursday, 20 November 2008 21:45:29 UTC