Re: [web-audio-api] Clarify what happens if you set PannerNode.{panningModel,distanceModel} to an invalid value (#115)

> [Original comment](https://www.w3.org/Bugs/Public/show_bug.cgi?id=19902#1) by Ehsan Akhgari [:ehsan] on W3C Bugzilla. Thu, 15 Nov 2012 01:32:24 GMT

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.)?

---
Reply to this email directly or view it on GitHub:
https://github.com/WebAudio/web-audio-api/issues/115#issuecomment-24244293

Received on Wednesday, 11 September 2013 14:30:19 UTC