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

Re: variable declarations shadowing named properties on window

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 31 Jan 2012 04:40:39 +0000 (UTC)
To: Cameron McCormack <cam@mcc.id.au>
cc: "public-script-coord@w3.org" <public-script-coord@w3.org>
Message-ID: <Pine.LNX.4.64.1201310440250.18697@ps20323.dreamhostps.com>
On Mon, 30 Jan 2012, Cameron McCormack wrote:
> Travis Leithead:
> > Thanks for closing the loop on this.
> > 
> > So, to clarify my understanding:
> > Name resolution lookup on the window/global will be:
> > 
> > 1. window/global own props
> > 2. WindowProperties own props
> > 3. WindowPrototype own props
> > 4. Object [prototype] own props
> > 5. WindowProperties named/indexed props
> > 
> > Named frames are part of step 5 as I understand it.
> 
> That's right, except for indexed properties.  Note that I didn't move 
> indexed properties to the WindowProperties object.  I left those as 
> being exposed on the instance itself.  Indexed properties always get 
> resolved ahead of any actual properties on the prototype chain.

I don't have to do any changes to HTML for this, right?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 31 January 2012 04:41:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:05 UTC