[html5] r6949 - [giow] (3) Turns out clearTimeout() and clearInterval() are synonyms! Who knew? [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Jan 31 12:20:30 PST 2012


Author: ianh
Date: 2012-01-31 12:20:24 -0800 (Tue, 31 Jan 2012)
New Revision: 6949

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Turns out clearTimeout() and clearInterval() are synonyms! Who knew? Oh what a tangled Web we weave.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=14907
Affected topics: HTML, Web Workers

Modified: complete.html
===================================================================
--- complete.html	2012-01-31 20:00:16 UTC (rev 6948)
+++ complete.html	2012-01-31 20:20:24 UTC (rev 6949)
@@ -64961,8 +64961,7 @@
 
    <li><p>If the <code><a href=#document>Document</a></code>'s <var title=concept-document-salvageable><a href=#concept-document-salvageable>salvageable</a></var> state is
    false, empty the <code><a href=#document>Document</a></code>'s <code><a href=#window>Window</a></code>'s
-   <a href=#list-of-active-timeouts>list of active timeouts</a> and its <a href=#list-of-active-intervals>list of active
-   intervals</a>.</li>
+   <a href=#list-of-active-timers>list of active timers</a>.</li>
 
   </ol><h5 id=event-definition><span class=secno>6.5.11.1 </span>Event definition</h5>
 
@@ -68995,24 +68994,24 @@
   </p>
 
   <p>Each object that implements the <code><a href=#windowtimers>WindowTimers</a></code>
-  interface has a <dfn id=list-of-active-timeouts>list of active timeouts</dfn> and a <dfn id=list-of-active-intervals>list
-  of active intervals</dfn>. Each entry in these lists is identified
-  by a number, which must be unique within its list for the lifetime
-  of the object that implements the <code><a href=#windowtimers>WindowTimers</a></code>
-  interface.</p>
+  interface has a <dfn id=list-of-active-timers>list of active timers</dfn>. Each entry in this
+  lists is identified by a number, which must be unique within the
+  list for the lifetime of the object that implements the
+  <code><a href=#windowtimers>WindowTimers</a></code> interface.</p>
 
   <hr><p>The <dfn id=dom-windowtimers-settimeout title=dom-windowtimers-setTimeout><code>setTimeout()</code></dfn>
   method must run the following steps:
 
-  <ol><li><p>Let <var title="">handle</var> be a user-agent-defined integer
-   that is greater than zero that will identify the timeout to be set
-   by this call.</li>
+  <ol><li><p>Let <var title="">handle</var> be a user-agent-defined
+   integer that is greater than zero that will identify the timeout to
+   be set by this call in the <a href=#list-of-active-timers>list of active
+   timers</a>.</li>
 
-   <li><p>Add an entry to the <a href=#list-of-active-timeouts>list of active timeouts</a> for
+   <li><p>Add an entry to the <a href=#list-of-active-timers>list of active timers</a> for
    <var title="">handle</var>.</li>
 
-   <li><p><a href=#get-the-timed-task>Get the timed task</a> <var title="">handle</var> in
-   the <a href=#list-of-active-timeouts>list of active timeouts</a>, and let <var title="">task</var> be the result.</li>
+   <li><p><a href=#get-the-timed-task>Get the timed task</a> <var title="">handle</var>
+   in the <a href=#list-of-active-timers>list of active timers</a>, and let <var title="">task</var> be the result.</li>
 
    <li><p>Let <var title="">timeout</var> be the second argument to
    the method, or zero if the argument was omitted.</li>
@@ -69089,28 +69088,19 @@
 
    <li><p><a href=#queue-a-task title="queue a task">Queue</a> the <var title="">task</var> <a href=#concept-task title=concept-task>task</a>.</li>
 
-  </ol><p>The <dfn id=dom-windowtimers-cleartimeout title=dom-windowtimers-clearTimeout><code>clearTimeout()</code></dfn>
-  method must clear the entry identified as <var title="">handle</var>
-  from the <a href=#list-of-active-timeouts>list of active timeouts</a> of the
-  <code><a href=#windowtimers>WindowTimers</a></code> object on which the method was invoked,
-  where <var title="">handle</var> is the argument passed to the
-  method, if any. (If <var title="">handle</var> does not identify an
-  entry in the <a href=#list-of-active-timeouts>list of active timeouts</a> of the
-  <code><a href=#windowtimers>WindowTimers</a></code> object on which the method was invoked,
-  the method does nothing.)</p>
-
-  <hr><p>The <dfn id=dom-windowtimers-setinterval title=dom-windowtimers-setInterval><code>setInterval()</code></dfn>
+  </ol><hr><p>The <dfn id=dom-windowtimers-setinterval title=dom-windowtimers-setInterval><code>setInterval()</code></dfn>
   method must run the following steps:
 
-  <ol><li><p>Let <var title="">handle</var> be a user-agent-defined integer
-   that is greater than zero that will identify the interval to be set
-   by this call.</li>
+  <ol><li><p>Let <var title="">handle</var> be a user-agent-defined
+   integer that is greater than zero that will identify the timeout to
+   be set by this call in the <a href=#list-of-active-timers>list of active
+   timers</a>.</li>
 
-   <li><p>Add an entry to the <a href=#list-of-active-intervals>list of active intervals</a> for
+   <li><p>Add an entry to the <a href=#list-of-active-timers>list of active timers</a> for
    <var title="">handle</var>.</li>
 
-   <li><p><a href=#get-the-timed-task>Get the timed task</a> <var title="">handle</var> in
-   the <a href=#list-of-active-intervals>list of active intervals</a>, and let <var title="">task</var> be the result.</li>
+   <li><p><a href=#get-the-timed-task>Get the timed task</a> <var title="">handle</var>
+   in the <a href=#list-of-active-timers>list of active timers</a>, and let <var title="">task</var> be the result.</li>
 
    <li><p>Let <var title="">timeout</var> be the second argument to
    the method, or zero if the argument was omitted.</li>
@@ -69162,14 +69152,14 @@
 
    <li><p>Return to the step labeled <i>wait</i>.</li>
 
-  </ol><p>The <dfn id=dom-windowtimers-clearinterval title=dom-windowtimers-clearInterval><code>clearInterval()</code></dfn>
-  method must clear the entry identified as <var title="">handle</var>
-  from the <a href=#list-of-active-intervals>list of active intervals</a> of the
+  </ol><hr><p>The <dfn id=dom-windowtimers-cleartimeout title=dom-windowtimers-clearTimeout><code>clearTimeout()</code></dfn>
+  and <dfn id=dom-windowtimers-clearinterval title=dom-windowtimers-clearInterval><code>clearInterval()</code></dfn>
+  methods must clear the entry identified as <var title="">handle</var> from the <a href=#list-of-active-timers>list of active timers</a> of
+  the <code><a href=#windowtimers>WindowTimers</a></code> object on which the method was
+  invoked, where <var title="">handle</var> is the argument passed to
+  the method, if any. (If <var title="">handle</var> does not identify
+  an entry in the <a href=#list-of-active-timers>list of active timers</a> of the
   <code><a href=#windowtimers>WindowTimers</a></code> object on which the method was invoked,
-  where <var title="">handle</var> is the argument passed to the
-  method, if any. (If <var title="">handle</var> does not identify an
-  entry in the <a href=#list-of-active-intervals>list of active intervals</a> of the
-  <code><a href=#windowtimers>WindowTimers</a></code> object on which the method was invoked,
   the method does nothing.)</p>
 
   <hr><p>The <dfn id=method-context>method context</dfn>, when referenced by the algorithms
@@ -75736,9 +75726,9 @@
 
    <li>
 
-    <p>Empty the <var title="">worker global scope</var>'s <a href=#list-of-active-timeouts>list
-    of active timeouts</a> and its <a href=#list-of-active-intervals>list of active
-    intervals</a>.</p>
+    <p>Empty the <var title="">worker global scope</var>'s <a href=#list-of-active-timers>list
+    of active timers</a> and its <span>list of active
+    intervals</span>.</p>
 
    </li>
 

Modified: index
===================================================================
--- index	2012-01-31 20:00:16 UTC (rev 6948)
+++ index	2012-01-31 20:20:24 UTC (rev 6949)
@@ -64961,8 +64961,7 @@
 
    <li><p>If the <code><a href=#document>Document</a></code>'s <var title=concept-document-salvageable><a href=#concept-document-salvageable>salvageable</a></var> state is
    false, empty the <code><a href=#document>Document</a></code>'s <code><a href=#window>Window</a></code>'s
-   <a href=#list-of-active-timeouts>list of active timeouts</a> and its <a href=#list-of-active-intervals>list of active
-   intervals</a>.</li>
+   <a href=#list-of-active-timers>list of active timers</a>.</li>
 
   </ol><h5 id=event-definition><span class=secno>6.5.11.1 </span>Event definition</h5>
 
@@ -68995,24 +68994,24 @@
   </p>
 
   <p>Each object that implements the <code><a href=#windowtimers>WindowTimers</a></code>
-  interface has a <dfn id=list-of-active-timeouts>list of active timeouts</dfn> and a <dfn id=list-of-active-intervals>list
-  of active intervals</dfn>. Each entry in these lists is identified
-  by a number, which must be unique within its list for the lifetime
-  of the object that implements the <code><a href=#windowtimers>WindowTimers</a></code>
-  interface.</p>
+  interface has a <dfn id=list-of-active-timers>list of active timers</dfn>. Each entry in this
+  lists is identified by a number, which must be unique within the
+  list for the lifetime of the object that implements the
+  <code><a href=#windowtimers>WindowTimers</a></code> interface.</p>
 
   <hr><p>The <dfn id=dom-windowtimers-settimeout title=dom-windowtimers-setTimeout><code>setTimeout()</code></dfn>
   method must run the following steps:
 
-  <ol><li><p>Let <var title="">handle</var> be a user-agent-defined integer
-   that is greater than zero that will identify the timeout to be set
-   by this call.</li>
+  <ol><li><p>Let <var title="">handle</var> be a user-agent-defined
+   integer that is greater than zero that will identify the timeout to
+   be set by this call in the <a href=#list-of-active-timers>list of active
+   timers</a>.</li>
 
-   <li><p>Add an entry to the <a href=#list-of-active-timeouts>list of active timeouts</a> for
+   <li><p>Add an entry to the <a href=#list-of-active-timers>list of active timers</a> for
    <var title="">handle</var>.</li>
 
-   <li><p><a href=#get-the-timed-task>Get the timed task</a> <var title="">handle</var> in
-   the <a href=#list-of-active-timeouts>list of active timeouts</a>, and let <var title="">task</var> be the result.</li>
+   <li><p><a href=#get-the-timed-task>Get the timed task</a> <var title="">handle</var>
+   in the <a href=#list-of-active-timers>list of active timers</a>, and let <var title="">task</var> be the result.</li>
 
    <li><p>Let <var title="">timeout</var> be the second argument to
    the method, or zero if the argument was omitted.</li>
@@ -69089,28 +69088,19 @@
 
    <li><p><a href=#queue-a-task title="queue a task">Queue</a> the <var title="">task</var> <a href=#concept-task title=concept-task>task</a>.</li>
 
-  </ol><p>The <dfn id=dom-windowtimers-cleartimeout title=dom-windowtimers-clearTimeout><code>clearTimeout()</code></dfn>
-  method must clear the entry identified as <var title="">handle</var>
-  from the <a href=#list-of-active-timeouts>list of active timeouts</a> of the
-  <code><a href=#windowtimers>WindowTimers</a></code> object on which the method was invoked,
-  where <var title="">handle</var> is the argument passed to the
-  method, if any. (If <var title="">handle</var> does not identify an
-  entry in the <a href=#list-of-active-timeouts>list of active timeouts</a> of the
-  <code><a href=#windowtimers>WindowTimers</a></code> object on which the method was invoked,
-  the method does nothing.)</p>
-
-  <hr><p>The <dfn id=dom-windowtimers-setinterval title=dom-windowtimers-setInterval><code>setInterval()</code></dfn>
+  </ol><hr><p>The <dfn id=dom-windowtimers-setinterval title=dom-windowtimers-setInterval><code>setInterval()</code></dfn>
   method must run the following steps:
 
-  <ol><li><p>Let <var title="">handle</var> be a user-agent-defined integer
-   that is greater than zero that will identify the interval to be set
-   by this call.</li>
+  <ol><li><p>Let <var title="">handle</var> be a user-agent-defined
+   integer that is greater than zero that will identify the timeout to
+   be set by this call in the <a href=#list-of-active-timers>list of active
+   timers</a>.</li>
 
-   <li><p>Add an entry to the <a href=#list-of-active-intervals>list of active intervals</a> for
+   <li><p>Add an entry to the <a href=#list-of-active-timers>list of active timers</a> for
    <var title="">handle</var>.</li>
 
-   <li><p><a href=#get-the-timed-task>Get the timed task</a> <var title="">handle</var> in
-   the <a href=#list-of-active-intervals>list of active intervals</a>, and let <var title="">task</var> be the result.</li>
+   <li><p><a href=#get-the-timed-task>Get the timed task</a> <var title="">handle</var>
+   in the <a href=#list-of-active-timers>list of active timers</a>, and let <var title="">task</var> be the result.</li>
 
    <li><p>Let <var title="">timeout</var> be the second argument to
    the method, or zero if the argument was omitted.</li>
@@ -69162,14 +69152,14 @@
 
    <li><p>Return to the step labeled <i>wait</i>.</li>
 
-  </ol><p>The <dfn id=dom-windowtimers-clearinterval title=dom-windowtimers-clearInterval><code>clearInterval()</code></dfn>
-  method must clear the entry identified as <var title="">handle</var>
-  from the <a href=#list-of-active-intervals>list of active intervals</a> of the
+  </ol><hr><p>The <dfn id=dom-windowtimers-cleartimeout title=dom-windowtimers-clearTimeout><code>clearTimeout()</code></dfn>
+  and <dfn id=dom-windowtimers-clearinterval title=dom-windowtimers-clearInterval><code>clearInterval()</code></dfn>
+  methods must clear the entry identified as <var title="">handle</var> from the <a href=#list-of-active-timers>list of active timers</a> of
+  the <code><a href=#windowtimers>WindowTimers</a></code> object on which the method was
+  invoked, where <var title="">handle</var> is the argument passed to
+  the method, if any. (If <var title="">handle</var> does not identify
+  an entry in the <a href=#list-of-active-timers>list of active timers</a> of the
   <code><a href=#windowtimers>WindowTimers</a></code> object on which the method was invoked,
-  where <var title="">handle</var> is the argument passed to the
-  method, if any. (If <var title="">handle</var> does not identify an
-  entry in the <a href=#list-of-active-intervals>list of active intervals</a> of the
-  <code><a href=#windowtimers>WindowTimers</a></code> object on which the method was invoked,
   the method does nothing.)</p>
 
   <hr><p>The <dfn id=method-context>method context</dfn>, when referenced by the algorithms
@@ -75736,9 +75726,9 @@
 
    <li>
 
-    <p>Empty the <var title="">worker global scope</var>'s <a href=#list-of-active-timeouts>list
-    of active timeouts</a> and its <a href=#list-of-active-intervals>list of active
-    intervals</a>.</p>
+    <p>Empty the <var title="">worker global scope</var>'s <a href=#list-of-active-timers>list
+    of active timers</a> and its <span>list of active
+    intervals</span>.</p>
 
    </li>
 

Modified: source
===================================================================
--- source	2012-01-31 20:00:16 UTC (rev 6948)
+++ source	2012-01-31 20:20:24 UTC (rev 6949)
@@ -75957,8 +75957,7 @@
    <li><p>If the <code>Document</code>'s <var
    title="concept-document-salvageable">salvageable</var> state is
    false, empty the <code>Document</code>'s <code>Window</code>'s
-   <span>list of active timeouts</span> and its <span>list of active
-   intervals</span>.</p></li>
+   <span>list of active timers</span>.</p></li>
 
   </ol>
 
@@ -80672,11 +80671,10 @@
   </p>
 
   <p>Each object that implements the <code>WindowTimers</code>
-  interface has a <dfn>list of active timeouts</dfn> and a <dfn>list
-  of active intervals</dfn>. Each entry in these lists is identified
-  by a number, which must be unique within its list for the lifetime
-  of the object that implements the <code>WindowTimers</code>
-  interface.</p>
+  interface has a <dfn>list of active timers</dfn>. Each entry in this
+  lists is identified by a number, which must be unique within the
+  list for the lifetime of the object that implements the
+  <code>WindowTimers</code> interface.</p>
 
   <hr>
 
@@ -80686,15 +80684,16 @@
 
   <ol>
 
-   <li><p>Let <var title="">handle</var> be a user-agent-defined integer
-   that is greater than zero that will identify the timeout to be set
-   by this call.</p></li>
+   <li><p>Let <var title="">handle</var> be a user-agent-defined
+   integer that is greater than zero that will identify the timeout to
+   be set by this call in the <span>list of active
+   timers</span>.</p></li>
 
-   <li><p>Add an entry to the <span>list of active timeouts</span> for
+   <li><p>Add an entry to the <span>list of active timers</span> for
    <var title="">handle</var>.</p></li>
 
-   <li><p><span>Get the timed task</span> <var title="">handle</var> in
-   the <span>list of active timeouts</span>, and let <var
+   <li><p><span>Get the timed task</span> <var title="">handle</var>
+   in the <span>list of active timers</span>, and let <var
    title="">task</var> be the result.</p></li>
 
    <li><p>Let <var title="">timeout</var> be the second argument to
@@ -80779,17 +80778,6 @@
 
   </ol>
 
-  <p>The <dfn
-  title="dom-windowtimers-clearTimeout"><code>clearTimeout()</code></dfn>
-  method must clear the entry identified as <var title="">handle</var>
-  from the <span>list of active timeouts</span> of the
-  <code>WindowTimers</code> object on which the method was invoked,
-  where <var title="">handle</var> is the argument passed to the
-  method, if any. (If <var title="">handle</var> does not identify an
-  entry in the <span>list of active timeouts</span> of the
-  <code>WindowTimers</code> object on which the method was invoked,
-  the method does nothing.)</p>
-
   <hr>
 
   <p>The <dfn
@@ -80798,15 +80786,16 @@
 
   <ol>
 
-   <li><p>Let <var title="">handle</var> be a user-agent-defined integer
-   that is greater than zero that will identify the interval to be set
-   by this call.</p></li>
+   <li><p>Let <var title="">handle</var> be a user-agent-defined
+   integer that is greater than zero that will identify the timeout to
+   be set by this call in the <span>list of active
+   timers</span>.</p></li>
 
-   <li><p>Add an entry to the <span>list of active intervals</span> for
+   <li><p>Add an entry to the <span>list of active timers</span> for
    <var title="">handle</var>.</p></li>
 
-   <li><p><span>Get the timed task</span> <var title="">handle</var> in
-   the <span>list of active intervals</span>, and let <var
+   <li><p><span>Get the timed task</span> <var title="">handle</var>
+   in the <span>list of active timers</span>, and let <var
    title="">task</var> be the result.</p></li>
 
    <li><p>Let <var title="">timeout</var> be the second argument to
@@ -80864,15 +80853,19 @@
 
   </ol>
 
+  <hr>
+
   <p>The <dfn
+  title="dom-windowtimers-clearTimeout"><code>clearTimeout()</code></dfn>
+  and <dfn
   title="dom-windowtimers-clearInterval"><code>clearInterval()</code></dfn>
-  method must clear the entry identified as <var title="">handle</var>
-  from the <span>list of active intervals</span> of the
+  methods must clear the entry identified as <var
+  title="">handle</var> from the <span>list of active timers</span> of
+  the <code>WindowTimers</code> object on which the method was
+  invoked, where <var title="">handle</var> is the argument passed to
+  the method, if any. (If <var title="">handle</var> does not identify
+  an entry in the <span>list of active timers</span> of the
   <code>WindowTimers</code> object on which the method was invoked,
-  where <var title="">handle</var> is the argument passed to the
-  method, if any. (If <var title="">handle</var> does not identify an
-  entry in the <span>list of active intervals</span> of the
-  <code>WindowTimers</code> object on which the method was invoked,
   the method does nothing.)</p>
 
   <hr>
@@ -87764,7 +87757,7 @@
    <li>
 
     <p>Empty the <var title="">worker global scope</var>'s <span>list
-    of active timeouts</span> and its <span>list of active
+    of active timers</span> and its <span>list of active
     intervals</span>.</p>
 
    </li>




More information about the Commit-Watchers mailing list