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

Update Safari versions for DOMTokenList API #12138

Merged
merged 3 commits into from
Sep 24, 2021

Conversation

queengooborg
Copy link
Collaborator

This PR updates and corrects the real values for Safari (Desktop and iOS/iPadOS) for the DOMTokenList API, based upon results from the mdn-bcd-collector project (v3.2.9).

Tests Used: https://mdn-bcd-collector.appspot.com/tests/api/DOMTokenList

This PR updates and corrects the real values for Safari (Desktop and iOS/iPadOS) for the `DOMTokenList` API, based upon results from the [mdn-bcd-collector](https://mdn-bcd-collector.appspot.com) project (v3.2.9).

Tests Used: https://mdn-bcd-collector.appspot.com/tests/api/DOMTokenList
@github-actions github-actions bot added the data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Aug 23, 2021
@queengooborg queengooborg mentioned this pull request Aug 23, 2021
Copy link
Collaborator

@foolip foolip left a comment

Choose a reason for hiding this comment

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

This is earlier than api.Element.classList, which I believe was the first API to use DOMTokenList. Can you double check if that should also be supported earlier?

Also note that https://mdn-bcd-collector.appspot.com/tests/api/DOMTokenList is testing the interface object only, so it's possible this was supported even earlier but the interface was not exposed.

@queengooborg queengooborg marked this pull request as ready for review September 24, 2021 04:12
@queengooborg
Copy link
Collaborator Author

Based upon additional testing, it does seem like the interface was accidentally exposed in earlier Safari versions. I've updated the data to match the new tests and the classList feature!

@@ -30,7 +30,7 @@
"version_added": "11.5"
},
"safari": {
"version_added": "5.1"
"version_added": "6"
},
"safari_ios": {
"version_added": "5"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this also need to be updated to 6? https://developer.mozilla.org/en-US/docs/Web/API/Element/classList#browser_compatibility has a range starting at 5, but that seems implausible, that might just be wrong too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It seems to be just mirroring the original desktop data. Fixing now!

@foolip foolip merged commit c22dcdc into mdn:main Sep 24, 2021
@queengooborg queengooborg deleted the api/DOMTokenList/safari-corrections branch September 24, 2021 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants