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:
  1. Re: [vibration] issue status summary (from mvanouwerkerk@google.com on 2014-01-06)
  2. [vibration] issue status summary (from Frederick.Hirsch@nokia.com on 2014-01-03)
  3. [admin] Draft minutes teleconference 12 December 2013 (from Frederick.Hirsch@nokia.com on 2013-12-12)
  4. [admin] Agenda - Distributed Meeting 12 December2013 (from Frederick.Hirsch@nokia.com on 2013-12-11)
  5. Re: [admin] Agenda - Distributed Meeting 21 November 2013 (from jean-claude.dufourd@telecom-paristech.fr on 2013-11-21)
  6. [admin] Agenda - Distributed Meeting 21 November 2013 (from Frederick.Hirsch@nokia.com on 2013-11-21)
  7. [admin] draft minutes 7 November 2013 teleconference (from Frederick.Hirsch@nokia.com on 2013-11-07)
  8. Agenda - Distributed Meeting 7 November 2013 (Thursday) (from Frederick.Hirsch@nokia.com on 2013-11-05)
  9. [admin] Minutes 31 Oct 2013 (updated) (from Frederick.Hirsch@nokia.com on 2013-11-04)
  10. Re: Vibration API: clamp argument (from Frederick.Hirsch@nokia.com on 2013-11-01)
  11. Re: Vibration API: clamp argument (from anssi.kostiainen@intel.com on 2013-11-01)
  12. [admin] Minutes 31 October 2013 teleconference (from Frederick.Hirsch@nokia.com on 2013-10-31)
  13. Re: Agenda - Distributed Meeting 31 October 2013 (Thursday) (from jean-claude.dufourd@telecom-paristech.fr on 2013-10-29)
  14. Agenda - Distributed Meeting 31 October 2013 (Thursday) (from Frederick.Hirsch@nokia.com on 2013-10-28)
  15. 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:58

Note 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]

Frederick Hirsch, 3 Jan 2014, 20:28:49

Display change log ATOM feed


Anssi Kostiainen <anssi.kostiainen@intel.com>, Reilly Grant <reillyg@google.com>, Chairs, Fuqiao Xue <xfq@w3.org>, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 156.html,v 1.1 2019/11/08 08:58:14 carcone Exp $