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 compat data for Slotable api #1232
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected Firefox support information.
api/Slotable.json
Outdated
"version_added": null | ||
}, | ||
"firefox": { | ||
"version_added": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be:
{
"version_added": "58",
"flags": [
{
"type": "preference",
"name": "dom.webcomponents.enabled",
"value_to_set": "true"
}
]
}
api/Slotable.json
Outdated
"version_added": true | ||
}, | ||
"firefox_android": { | ||
"version_added": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
api/Slotable.json
Outdated
] | ||
}, | ||
"firefox_android": { | ||
"version_added": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You missed the information for Firefox for Android, this should be the same as in Firefox for Desktop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, my bad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The compat data on here needs updating, as the old-fashioned table on the Slotable MDN page isn't quite right.
Since this was implemented in most browsers as part of the same effort as the rest of the Shadow DOM v1 spec, I'd fully expect this to have the same support data as HTMLSlotElement. Copy the support data from https://github.com/chrisdavidmills/browser-compat-data/blob/dc6d108eb722a254774a9be7dcfe1f2463ee5e90/api/HTMLSlotElement.json, for both the Interface and its property.
Thanks!
Sorry for the messiness, I forgot to pull before pushing. And thanks for the explanation; I'm still learning and it's a huge help. |
No worries! It is a complex process; it took me a while to get used to as well. And the Web components support data is not the simplest. Thanks for the contribution ;-) |
No description provided.