[Bug 17425] New: Inconsistency of event handler idl attributes

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17425

           Summary: Inconsistency of event handler idl attributes
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: w3c@marcosc.com
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


The HTML spec says that event handler idl attributes (e.g., onload) the should
be set with using objects that implement the Function interface. However, DOM4
allows objects that implement EventListener to be used (e.g.,
addEventListener({handleEvent:...})). 

>From a developer perspective, this is inconsistent in that there are two ways
of doing conceptually the same thing. 

What is interesting is that Webkit-based browsers support both approaches
(which is good, IMO), while IE and Moz don't. Opera is somewhere in the middle:
today, it supports using EventListener interface on Nodes (e.g.,
element.onclick) but not on the Window object.  

For more details, please see: 
http://lists.w3.org/Archives/Public/www-dom/2012AprJun/0073.html

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Tuesday, 5 June 2012 19:39:06 UTC