W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2011

[whatwg] on* attributes on DOM elements

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 28 Jul 2011 22:22:10 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1107282221080.3775@ps20323.dreamhostps.com>
On Thu, 28 Jul 2011, Anne van Kesteren wrote:
> On Fri, 17 Jun 2011 11:57:20 -0700, Ian Hickson <ian at hixie.ch> wrote:
> > I'm all in favour of making this generic across all vocabularies. I'm 
> > happy to work with Anne and Ms2ger to move all the HTML and SVG event 
> > handler attributes (does MathML have any?) to Element. It would not be 
> > an uncontroversial change.
> So the SVG WG discussed this and they would like this as well. (They 
> basically want the same behavior as HTML has here and converge as much 
> as possible.) The change to the current mechanism required for SVG is to 
> expose an "evt" variable somehow in scope of the Function.
> Now does it make sense to have the IDL attributes on Element but not 
> have the content attributes on all elements? That would mean it still 
> depends on the markup language what you can use as on* attributes which 
> is not very straightforward.

As far as HTML goes, I'd suggest that we'd have a 1:1 mapping of IDL to 
content attribute, and have them be the same for every element (except 
<body>, <frameset>, and <marquee>).

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 28 July 2011 15:22:10 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:35 UTC