Re: Proposal for limited :matches pseudoclass

Boris Zbarsky <bzbarsky@MIT.EDU> wrote:
>
> <html>
>    <script>
>      window.onload = function() {
>        document.write("I never plan to document.close()");
>      }
>    </script>
> </html>
> 
> The page generated by the implied document.open() never finishes 
> loading.  This is not an uncommon pattern, actually.

Ok, so I am the last person to claim encyclopedic knowledge of the DOM,
but I didn't know there was any such thing as document.open or
document.close, and my naive expectation was that a bare document.write
had no lingering side effects.

zw

Received on Thursday, 22 January 2009 02:13:13 UTC