W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2014

Re: Determining what prototype should be used for an object

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Mon, 17 Nov 2014 21:24:53 -0500
Message-ID: <546AADF5.9010404@mit.edu>
To: Allen Wirfs-Brock <allen@wirfs-brock.com>
CC: public-script-coord@w3.org
On 11/17/14, 9:21 PM, Allen Wirfs-Brock wrote:
>
> On Nov 17, 2014, at 6:14 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>>   window2.document.createElement.call(window2.document)
>>
>> then is the "caller's realm" in his case window1 or window2?
>
>
> and what about the Realm of the createElement function?

Er, sorry, my testcase was supposed to be:

   window2.document.createElement.call(window3.document, "foo");

running in window1.

In this case the "this" object is from window3, the function is from 
window2, and the caller of the function is in window1.

I fully expect the actual elements here to be created from window3 (this 
is one of the cases I expect are needed for web compat), but I just want 
to understand which of window1 and window2 is the "caller's Realm" in 
the IE case.

-Boris
Received on Tuesday, 18 November 2014 02:25:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:23 UTC