Open
Description
Via #1212 (comment).
We already use the fact that an interface inherits from EventTarget
to find target interfaces for events when we extract them from the specs, but we don't have test in place that checks that:
- All interfaces that inherit from
EventTarget
are targeted by at least one event (for example: there should be events that targetCloseWatcher
) - We have a suitably named event for all
EventHandler
attributes in such interfaces (for example: there should acancel
event that targetsCloseWatcher
because it has anoncancel
attribute.
Depending on what research reveals, this test could be turned into a guarantee for the @webref/events
package. There may be exceptions to the rule though (such as new interfaces for which the draft spec does not yet correctly define associated events)
Activity