-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Need guidance for callback functions. #3068
Comments
Looking around, I found that BCD actually does have some callbacks within the data, for example |
Closing this issue since it's stale. Happy to reopen or create a new issue for work on the specific callback! |
I'm reopening this. Even if that's how we mean to deal with callbacks, we still don't have documentation that tells contributors how to add this data (it's not obvious to me, for example, how you would name a callback feature or where it should be structured in BCD). |
Ah, I see what you mean, good point! |
I know this is a pretty stale issue, but since I had last commented, we've removed all of the callbacks from BCD, as well as mdn/content, so we aren't documenting them anymore (especially since the interface attribute that utilizes it will cover its data). I'm wondering if we should document what BCD won't include in the data guidelines? |
We have?! This particular callback is still supported in Chrome. (At least, it's still in the IDL.) We have 144 more. |
It seems like we shouldn't remove things from MDN or BCD ahead of browsers deprecating and removing them. |
There are many WebIDL features that don't make sense to document separately from the interface features that utilize them, including typedefs, enums, and callbacks. These are never directly exposed to web developers, and will never have their own compatibility separate from the interfaces. |
@queengooborg We haven't quite removed all callbacks. But I've written up a draft guideline that ought to close this issue, if it lands. See #14302. |
Such as this: https://drafts.csswg.org/resize-observer-1/#resize-observer-callback
There are currently no callbacks listed in BCD and no guidance in the help on how to do them.
The text was updated successfully, but these errors were encountered: