Re: [Vibration API] Confusing list indexing in spec

Hi Justin,

On 16.6.2012, at 0.41, ext Justin Lebar wrote:

> If you want something less verbose, how about:
> 
> "A list of numbers representing a vibration pattern.  For example, the
> pattern [5, 10, 15] will cause the device to vibrate for 5ms, be still
> for 10ms, and then vibrate for 15ms."

Good catch. The algorithm is right (the earliest even entry has index 0), and the description was wrong.

To address the issue, I changed the description of the |pattern| simply to "A vibration pattern represented by a list of time entries." and added your example to the non-normative Examples section where it fits better. The algorithm is the normative part.

The Editor's Draft [ED] has been updated. A new release [TR] with this fix will be tagged later as per the W3C process. Meanwhile, I encourage you to refer to the ED for the latest.

Let us know if this addresses your concern, and thanks for reporting the bug! 

-Anssi

> [1] https://github.com/mozilla-b2g/gaia/pull/1704/files#r995646

[ED] http://dev.w3.org/2009/dap/vibration/
[TR] http://www.w3.org/TR/vibration/

Received on Monday, 18 June 2012 06:55:47 UTC