Vibration API: clamp argument

Hi, would it make sense to add the [Clamp] attribute to the argument of the
vibrate method? This would be added in WebIDL.

See the Clamp attribute here:

Without it, navigator.vibrate(-1) becomes navigator.vibrate(4294967295).

It seems clamping it to 0 would be a more elegant way of handling this bad

What do you think?



Received on Tuesday, 22 October 2013 11:24:07 UTC