- From: Zack Weinberg <zweinberg@mozilla.com>
- Date: Wed, 21 Jan 2009 18:12:31 -0800
- To: Boris Zbarsky <bzbarsky@MIT.EDU>
- Cc: Eduard Pascual <herenvardo@gmail.com>, François REMY <fremycompany_pub@yahoo.fr>, CSS 3 W3C Group <www-style@w3.org>
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