-
Notifications
You must be signed in to change notification settings - Fork 29
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
Why is MediaPositionState nullable? #231
Comments
Note that this is not even valid IDL. See whatwg/webidl#774 (comment) and https://bugs.chromium.org/p/chromium/issues/detail?id=997708 |
Yeah, I remember being surprised to see optional and nullable. I thought nullable alone may be the right thing and that's how it's implemented in Blink but what I hear is that this actually incorrect and the right solution is to have it optional only. Am I getting this right? |
That's not valid IDL either, fwiw, and the fact that the Blink bindings allow it is a longstanding issue. :( The right solution is to have it be optional only if the dictionary has no required members. In that case, all of |
This dictionary has no required members indeed. So I'm not sure if I understand this correctly. Are you suggestion to have |
If the dictionary has no required members, then per IDL spec the only valid syntax here is:
The prose for |
This came up in whatwg/webidl#774. Credit: Kagami Sascha Rosylight.
The text was updated successfully, but these errors were encountered: