[whatwg] Should onfoo event handler properties be on Element or HTMLElement?
simonp at opera.com
Tue Oct 8 13:15:42 PDT 2013
On Tue, 08 Oct 2013 20:38:48 +0200, Philip Jägenstedt <philipj at opera.com>
> On Tue, Oct 8, 2013 at 8:21 PM, Boris Zbarsky <bzbarsky at mit.edu> wrote:
>> On 10/8/13 9:49 AM, Philip Jägenstedt wrote:
>>> Gecko has "HTMLElement implements GlobalEventHandlers" in its IDL,
>>> but somewhat surprisingly also "SVGElement implements
>> Note that in Gecko SVG elements also have event handler content
>> and whatnot.
>> What's your proposed handling of event handler content attributes? And
>> that the handling of these is not quite identical for HTML and SVG last
>> checked. :(
> Is there a spec for how the event handler content attributes (with
> reflection) work in SVG?
I don't see any IDL for event handlers in the SVG spec, so per spec there
should only be content attributes... And only those that are specified for
some elements, unlike HTML where most event handlers are available
> In any event I haven't intended any changes
> here, whatever is already implemented sounds good.
I'm not sure what should be done with SVG. Clearly the SVG spec doesn't
reflect the "we should do whatever HTML does" idea.
> If implementations
> disagree, then getting agreement and a spec for it seems orthogonal to
> which interface the IDL attributes sit on.
I think it would be bad to have an IDL attribute without a working content
attribute for a given element. That's just confusing.
More information about the whatwg