Re: [svgwg] Add DocumentAndElementEventHandlers

> Do I need to make something ... that lists all event handler attributes

Good point. Technically, the mixin only defines the DOM interface properties. It doesn't add the attributes to the element model. So the attributes do need to be defined separately.

That said, the text in the [Event Handlers section](https://svgwg.org/svg2-draft/interact.html#EventAttributes) in the interactivity chapter is pretty open-ended, automatically including any new event types:

> event attribute
> An event attribute always has a name that starts with "on" followed by the name of the event for which it is intended. It specifies some script to run when the event of the given type is dispatched to the element on which the attribute is specified.
> 
> For every event type that the user agent supports, SVG supports that as an event attribute, following the same requirements as for event handler content attributes [HTML]. The event attributes are available on all SVG elements.

So maybe a better strategy would be to get rid of the list of explicit attributes for the "global event attributes" category, and instead make it link to that section.  But I'm not sure where in the build process we need to change something to make that happen.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/svgwg/pull/413#issuecomment-380985678 using your GitHub account

Received on Friday, 13 April 2018 00:38:56 UTC