[whatwg] on* attributes on DOM elements

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 at 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 11:17:18 UTC