X-Received: by 10.58.156.42 with SMTP id wb10mr1146660veb.26.1388015369676; Wed, 25 Dec 2013 15:49:29 -0800 (PST) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!p15no43387674qaj.0!news-out.google.com!p7ni4917qat.0!nntp.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.westnet.com.au!news.westnet.com.au.POSTED!not-for-mail NNTP-Posting-Date: Wed, 25 Dec 2013 17:49:28 -0600 Message-ID: <52BB6F07.6010205@iinet.net.au> Date: Thu, 26 Dec 2013 09:49:27 +1000 From: RobG User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 Newsgroups: comp.lang.javascript To: "Michael Haufe (TNO)" Subject: Re: DOM attributes on listener scope chain References: <4-KdnZdprtC0sifPnZ2dnUVZ_rKdnZ2d@westnet.com.au> <3dcadb95-700a-4ae4-84d6-767eaadc3f89@googlegroups.com> In-Reply-To: <3dcadb95-700a-4ae4-84d6-767eaadc3f89@googlegroups.com> Lines: 22 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 124.171.239.226 X-Trace: sv3-RBdtkCRnpkeR93NZQGCYMpupXbaz/Ja4LEEsw3mgKSBhC/INYJ2byS3nKRbzuLuUw/HA6ZSguTjM9HJ!FVJV/6Vv3PAgS7lIWSAmuXX2GJR57UNHAOmkqqeQ88I9FxdvpCmaca6jF5Yne44gs8gO21/JjjM= X-Complaints-To: abuse@westnet.com.au X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2173 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Received-Bytes: 2477 X-Received-Body-CRC: 3884267020 Xref: csiph.com comp.lang.javascript:22406 On 25/12/2013 1:38 pm, Michael Haufe (TNO) wrote: > On Tuesday, December 24, 2013 7:04:35 PM UTC-6, RobG wrote: >> It seems that for an inline listener, the attributes of the DOM element >> its attached to are included as variables on a kind of variable object >> inserted as the first object on the listener's scope chain (like the >> behaviour of _with_), e.g. [...] >> Does anyone know the history of this feature? It seems little used and >> rarely documented, I know PointedEars has looked into it in the past but >> I can't find references. > > Thomas, Brendan Eich, and myself discussed this on Twitter not long ago: > > https://twitter.com/mlhaufe/status/405024792627007488 Thanks, your link lead me to eventually find a Thomas post on StackOverflow: http://stackoverflow.com/questions/9158238/why-js-function-name-conflicts-with-element-id -- Rob