ISSUE-156: add the [Clamp] attribute to the argument of the vibrate method
add the [Clamp] attribute to the argument of the vibrate method
- State:
- POSTPONED
- Product:
- Vibration API
- Raised by:
- Frederick Hirsch
- Opened on:
- 2013-10-22
- Description:
- on behalf of Michael van Ouwerkerk <mvanouwerkerk@chromium.org>
see http://lists.w3.org/Archives/Public/public-device-apis/2013Oct/0148.html
[[
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:
http://dev.w3.org/2006/webapi/WebIDL/#Clamp
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 input.
]]
- Related Actions Items:
- No related actions
- Related emails:
- Re: [vibration] issue status summary (from mvanouwerkerk@google.com on 2014-01-06)
- [vibration] issue status summary (from Frederick.Hirsch@nokia.com on 2014-01-03)
- [admin] Draft minutes teleconference 12 December 2013 (from Frederick.Hirsch@nokia.com on 2013-12-12)
- [admin] Agenda - Distributed Meeting 12 December2013 (from Frederick.Hirsch@nokia.com on 2013-12-11)
- Re: [admin] Agenda - Distributed Meeting 21 November 2013 (from jean-claude.dufourd@telecom-paristech.fr on 2013-11-21)
- [admin] Agenda - Distributed Meeting 21 November 2013 (from Frederick.Hirsch@nokia.com on 2013-11-21)
- [admin] draft minutes 7 November 2013 teleconference (from Frederick.Hirsch@nokia.com on 2013-11-07)
- Agenda - Distributed Meeting 7 November 2013 (Thursday) (from Frederick.Hirsch@nokia.com on 2013-11-05)
- [admin] Minutes 31 Oct 2013 (updated) (from Frederick.Hirsch@nokia.com on 2013-11-04)
- Re: Vibration API: clamp argument (from Frederick.Hirsch@nokia.com on 2013-11-01)
- Re: Vibration API: clamp argument (from anssi.kostiainen@intel.com on 2013-11-01)
- [admin] Minutes 31 October 2013 teleconference (from Frederick.Hirsch@nokia.com on 2013-10-31)
- Re: Agenda - Distributed Meeting 31 October 2013 (Thursday) (from jean-claude.dufourd@telecom-paristech.fr on 2013-10-29)
- Agenda - Distributed Meeting 31 October 2013 (Thursday) (from Frederick.Hirsch@nokia.com on 2013-10-28)
- DAP-ISSUE-156: add the [Clamp] attribute to the argument of the vibrate method [Vibration API] (from sysbot+tracker@w3.org on 2013-10-22)
Related notes:
support from Dom, http://lists.w3.org/Archives/Public/public-device-apis/2013Oct/0149.html
Frederick Hirsch, 22 Oct 2013, 16:55:06[fjh]: add the [Clamp] attribute to the argument of the vibrate method ; http://www.w3.org/2009/dap/track/issues/156
31 Oct 2013, 14:08:03[fjh]: defer until decision made for WebIDL spec regarding support for this, still not supported
12 Dec 2013, 15:28:58Note that there is some concern that [Clamp] cannot be applied to the contents of a sequence:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23623
It seems even the desired syntax is not fully agreed.
thus defer until WebIDL spec has been updated with agreed support for [Clamp]
Display change log