W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

Re: [whatwg] on* attributes on DOM elements

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 17 Jun 2011 18:17:18 +0000 (UTC)
To: Boris Zbarsky <bzbarsky@MIT.EDU>
cc: public-webapps <public-webapps@w3.org>, whatwg <whatwg@whatwg.org>
Message-ID: <Pine.LNX.4.64.1106171809500.14203@ps20323.dreamhostps.com>
On Fri, 17 Jun 2011, Boris Zbarsky wrote:
> On 6/17/11 12:57 PM, Boris Zbarsky wrote:
> > On 6/17/11 8:49 AM, Anne van Kesteren wrote:
> > > On Fri, 27 May 2011 21:11:59 +0200, Boris Zbarsky <bzbarsky@mit.edu>
> > > wrote:
> > > > It looks like Gecko, Presto, and Webkit all support on* event
> > > > attributes on all DOM elements, not just HTMLElement.
> > > > 
> > > > IE9 seems to only support them on HTMLElement.
> > > > 
> > > > I would propose that these be supported on all Elements at least for
> > > > events that are not element-specific (e.g. "click").
> > > 
> > > Should they move to DOM Core then? (I.e. those that are generic.)
> > 
> > That would make the most sense to me.
> 
> And to be clear, I'm talking here about IDL attributes, not content 
> attributes.

Since the IDL attributes just reflect the content attributes, I don't know 
how that could be separated.

The main reason I didn't put them on Element rather than HTMLElement is 
that I didn't expect other vocabularies would appreciate it. My ideal 
solution would be for all event handlers for all elements supported by a 
browser to be supported on all Element, Node, and Window objects, but 
that might be a bit far.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 17 June 2011 18:17:50 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:45 GMT