<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24778</bug_id>
          
          <creation_ts>2014-02-22 23:22:34 +0000</creation_ts>
          <short_desc>clearInterval/setInterval with no argument need to silently no-op, not throw</short_desc>
          <delta_ts>2014-02-24 18:45:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#timers</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>101206</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-02-22 23:22:34 +0000</bug_when>
    <thetext>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
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
clearInterval/setInterval with no argument need to silently no-op, not throw

Posted from: 98.110.194.132 by bzbarsky@mit.edu
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:30.0) Gecko/20100101 Firefox/30.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101207</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-02-22 23:23:57 +0000</bug_when>
    <thetext>See https://bugzilla.mozilla.org/show_bug.cgi?id=973849 and duplicates.

The fix I&apos;m doing for Gecko is this:

-  void clearTimeout(long handle);
+  void clearTimeout(optional long handle = 0);
-  void clearInterval(long handle);
+  void clearInterval(optional long handle = 0);

Since 0 is never a valid handle value, this automatically makes the methods no-ops when called with no arguments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101252</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-02-24 18:45:08 +0000</bug_when>
    <thetext>done as suggested</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>