W3C home > Mailing lists > Public > public-webapi@w3.org > November 2007

Re: Window pointer

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 22 Nov 2007 17:34:53 +0000 (UTC)
To: Anne van Kesteren <annevk@opera.com>
Cc: Stewart Brodie <stewart.brodie@antplc.com>, public-webapi@w3.org
Message-ID: <Pine.LNX.4.62.0711221733460.3737@hixie.dreamhostps.com>

On Thu, 22 Nov 2007, Anne van Kesteren wrote:
> Yeah. It seems that if the Document object has changed an exception is 
> thrown in Internet Explorer. I guess I should change the definition. 
> Basically each XMLHttpRequest object has an associated Document object. 
> If the Document object changes this "pointer" becomes "null" and URI 
> resolving and origin checks will fail. If anyone has suggestions on how 
> to phrase that that would be welcome.

Document objects don't change; if we kept a reference to a Document then 
it would always be unambiguous. I actually think that's probably the 
better solution. Alternatively, we could keep a reference to both a 
Document and a Window and always check that the Document is the current 

> As for removing the Window object implying that the Document object is 
> removed, this does not seem to be what Internet Explorer is doing per my 
> testing:
>   http://tc.labs.opera.com/apis/XMLHttpRequest/open/031.htm
> Then again, there's no specification that I know of that defines when 
> the document attribute on the Window object changes, exactly.

HTML5 does.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 22 November 2007 17:35:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:24 UTC