W3C home > Mailing lists > Public > public-device-apis@w3.org > December 2011

Vibration API - There is no definition about invalid parameter.

From: Kihong Kwon <vimff0@gmail.com>
Date: Tue, 27 Dec 2011 17:45:09 +0900
Message-ID: <CA+S_vqwjKO02ijN11OfyE-eu1tzb7Jtmf8rYv2vp9cO+ZQm=Eg@mail.gmail.com>
To: public-device-apis@w3.org
Hi. DAP

I'm implementing the Vibration API to the webkit.
But, I have two questions about this.

There is no definition about invalid parameter in the spec.
If I get a invalid parameter like string( navigator.vibrate("1000sec")
or navigator.vibrate([1000 200 500 "msec"])),
Which DOM Exception have to be set from the engine?(NOT_SUPPORTED_ERR??)

AND
If the device gets vibrate message from WebAPP during it is vibrating
already, how do I arrange these.
There are three options, I think.
1. Stop the first vibration, and do the second.
2. Ignore the second
3. After finish the first vibration, do the second.

I think we have to arrange this and add to the spec.
Thank you.

BR.
Kihong
Received on Tuesday, 27 December 2011 08:47:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:14:27 GMT