This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 12285 - setInterval should clamp to 4ms like setTimeout does, not 10ms
Summary: setInterval should clamp to 4ms like setTimeout does, not 10ms
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
Depends on:
Reported: 2011-03-10 23:09 UTC by contributor
Modified: 2011-08-04 05:14 UTC (History)
7 users (show)

See Also:


Description contributor 2011-03-10 23:09:21 UTC

setInterval should clamp to 4ms like setTimeout does, not 10ms

Posted from:
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b13pre) Gecko/20110303 Firefox/4.0b13pre
Comment 1 Ian 'Hixie' Hickson 2011-05-07 19:11:00 UTC
Comment 2 Boris Zbarsky 2011-05-07 20:20:05 UTC
Because there is no point to having them inconsistent: wages will just use setTimeout all the time.  And because as far as I know every UA which lowered the clamp from 10ms lowered both timeouts and intervals.
Comment 3 Ian 'Hixie' Hickson 2011-05-10 03:45:13 UTC
Interesting. I'm pretty sure when I was speccing this that only the timeout clamp had been lowered in the UAs that lowered the clamp. I'll have to investigate closer.
Comment 4 Boris Zbarsky 2011-05-10 04:14:34 UTC seems to show me the 4ms clamp in Firefox current, IE9, Chrome current.
Comment 5 Ian 'Hixie' Hickson 2011-08-03 23:54:10 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter's comments.
Comment 6 contributor 2011-08-03 23:55:04 UTC
Checked in as WHATWG revision r6362.
Check-in comment: Make setInterval() clamp at 4ms as well.
Comment 7 Michael[tm] Smith 2011-08-04 05:14:30 UTC
mass-move component to LC1