-
-
Notifications
You must be signed in to change notification settings - Fork 40
Closed
Description
The way that events are documented on MDN and represented in BCD is not great, with different facets of events being treated as separate, and no clear entry point to learn about an event. Previous discussion on this is in mdn/browser-compat-data#7545 and mdn/browser-compat-data#12290.
To summarize the three main facets in terms of BCD entries / MDN pages that often co-exist:
- Event interfaces, such as
ClipboardEvent
- *_event entries/pages such as
cut_event
(in this case there are three more pages) - on* event handler attributes, such as
oncut
(these are often on many interfaces, often via theGlobalEventHandlers
mixins)
Suggested work:
- Avoiding the duplication between *_event and on* entries and pages, and have a clear main page for each event such as "cut". While
element.addEventListener('cut', handler)
andelement.oncut = handler
aren't exactly the same and can have different browser support, I think we should think of this as one feature, which could have partial support. - Get rid of the last mixins:
GlobalEventHandlers
andWindowEventHandlers
(Reorganize GlobalEventHandlers and WindowEventHandlers mixin data mdn/browser-compat-data#12290) - Ensure the correct linkage between events and their interface, so that one can always find the right interface for an event ("cut" →
ClipboardEvent
andClipboardEvent
→ "cut" + "copy" + "paste")
Elchi3 and queengooborgElchi3
Metadata
Metadata
Assignees
Labels
No labels