Restore event init options tables (bubbles, cancelable, composed) #32832
Labels
Content:WebAPI
Web API docs
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/toggle_event
What specific section or headline is this issue about?
The event init flags table
What information was incorrect, unhelpful, or incomplete?
In this particular case, there is no mention that this event does not bubble, or when it's cancelable (when toggling from closed to open, but not the other way around).
But the problem is more general than just this one case, for instance the toggle event is not cancelable and doesn't bubble, or the invalid event which doesn't bubble either, or the animationstart event isn't cancelable, and that's only the few I looked at. I'm afraid the vast majority is now wrong.
What did you expect to see?
For every event, there used to be a table which listed the various event-init flags that a particular event would be created with, i.e.
bubbles
,cancelable
, or,composed
. This wasDo you have any supporting links, references, or citations?
In this duplicate but locked issue, @queengooborg explained
Do you have anything more you want to share?
One issue here is that as the linked
beforetoggle
case demonstrates, it's not always obvious which flags are set for a particular event since it can differ based on where it's actually fired, so the table data can't really be automated.Still, I believe MDN is the place to document this and asking web-devs to do the hunting in the specs isn't appropriate, and I hope the old data is still available somewhere, which should help for the majority of events.
Ps: Sorry for opening a new issue when there was already #22198 but as I said, it's been locked and I can't comment on that one anymore.
The text was updated successfully, but these errors were encountered: