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 14907 - It looks like you can pass the return value of setInterval to clearTimeout
Summary: It looks like you can pass the return value of setInterval to clearTimeout
Status: CLOSED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: 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
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-22 20:19 UTC by contributor
Modified: 2012-01-31 20:29 UTC (History)
6 users (show)

See Also:


Attachments

Description contributor 2011-11-22 20:19:46 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html
Multipage: http://www.whatwg.org/C#timers
Complete: http://www.whatwg.org/c#timers

Comment:
It looks like you can pass the return value of setInterval to clearTimeout

Posted from: 91.181.139.95 by ms2ger@gmail.com
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0a1) Gecko/20111001 Firefox/10.0a1
Comment 2 Simon Pieters 2011-11-23 10:11:35 UTC
and vice versa
Comment 3 Simon Pieters 2011-11-23 10:17:17 UTC
This also means that the return value for setTimeout and setInterval need to use the same counter.
Comment 4 Ian 'Hixie' Hickson 2011-12-07 22:49:03 UTC
Well that's just silly.
Comment 5 Ian 'Hixie' Hickson 2012-01-31 20:18:24 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:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter's comments.
Comment 6 contributor 2012-01-31 20:20:47 UTC
Checked in as WHATWG revision r6949.
Check-in comment: Turns out clearTimeout() and clearInterval() are synonyms! Who knew? Oh what a tangled Web we weave.
http://html5.org/tools/web-apps-tracker?from=6948&to=6949
Comment 7 Ms2ger 2012-01-31 20:29:54 UTC
Silly stuff.