W3C home > Mailing lists > Public > public-webapi@w3.org > September 2006

Re: XMLHttpRequest test suite suggestion

From: Anne van Kesteren <annevk@opera.com>
Date: Fri, 22 Sep 2006 11:49:11 -0000
To: "Boris Zbarsky" <bzbarsky@mit.edu>
Cc: "Web APIs WG (public)" <public-webapi@w3.org>
Message-ID: <op.tf9239gs64w2qv@id-c0020>

On Thu, 21 Sep 2006 19:57:48 -0000, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> Anne van Kesteren wrote:
>> Basically, from the window you contruct the object in
> How is that defined?  Is it possible to take window1.XMLHttpRequest and  
> use apply() to call it with window2 as |this|?  In that case, which  
> window was the object constructed in?  Or is the "window you construct  
> the object in" the window that calls the constructor (call it window3 in  
> this case)?

Sorry, it's the window from which you use the constructor.

  var x = new frame.contentWindow.XMLHttpRequest()

Means that URIs are resolved against contentWindow.document.baseURI.

Anne van Kesteren
Received on Friday, 22 September 2006 11:49:41 UTC

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