Re: The url parameter of the XMLHttpRequest.open() method

On Sat, 30 Sep 2006, Anne van Kesteren wrote:
> 
> After having done some more testing I'm quite convinced that Internet 
> Explorer stores the base URI the moment you construct the object. When 
> the other window is removed for instance, or a different URI is loaded 
> in it, the base URI stays the same.

Removing the window wouldn't do anything (the Window object could just be 
kept around while the XMLHttpRequest exists), and loading a different URI 
would likely not do anything either (it could be that the reference that 
is being kept is to the Document, not the Window, or that a distinct 
instance of the Window interface exists for each Document).

If you want to be compatible with IE for this, what you should check is 
what happens if the base URI is _changed_ while the XMLHttpRequest object 
exists, e.g. by changing the attribute directly or by mutating the <base> 
elements in the document (if that works).

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

Received on Monday, 2 October 2006 21:05:03 UTC