Skip to content

Update event features according new data guideline #14578

@Elchi3

Description

@Elchi3

The data guideline for how to represent events in BCD has been updated recently. See https://github.com/mdn/browser-compat-data/blob/main/docs/data-guidelines.md#dom-events-eventname_event for the new guideline.

This is a tracking issue to update all event features to align with the said guidelines. Practically, this means that there shouldn't be any on event handler features. We can grep them: npm run traverse all api|grep "\.on".

If mixins, bubbling events, or global events are involved, it might not be straightforward what to do but usually, the on event features are merged with the eventName_event features, making two BCD entries one entry.

All changes usually require an MDN content PR as well. Use the "needs content update" label and ideally also submit the MDN PR that changes the content structure. The MDN contribution docs contain a template that shows what new event pages should look like. Example page: https://developer.mozilla.org/en-US/docs/Web/API/XRSession/end_event

Help and expertise around events are appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bulk_updateAn update to a mass amount of data, or scripts/linters related to such changesgood first issueGood issues for getting started with this project.help wantedYou're encouraged to pick up this issue, a maintainer will come back to you and review your work.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions