Re: variable declarations shadowing named properties on window

On 1/5/12 1:33 PM, Travis Leithead wrote:
> I don't consider ids, names, frame-names, etc., to be "own properties", they are "dynamic" or "virtual" properties; said another way, they are "internal" properties to the platform object. I can't imagine an implementation that actually creates real data properties on the instance for such properties--it would be a maintenance nightmare. Am I totally off here?

"own properties" just means "not properties on the prototype".  It says 
nothing about "real data properties" or anything like that.  Just 
whether getOwnPropertyDescriptor returns anything useful.

That said, Gecko does in fact create actual properties on the window for 
frame names at least.  Leads to bugs when frames are removed from the 
DOM.  ;)


Received on Thursday, 5 January 2012 19:00:20 UTC