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

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

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.

Received on Tuesday, 27 December 2011 08:47:05 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:53:52 UTC