Skip to content

Guarantee that there are events associated with interfaces that inherit from EventTarget #1216

Open
@tidoust

Description

@tidoust

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:

  1. All interfaces that inherit from EventTarget are targeted by at least one event (for example: there should be events that target CloseWatcher)
  2. We have a suitably named event for all EventHandler attributes in such interfaces (for example: there should a cancel event that targets CloseWatcher because it has an oncancel 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions