Skip to content

Representing support of events #7545

@foolip

Description

@foolip

Understanding and communicating the support of events in implementations is complicated. Taking the "keydown" event an example, there are many different facets of it:

Unfortunately, all four facets can come apart:

  • Events being fired but onfoo IDL attributes being missing (very common)
  • The reverse situation, where onfoo is supported despite "foo" never being fired, also happens.
  • Events being fired, but as Event and not a more specialized FooEvent.
  • The event handler content attributes being missing (relatively rare, but happened historically)

These situations are generally not handled well in BCD, and because only event interface and event handler IDL attribute can be detected with simple feature detection, it's often come up in #6369.

What I believe we need:

  • Guidelines for where foo_event entries should be and what they communicate to data consumers.
  • Guidelines or agreement on how to communicate a mismatch between especially cut_event and oncut entries.
    • Should there be notes on both, and what should they say?
    • Since this has happened so much but is usually fixed after some time, how do we avoid cluttering up the data with notes?

@Elchi3 @ddbeck @sideshowbarker @vinyldarkscratch

Metadata

Metadata

Assignees

No one assigned

    Labels

    data:apiCompat data for Web APIs. https://developer.mozilla.org/docs/Web/APIdata:htmlCompat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions