Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add slotchange event. #1739

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions api/slotchange.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flagging @Elchi3 here — is this the correct way to add an actual event to BCD (as opposed to a DOM event object?)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, shouldn't we put events in a separate events folder? And maybe have the JSON structure as events.slotchange or similar?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, please hold on with events for now. See the discussion in #935.

"api": {
"slotChange": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slotchange?

"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Events/slotchange",
"support": {
"chrome": {
"version_added": true
},
"chrome_android": {
"version_added": true
},
"edge": {
"version_added": null
},
"firefox": {
"version_added": true
},
"firefox_android": {
"version_added": true
},
"ie": {
"version_added": false
},
"opera": {
"version_added": true
},
"opera_android": {
"version_added": true
},
"safari": {
"version_added": null
},
"safari_ios": {
"version_added": null
},
"webview_android": {
"version_added": true
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
}
}
}