-
Notifications
You must be signed in to change notification settings - Fork 166
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
Clarify what happens if you set PannerNode.{panningModel,distanceModel} to an invalid value #115
Comments
If you feel strongly about Web IDL enums, we can still consider switching to them. But since these enums are already in wide use as integers, we'd have to support setters as either int or string. We'd still have to throw an exception for illegal values even for Web IDL. |
We're considering enabling Web IDL enum attribute setters to throw if passed an invalid value, which would mean that we'll get what I'm asking for here for free. And yes, I still think that using Web IDL enums would be a good change because of the increase in code readability and the possibilities of using the IDL parser to do various sorts of checking for the implementers. However I don't think that it would be very good for us to allow setting these both as integers and strings... How did WebKit deal with the other breaking changes that was recently made in the spec (such as renaming functions, etc.)? |
(In reply to comment #2)
For the recent name changes such as noteOn() -> start(), WebKit continues to provide legacy support, which can eventually be phased out during a transition period. I added a section in the spec called "Deprecation Notes" to make note of these types of changes. Different implementations may choose to support or not support the legacy names, and for how long they would be supported. |
OK. Can the same approach be taken about the numeric attributes? |
(In reply to comment #4)
Yes, for the "enum" type attributes I think so. The only gotcha is that the "getters" would now return a string instead of an integer. But I think the main backwards compatibility concern is people setting these attributes, so I'm not so worried about that. |
Yep, I think that makes sense. Thanks! |
We've removed the integers. |
I think we should throw DOM_INDEX_SIZE_ERR.
(This and other similar bugs wouldn't have been a problem if we used Web IDL enums... :/ )
The text was updated successfully, but these errors were encountered: