W3C home > Mailing lists > Public > public-html@w3.org > June 2012

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

From: <bugzilla@jessica.w3.org>
Date: Tue, 05 Jun 2012 19:07:16 +0000
To: public-html@w3.org
Message-ID: <bug-17425-2495@http.www.w3.org/Bugs/Public/>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 5 June 2012 19:39:06 GMT