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

Re: "var" declarations shadowing properties from Window.prototype

From: Brendan Eich <brendan@mozilla.com>
Date: Sun, 12 Aug 2012 17:08:25 -0700
Message-ID: <50284579.9040404@mozilla.com>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: Brandon Benvie <brandon@brandonbenvie.com>, public-script-coord@w3.org, es-discuss@mozilla.org
Boris Zbarsky wrote:
>> But name collisions if the
>> HTML uses a common id= value and the JS wants that for a global var seem
>> scarily likely.
>
> Yes, using the GSP is more or less a recipe for fail.  That's why I'd 
> hoped to restrict it to quirks mode pages.  Ah, well. 

I was with you on that. I take it "4 out of 5 doctors recommend Trident" 
(pun!) prevailed?

/be
Received on Monday, 13 August 2012 00:09:05 UTC

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