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

Re: XMLHttpRequest test suite suggestion

From: Jim Ley <jim@jibbering.com>
Date: Fri, 22 Sep 2006 22:39:27 +0100
Message-ID: <008e01c6de8f$94163210$0302a8c0@Sniff>
To: "Web APIs WG \(public\)" <public-webapi@w3.org>

"Boris Zbarsky" <bzbarsky@mit.edu>
> 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.

It's a host object the apply is undefined in ECMA, so I see no reason for 
the WEB API's WG to define it more than ECMA does.

I would encourage you to simply not support apply on such host objects, it's 
far the easiest solution, and avoids the problem you have..

Jim. 
Received on Friday, 22 September 2006 21:39:49 GMT

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