ISSUE-185: Functions that Implement the EventListener Interface
handleEvent
Functions that Implement the EventListener Interface
- State:
- CLOSED
- Product:
- HISTORICAL: DOM3 Events [All Bugs and Issues use Bugzilla: http://tinyurl.com/Bugs-DOM3Events]
- Raised by:
- Jacob Rossi
- Opened on:
- 2011-08-16
- Description:
- LC issue raised on the behalf of Rob Brackett.
A fragment sentence seems to be left over in the description of EventListener:
> The listener parameter must be an object which implements the EventListener interface, such as a reference to a .
>
> The listener parameter must be either an object that implements the EventListener interface, or a function. If listener is a function then it must be used as the callback for the event; otherwise, if listener implements EventTarget, then its handleEvent method must be used as the callback.
>
> The listener parameter takes an object defined by the author which implements the EventListener interface and contains the method to be called when the event occurs.
>
- Related Actions Items:
- No related actions
- Related emails:
- Agenda: DOM Level 3 Events Telecon, 17 August 2011 (from Jacob.Rossi@microsoft.com on 2011-08-16)
- WebApps-ISSUE-185 (handleEvent): Functions that Implement the EventListener Interface [DOM3 Events] (from sysbot+tracker@w3.org on 2011-08-16)
Related notes:
Revision 1.201. Removed the fragment sentence and made an editorial clarification that is consistent with implementations:
"The listener parameter must be either an object that implements the EventListener interface or a function. If listener is a function then it must be used as the callback for the event; otherwise, if listener implements EventListener, then its handleEvent method must be used as the callback. If listener is a function that also has a handleEvent method, the function itself must be used as the callback and not its handleEvent method."
Commenter satisifed with proposed change:
http://lists.w3.org/Archives/Public/www-dom/2011AprJun/0274.html
Commenter satisified with change:
http://lists.w3.org/Archives/Public/www-dom/2011JulSep/0058.html
Display change log