Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!border3.nntp.dca.giganews.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 19:05:20 -0600 Message-ID: <52BB80CF.3000905@iinet.net.au> Date: Thu, 26 Dec 2013 11:05:19 +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> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 22 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 124.171.239.226 X-Trace: sv3-rLFUa3Y3iRl4a/xa+HZ1a1OjDZraGFtUVAgRRGf6h2dQo2Qoqru4VQLrb0VND5FdnKjJGpAhuPCuNDK!zx2ly7w82GoHgJlF55nNEmfqH9gkC1qkTE6gHiMsgorf5GSov8WGWR4B5fO9riO1dzLsiOFIPkA= 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 Xref: csiph.com comp.lang.javascript:22407 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