W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2012

Re: [whatwg] Spec for handling runtime script errors doesn't seem to match reality

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 12 Nov 2012 11:48:20 -0800
Message-ID: <50A15284.2060603@mit.edu>
To: olli@pettay.fi
Cc: whatwg <whatwg@lists.whatwg.org>
On 11/12/12 10:45 AM, Olli Pettay wrote:
> First I thought the spec behavior would make more sense, but if the
> error is about executing something bound to
> window A it would be quite surprising to get error event on window B.

So I did a bit more experimenting, and at first glance when the function 
runs, even though the function's global is actually window A the "this" 
object seems to be set to window B... _That_'s not specced anywhere 
either, afaict.

The whole thing is a bit of a mess.  :(

-Boris
Received on Monday, 12 November 2012 20:49:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:11 GMT