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

Re: XMLHttpRequest test suite suggestion

From: Maciej Stachowiak <mjs@apple.com>
Date: Tue, 26 Sep 2006 02:28:34 -0700
Message-Id: <05FA929E-CDE1-41A7-808A-CDA1FEBEEE82@apple.com>
Cc: Anne van Kesteren <annevk@opera.com>, "Web APIs WG (public)" <public-webapi@w3.org>
To: Boris Zbarsky <bzbarsky@mit.edu>


On Sep 22, 2006, at 2:23 PM, Boris Zbarsky wrote:

>
> Anne van Kesteren wrote:
>> On Fri, 22 Sep 2006 16:41:12 -0000, Boris Zbarsky  
>> <bzbarsky@mit.edu> wrote:
>>> That doesn't answer my question above.  It just shifts the burden  
>>> onto defining what "the window from which you use the  
>>> constructor" means.
>> Can you point out the problem in that definition?
>
> Did you read the question I quoted in my previous mail?
>
> To repeat it a third time.  If do something along the lines of:
>
> var func = window1.XMLHttpRequest;
> var req = new (func.apply(window2)();
>
> or some such, which is the "window from which you use the  
> constructor"?  window1 or window2?
>
> If what I said is not possible to do, I'm happy, but then I'd like  
> to be pointed to the part of the ECMA spec that says so; I haven't  
> been able to find it.

You can't use "apply" with "new". What part of the spec says you can?

Cheers,
Maciej
Received on Tuesday, 26 September 2006 09:29:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:55 GMT