Re: Global variables and id lookup for elements

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
causes.
-- 
Garrett

Received on Friday, 29 April 2011 00:58:37 UTC