-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
data:apiCompat data for Web APIs. https://developer.mozilla.org/docs/Web/APICompat data for Web APIs. https://developer.mozilla.org/docs/Web/APIdata:htmlCompat data for HTML elements. https://developer.mozilla.org/docs/Web/HTMLCompat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML
Description
Understanding and communicating the support of events in implementations is complicated. Taking the "keydown" event an example, there are many different facets of it:
- Event type: will an event with type "keydown" be created and fired by the browser?
- Where these
foo_eventshould be isn't always clear or consistent. Example:cut_eventvs.oncut
- Where these
- Event interface: does that event use the
KeyboardEventinterface? - Event handler IDL attribute: is the
onkeydownIDL attribute supported, and on which interfaces?- HTML defines
GlobalEventHandlers, but suchEventHandlerattributes are defined on most interfaces inheriting fromEventTarget.
- HTML defines
- Event handler content attribute: is the
onkeydowncontent attributes supported, and on which elements? Both HTML and SVG define event handler content attributes:
Unfortunately, all four facets can come apart:
- Events being fired but
onfooIDL attributes being missing (very common) - The reverse situation, where
onfoois supported despite "foo" never being fired, also happens. - Events being fired, but as
Eventand not a more specializedFooEvent. - 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_evententries should be and what they communicate to data consumers. - Guidelines or agreement on how to communicate a mismatch between especially
cut_eventandoncutentries.- 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
data:apiCompat data for Web APIs. https://developer.mozilla.org/docs/Web/APICompat data for Web APIs. https://developer.mozilla.org/docs/Web/APIdata:htmlCompat data for HTML elements. https://developer.mozilla.org/docs/Web/HTMLCompat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML