W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2012

Re: variable declarations shadowing named properties on window

From: Ojan Vafai <ojan@chromium.org>
Date: Wed, 4 Jan 2012 00:24:53 -0800
Message-ID: <CANMdWTvcYkENiegX0ut-zx8b+z1cVUuL_mHBM+e=maY=yc163A@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Cameron McCormack <cam@mcc.id.au>, "public-script-coord@w3.org" <public-script-coord@w3.org>, Travis Leithead <Travis.Leithead@microsoft.com>, Allen Wirfs-Brock <allen@wirfs-brock.com>, Ian Hickson <ian@hixie.ch>
On Wed, Jan 4, 2012 at 12:16 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 1/4/12 3:10 AM, Ojan Vafai wrote:
>>    Can we move frames away from being own properties of the window
>    (i.e. move them onto some prototype)?  That seems like the
>>    "simplest" (in terms of how it works, not in terms of expressing it
>>    in WebIDL) way of making var shadow their names.
>> Seems fine to me. I don't see any downsides. Maybe I just don't
>> understand the implications. :)
> Well, it's not describable in WebIDL as it stands.  That's the main
> downside from a spec perspective.
> The other one is the usual "it's a behavior change, might break sites"
> thing.

IE and Opera already do this and have done so for a long time, right? That
makes me slightly less worried about the behavior change.
Received on Wednesday, 4 January 2012 08:31:14 UTC

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