[html5] r8535 - [e] (0) Move a setTimeout() requirement from prose to IDL. Fixing https://www.w3 [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Mar 7 14:55:24 PST 2014


Author: ianh
Date: 2014-03-07 14:55:23 -0800 (Fri, 07 Mar 2014)
New Revision: 8535

Modified:
   complete.html
   index
   source
Log:
[e] (0) Move a setTimeout() requirement from prose to IDL.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=24967
Affected topics: HTML Syntax and Parsing

Modified: complete.html
===================================================================
--- complete.html	2014-03-07 22:33:21 UTC (rev 8534)
+++ complete.html	2014-03-07 22:55:23 UTC (rev 8535)
@@ -73602,11 +73602,11 @@
 
   <pre class=idl>[NoInterfaceObject, Exposed=Window,Worker]
 interface <dfn id=windowtimers>WindowTimers</dfn> {
-  long <a href=#dom-windowtimers-settimeout title=dom-windowtimers-setTimeout>setTimeout</a>(<span>Function</span> handler, optional long timeout, any... arguments);
-  long <a href=#dom-windowtimers-settimeout title=dom-windowtimers-setTimeout>setTimeout</a>(DOMString handler, optional long timeout, any... arguments);
+  long <a href=#dom-windowtimers-settimeout title=dom-windowtimers-setTimeout>setTimeout</a>(<span>Function</span> handler, optional long timeout = 0, any... arguments);
+  long <a href=#dom-windowtimers-settimeout title=dom-windowtimers-setTimeout>setTimeout</a>(DOMString handler, optional long timeout = 0, any... arguments);
   void <a href=#dom-windowtimers-cleartimeout title=dom-windowtimers-clearTimeout>clearTimeout</a>(optional long handle = 0);
-  long <a href=#dom-windowtimers-setinterval title=dom-windowtimers-setInterval>setInterval</a>(<span>Function</span> handler, optional long timeout, any... arguments);
-  long <a href=#dom-windowtimers-setinterval title=dom-windowtimers-setInterval>setInterval</a>(DOMString handler, optional long timeout, any... arguments);
+  long <a href=#dom-windowtimers-setinterval title=dom-windowtimers-setInterval>setInterval</a>(<span>Function</span> handler, optional long timeout = 0, any... arguments);
+  long <a href=#dom-windowtimers-setinterval title=dom-windowtimers-setInterval>setInterval</a>(DOMString handler, optional long timeout = 0, any... arguments);
   void <a href=#dom-windowtimers-clearinterval title=dom-windowtimers-clearInterval>clearInterval</a>(optional long handle = 0);
 };
 <a href=#window>Window</a> implements <a href=#windowtimers>WindowTimers</a>;</pre>
@@ -73767,8 +73767,7 @@
 
     </ol></li>
 
-   <li><p>Let <var title="">timeout</var> be the second method argument, or zero if the argument was
-   omitted.</li>
+   <li><p>Let <var title="">timeout</var> be the second method argument.</li>
 
    <li><p>If the currently running <a href=#concept-task title=concept-task>task</a> is a task that was created
    by this algorithm, then let <var title="">nesting level</var> be the <a href=#concept-task title=concept-task>task</a>'s <a href=#timer-nesting-level>timer nesting level</a>. Otherwise, let <var title="">nesting level</var> be zero.</li>

Modified: index
===================================================================
--- index	2014-03-07 22:33:21 UTC (rev 8534)
+++ index	2014-03-07 22:55:23 UTC (rev 8535)
@@ -73602,11 +73602,11 @@
 
   <pre class=idl>[NoInterfaceObject, Exposed=Window,Worker]
 interface <dfn id=windowtimers>WindowTimers</dfn> {
-  long <a href=#dom-windowtimers-settimeout title=dom-windowtimers-setTimeout>setTimeout</a>(<span>Function</span> handler, optional long timeout, any... arguments);
-  long <a href=#dom-windowtimers-settimeout title=dom-windowtimers-setTimeout>setTimeout</a>(DOMString handler, optional long timeout, any... arguments);
+  long <a href=#dom-windowtimers-settimeout title=dom-windowtimers-setTimeout>setTimeout</a>(<span>Function</span> handler, optional long timeout = 0, any... arguments);
+  long <a href=#dom-windowtimers-settimeout title=dom-windowtimers-setTimeout>setTimeout</a>(DOMString handler, optional long timeout = 0, any... arguments);
   void <a href=#dom-windowtimers-cleartimeout title=dom-windowtimers-clearTimeout>clearTimeout</a>(optional long handle = 0);
-  long <a href=#dom-windowtimers-setinterval title=dom-windowtimers-setInterval>setInterval</a>(<span>Function</span> handler, optional long timeout, any... arguments);
-  long <a href=#dom-windowtimers-setinterval title=dom-windowtimers-setInterval>setInterval</a>(DOMString handler, optional long timeout, any... arguments);
+  long <a href=#dom-windowtimers-setinterval title=dom-windowtimers-setInterval>setInterval</a>(<span>Function</span> handler, optional long timeout = 0, any... arguments);
+  long <a href=#dom-windowtimers-setinterval title=dom-windowtimers-setInterval>setInterval</a>(DOMString handler, optional long timeout = 0, any... arguments);
   void <a href=#dom-windowtimers-clearinterval title=dom-windowtimers-clearInterval>clearInterval</a>(optional long handle = 0);
 };
 <a href=#window>Window</a> implements <a href=#windowtimers>WindowTimers</a>;</pre>
@@ -73767,8 +73767,7 @@
 
     </ol></li>
 
-   <li><p>Let <var title="">timeout</var> be the second method argument, or zero if the argument was
-   omitted.</li>
+   <li><p>Let <var title="">timeout</var> be the second method argument.</li>
 
    <li><p>If the currently running <a href=#concept-task title=concept-task>task</a> is a task that was created
    by this algorithm, then let <var title="">nesting level</var> be the <a href=#concept-task title=concept-task>task</a>'s <a href=#timer-nesting-level>timer nesting level</a>. Otherwise, let <var title="">nesting level</var> be zero.</li>

Modified: source
===================================================================
--- source	2014-03-07 22:33:21 UTC (rev 8534)
+++ source	2014-03-07 22:55:23 UTC (rev 8535)
@@ -82267,11 +82267,11 @@
 
   <pre class="idl">[NoInterfaceObject, Exposed=Window,Worker]
 interface <dfn>WindowTimers</dfn> {
-  long <span data-x="dom-windowtimers-setTimeout">setTimeout</span>(<span>Function</span> handler, optional long timeout, any... arguments);
-  long <span data-x="dom-windowtimers-setTimeout">setTimeout</span>(DOMString handler, optional long timeout, any... arguments);
+  long <span data-x="dom-windowtimers-setTimeout">setTimeout</span>(<span>Function</span> handler, optional long timeout = 0, any... arguments);
+  long <span data-x="dom-windowtimers-setTimeout">setTimeout</span>(DOMString handler, optional long timeout = 0, any... arguments);
   void <span data-x="dom-windowtimers-clearTimeout">clearTimeout</span>(optional long handle = 0);
-  long <span data-x="dom-windowtimers-setInterval">setInterval</span>(<span>Function</span> handler, optional long timeout, any... arguments);
-  long <span data-x="dom-windowtimers-setInterval">setInterval</span>(DOMString handler, optional long timeout, any... arguments);
+  long <span data-x="dom-windowtimers-setInterval">setInterval</span>(<span>Function</span> handler, optional long timeout = 0, any... arguments);
+  long <span data-x="dom-windowtimers-setInterval">setInterval</span>(DOMString handler, optional long timeout = 0, any... arguments);
   void <span data-x="dom-windowtimers-clearInterval">clearInterval</span>(optional long handle = 0);
 };
 <span>Window</span> implements <span>WindowTimers</span>;</pre>
@@ -82466,8 +82466,7 @@
 
    </li>
 
-   <li><p>Let <var data-x="">timeout</var> be the second method argument, or zero if the argument was
-   omitted.</p></li>
+   <li><p>Let <var data-x="">timeout</var> be the second method argument.</p></li>
 
    <li><p>If the currently running <span data-x="concept-task">task</span> is a task that was created
    by this algorithm, then let <var data-x="">nesting level</var> be the <span




More information about the Commit-Watchers mailing list