Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #22407

Re: DOM attributes on listener scope chain

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> (permalink)
Date Thu, 26 Dec 2013 11:05:19 +1000
From RobG <rgqld@iinet.net.au>
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)" <tno@thenewobjective.com>
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

Show key headers only | View raw


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

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

DOM attributes on listener scope chain RobG <rgqld@iinet.net.au> - 2013-12-25 11:04 +1000
  Re: DOM attributes on listener scope chain "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2013-12-24 19:38 -0800
    Re: DOM attributes on listener scope chain Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-12-25 10:23 -0200
    Re: DOM attributes on listener scope chain RobG <rgqld@iinet.net.au> - 2013-12-26 09:49 +1000
    Re: DOM attributes on listener scope chain RobG <rgqld@iinet.net.au> - 2013-12-26 11:05 +1000
  Re: DOM attributes on listener scope chain "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2013-12-24 19:47 -0800
    Re: DOM attributes on listener scope chain Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-12-25 22:42 +0100
      Re: DOM attributes on listener scope chain "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2013-12-25 13:52 -0800
  Re: DOM attributes on listener scope chain Andreas Bergmaier <andber93@web.de> - 2014-01-07 19:27 +0100
    Re: DOM attributes on listener scope chain Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-07 19:42 +0100

csiph-web