Re: Window pointer

On Mon, 19 Nov 2007, Anne van Kesteren wrote:
> > > 
> > > The Window is not deleted.
> > 
> > Does that go for the document too?
> 
> Yes. I'm not sure why it would be removed. After all, the Window object 
> has references to it.

Careful; a Window object can point to different Document objects during 
its lifetime, depending on which document is active. What should happen 
when the original document is no longer the active document? Directly 
accessing window.document at that point could be across-origin error.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Monday, 19 November 2007 16:46:42 UTC