[TIMOB-1302] Android: addEventListener listener argument should allow DOM2 spec's handleEvent property
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-07-21T16:19:42.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | n/a |
Components | Android |
Labels | api |
Reporter | Thomas Aylott |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T02:48:54.000+0000 |
Updated | 2017-07-21T16:19:42.000+0000 |
Description
http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-registration"> W3C DOM2 Events Registration Spec
http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventListener"> W3C DOM2 EventListener Spec
http://ajaxian.com/archives/an-alternative-way-to-addeventlistener"> Ajaxian -- An alternative way to addEventListener following http://twitter.com/SubtleGradient/status/18388549003" title="I can't believe none of us knew DOM2…">my recent Tweet
http://gist.github.com/446641#LID1081">Apple's iAD.js uses handleEvent a lot
listener = {
p: "Hello world!",
handleEvent: function(e){ alert(this.p) }
}
view.addEventListener('click', listener)
http://mcc.id.au/2007/05/binding-tests/" title= "This page details some differences between ECMAScript bindings implementations in different UAs"> ECMAScript binding tests
- http://mcc.id.au/2007/05/binding-tests/#t025">025 — Registering an EventListener with an object with a handleEvent property
- http://mcc.id.au/2007/05/binding-tests/#t026">026 — Registering an EventListener with a function object that also has a handleEvent property
- http://mcc.id.au/2007/05/binding-tests/#t027">027 — Registering an EventListener with an object whose handleEvent property comes from the prototype
This is an absolute necessity in order to implement the Delegation pattern as defined in iAD.js
Do we even make claims to support DOM L-2 at this level? It seems like we only conform to the JS spec. Guess it requires R&D.
Don't think we still support this, I have changed it from a bug to a feature request, as that seems to be more appropriate.
Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.