[whatwg] on* attributes on DOM elements

Boris Zbarsky bzbarsky at MIT.EDU
Thu Jul 28 18:59:07 PDT 2011


On 7/28/11 6:05 PM, Anne van Kesteren wrote:
> 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.

Why, exactly?  I thought for SVG the "evt" thing was only relevant for 
content attributes, not IDL attributes.

> 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.

It might make sense to look into that too; I did not propose it because 
that's not what UAs do right now.  At least Gecko doesn't; I didn't look 
at others.

-Boris




More information about the whatwg mailing list