W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

Re: Global variables and id lookup for elements

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Thu, 28 Apr 2011 17:58:09 -0700
Message-ID: <BANLkTikAtPP16M-WZxg0W7_rVy=T4h9pDg@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: public-webapps@w3.org
On 4/28/11, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> For what it's worth, the way Gecko implements this is by inserting an
> object into the prototype chain of the Window that handles these
> property gets.  This means that |var| (which defines a prop on the
> Window itself) will always shadow the named props, which is the behavior
> you observe.

That is correct. Because it is available in quirks mode only,
GlobalScopePolluter addresses legacy code designed to run in IE
without burdening other scripts with the problematic complexities it
Received on Friday, 29 April 2011 00:58:37 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 13:55:41 UTC