[web-audio-api] Specify what should happen when passing invalid offset/duration values to AudioBufferSourceNode.start (#18)

> Originally reported on W3C Bugzilla [ISSUE-21240](https://www.w3.org/Bugs/Public/show_bug.cgi?id=21240) Sun, 10 Mar 2013 17:10:27 GMT
> Reported by Ehsan Akhgari [:ehsan]
> Assigned to 

Created attachment 1331 [details]
Test case

We need to specify what happens when these values are invalid, for example, negative, or greater than the length of the buffer.

Currently, WebKit ignores offset if it's negative but smaller than the length of the buffer, and in that case respects duration.  If a value larger than the length of the buffer is passed as offset, then WebKit ignores both offset and duration.  It would have probably made much more sense if these kinds of invalid values would throw DOM_SYNTAX_ERR as these are probably not what the author would intend to pass in.

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

Received on Wednesday, 11 September 2013 14:29:01 UTC