Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Hixie committed Oct 24, 2011
1 parent 2cf56b3 commit 0d9418a
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 70 deletions.
35 changes: 14 additions & 21 deletions complete.html
Expand Up @@ -69862,15 +69862,21 @@ <h3 id=timers><span class=secno>7.3 </span>Timers</h3>

<pre class=idl>[NoInterfaceObject]
interface <dfn id=windowtimers>WindowTimers</dfn> {
long <a href=#dom-windowtimers-settimeout title=dom-windowtimers-setTimeout>setTimeout</a>(Function handler, optional float timeout, any... args);
long <a href=#dom-windowtimers-settimeout title=dom-windowtimers-setTimeout>setTimeout</a>([AllowAny] DOMString handler, optional float timeout, any... args);
long <a href=#dom-windowtimers-settimeout title=dom-windowtimers-setTimeout>setTimeout</a>(Function handler, optional long timeout, any... args);
long <a href=#dom-windowtimers-settimeout title=dom-windowtimers-setTimeout>setTimeout</a>([AllowAny] DOMString handler, optional long timeout, any... args);
void <a href=#dom-windowtimers-cleartimeout title=dom-windowtimers-clearTimeout>clearTimeout</a>(long handle);
long <a href=#dom-windowtimers-setinterval title=dom-windowtimers-setInterval>setInterval</a>(Function handler, optional float timeout, any... args);
long <a href=#dom-windowtimers-setinterval title=dom-windowtimers-setInterval>setInterval</a>([AllowAny] DOMString handler, optional float timeout, any... args);
long <a href=#dom-windowtimers-setinterval title=dom-windowtimers-setInterval>setInterval</a>(Function handler, optional long timeout, any... args);
long <a href=#dom-windowtimers-setinterval title=dom-windowtimers-setInterval>setInterval</a>([AllowAny] DOMString handler, optional long timeout, any... args);
void <a href=#dom-windowtimers-clearinterval title=dom-windowtimers-clearInterval>clearInterval</a>(long handle);
};
<a href=#window>Window</a> implements <a href=#windowtimers>WindowTimers</a>;</pre>

<!-- Demonstrating the need for wrapping of the timeout argument value treated as long rather than clamping or treating as double:
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1228
Demonstrating the need for the timeout argument to be signed rather than unsigned:
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1229
-->

<dl class=domintro><dt><var title="">handle</var> = <var title="">window</var> . <code title=dom-windowtimers-setTimeout><a href=#dom-windowtimers-settimeout>setTimeout</a></code>( <var title="">handler</var> [, <var title="">timeout</var> [, <var title="">arguments</var>... ] ] )</dt>

<dd>
Expand Down Expand Up @@ -69954,7 +69960,8 @@ <h3 id=timers><span class=secno>7.3 </span>Timers</h3>
<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-timeout>Get the timeout</a>, and let <var title="">timeout</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>

<li><p>If the currently running <a href=#concept-task title=concept-task>task</a> is a task that was created by the
<code title=dom-windowtimers-setTimeout><a href=#dom-windowtimers-settimeout>setTimeout()</a></code>
Expand Down Expand Up @@ -70050,7 +70057,8 @@ <h3 id=timers><span class=secno>7.3 </span>Timers</h3>
<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-timeout>Get the timeout</a>, and let <var title="">timeout</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>

<li><p>If <var title="">timeout</var> is less than 4, then
increase <var title="">timeout</var> to 4.</li> <!-- (but see
Expand Down Expand Up @@ -70178,21 +70186,6 @@ <h3 id=timers><span class=secno>7.3 </span>Timers</h3>
if the entry for <var title="">handle</var> in <var title="">list</var> has been cleared, and if it has not, <a href=#create-a-script title="create a script">creates a script</a> using <var title="">script source</var> as the script source, <var title="">scripting language</var> as the scripting language, <var title="">global object</var> as the global object, <var title="">browsing context</var> as the browsing context, <var title="">document</var> as the document, <var title="">character
encoding</var> as the URL character encoding, and <var title="">base URL</var> as the base URL.</li>

</ol><p>When the above methods are to <dfn id=get-the-timeout>get the timeout</dfn>, they
must run the following steps:</p>

<ol><li><p>Let <var title="">timeout</var> be the second argument to
the method, or zero if the argument was omitted.</li>

<li><p>If <var title="">timeout</var> is an Infinity value, a
Not-a-Number (NaN) value, or negative, let <var title="">timeout</var> be zero.</li>

<li><p>Round <var title="">timeout</var> down to the nearest
integer, and let <var title="">timeout</var> be the
result.</li>

<li><p>Return <var title="">timeout</var>.</li>

</ol><hr><p>The <a href=#task-source>task source</a> for these <a href=#concept-task title=concept-task>tasks</a> is the <dfn id=timer-task-source>timer task
source</dfn>.</p>

Expand Down
35 changes: 14 additions & 21 deletions index
Expand Up @@ -69862,15 +69862,21 @@ interface <dfn id=windowbase64>WindowBase64</dfn> {

<pre class=idl>[NoInterfaceObject]
interface <dfn id=windowtimers>WindowTimers</dfn> {
long <a href=#dom-windowtimers-settimeout title=dom-windowtimers-setTimeout>setTimeout</a>(Function handler, optional float timeout, any... args);
long <a href=#dom-windowtimers-settimeout title=dom-windowtimers-setTimeout>setTimeout</a>([AllowAny] DOMString handler, optional float timeout, any... args);
long <a href=#dom-windowtimers-settimeout title=dom-windowtimers-setTimeout>setTimeout</a>(Function handler, optional long timeout, any... args);
long <a href=#dom-windowtimers-settimeout title=dom-windowtimers-setTimeout>setTimeout</a>([AllowAny] DOMString handler, optional long timeout, any... args);
void <a href=#dom-windowtimers-cleartimeout title=dom-windowtimers-clearTimeout>clearTimeout</a>(long handle);
long <a href=#dom-windowtimers-setinterval title=dom-windowtimers-setInterval>setInterval</a>(Function handler, optional float timeout, any... args);
long <a href=#dom-windowtimers-setinterval title=dom-windowtimers-setInterval>setInterval</a>([AllowAny] DOMString handler, optional float timeout, any... args);
long <a href=#dom-windowtimers-setinterval title=dom-windowtimers-setInterval>setInterval</a>(Function handler, optional long timeout, any... args);
long <a href=#dom-windowtimers-setinterval title=dom-windowtimers-setInterval>setInterval</a>([AllowAny] DOMString handler, optional long timeout, any... args);
void <a href=#dom-windowtimers-clearinterval title=dom-windowtimers-clearInterval>clearInterval</a>(long handle);
};
<a href=#window>Window</a> implements <a href=#windowtimers>WindowTimers</a>;</pre>

<!-- Demonstrating the need for wrapping of the timeout argument value treated as long rather than clamping or treating as double:
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1228
Demonstrating the need for the timeout argument to be signed rather than unsigned:
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1229
-->

<dl class=domintro><dt><var title="">handle</var> = <var title="">window</var> . <code title=dom-windowtimers-setTimeout><a href=#dom-windowtimers-settimeout>setTimeout</a></code>( <var title="">handler</var> [, <var title="">timeout</var> [, <var title="">arguments</var>... ] ] )</dt>

<dd>
Expand Down Expand Up @@ -69954,7 +69960,8 @@ interface <dfn id=windowtimers>WindowTimers</dfn> {
<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-timeout>Get the timeout</a>, and let <var title="">timeout</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>

<li><p>If the currently running <a href=#concept-task title=concept-task>task</a> is a task that was created by the
<code title=dom-windowtimers-setTimeout><a href=#dom-windowtimers-settimeout>setTimeout()</a></code>
Expand Down Expand Up @@ -70050,7 +70057,8 @@ setTimeout({ toString: function () {
<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-timeout>Get the timeout</a>, and let <var title="">timeout</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>

<li><p>If <var title="">timeout</var> is less than 4, then
increase <var title="">timeout</var> to 4.</li> <!-- (but see
Expand Down Expand Up @@ -70178,21 +70186,6 @@ setTimeout({ toString: function () {
if the entry for <var title="">handle</var> in <var title="">list</var> has been cleared, and if it has not, <a href=#create-a-script title="create a script">creates a script</a> using <var title="">script source</var> as the script source, <var title="">scripting language</var> as the scripting language, <var title="">global object</var> as the global object, <var title="">browsing context</var> as the browsing context, <var title="">document</var> as the document, <var title="">character
encoding</var> as the URL character encoding, and <var title="">base URL</var> as the base URL.</li>

</ol><p>When the above methods are to <dfn id=get-the-timeout>get the timeout</dfn>, they
must run the following steps:</p>

<ol><li><p>Let <var title="">timeout</var> be the second argument to
the method, or zero if the argument was omitted.</li>

<li><p>If <var title="">timeout</var> is an Infinity value, a
Not-a-Number (NaN) value, or negative, let <var title="">timeout</var> be zero.</li>

<li><p>Round <var title="">timeout</var> down to the nearest
integer, and let <var title="">timeout</var> be the
result.</li>

<li><p>Return <var title="">timeout</var>.</li>

</ol><hr><p>The <a href=#task-source>task source</a> for these <a href=#concept-task title=concept-task>tasks</a> is the <dfn id=timer-task-source>timer task
source</dfn>.</p>

Expand Down
42 changes: 14 additions & 28 deletions source
Expand Up @@ -79484,15 +79484,21 @@ interface <dfn>WindowBase64</dfn> {

<pre class="idl">[NoInterfaceObject]
interface <dfn>WindowTimers</dfn> {
long <span title="dom-windowtimers-setTimeout">setTimeout</span>(Function handler, optional float timeout, any... args);
long <span title="dom-windowtimers-setTimeout">setTimeout</span>([AllowAny] DOMString handler, optional float timeout, any... args);
long <span title="dom-windowtimers-setTimeout">setTimeout</span>(Function handler, optional long timeout, any... args);
long <span title="dom-windowtimers-setTimeout">setTimeout</span>([AllowAny] DOMString handler, optional long timeout, any... args);
void <span title="dom-windowtimers-clearTimeout">clearTimeout</span>(long handle);
long <span title="dom-windowtimers-setInterval">setInterval</span>(Function handler, optional float timeout, any... args);
long <span title="dom-windowtimers-setInterval">setInterval</span>([AllowAny] DOMString handler, optional float timeout, any... args);
long <span title="dom-windowtimers-setInterval">setInterval</span>(Function handler, optional long timeout, any... args);
long <span title="dom-windowtimers-setInterval">setInterval</span>([AllowAny] DOMString handler, optional long timeout, any... args);
void <span title="dom-windowtimers-clearInterval">clearInterval</span>(long handle);
};
<span>Window</span> implements <span>WindowTimers</span>;</pre>

<!-- Demonstrating the need for wrapping of the timeout argument value treated as long rather than clamping or treating as double:
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1228
Demonstrating the need for the timeout argument to be signed rather than unsigned:
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1229
-->

<dl class="domintro">

<dt><var title="">handle</var> = <var title="">window</var> . <code title="dom-windowtimers-setTimeout">setTimeout</code>( <var title="">handler</var> [, <var title="">timeout</var> [, <var title="">arguments</var>... ] ] )</dt>
Expand Down Expand Up @@ -79593,8 +79599,8 @@ interface <dfn>WindowTimers</dfn> {
the <span>list of active timeouts</span>, and let <var
title="">task</var> be the result.</p></li>

<li><p><span>Get the timeout</span>, and let <var
title="">timeout</var> be the result.</p></li>
<li><p>Let <var title="">timeout</var> be the second argument to
the method, or zero if the argument was omitted.</p></li>

<li><p>If the currently running <span
title="concept-task">task</span> is a task that was created by the
Expand Down Expand Up @@ -79704,8 +79710,8 @@ setTimeout({ toString: function () {
the <span>list of active intervals</span>, and let <var
title="">task</var> be the result.</p></li>

<li><p><span>Get the timeout</span>, and let <var
title="">timeout</var> be the result.</p></li>
<li><p>Let <var title="">timeout</var> be the second argument to
the method, or zero if the argument was omitted.</p></li>

<li><p>If <var title="">timeout</var> is less than 4, then
increase <var title="">timeout</var> to 4.</p></li> <!-- (but see
Expand Down Expand Up @@ -79858,26 +79864,6 @@ setTimeout({ toString: function () {

</ol>

<p>When the above methods are to <dfn>get the timeout</dfn>, they
must run the following steps:</p>

<ol>

<li><p>Let <var title="">timeout</var> be the second argument to
the method, or zero if the argument was omitted.</p></li>

<li><p>If <var title="">timeout</var> is an Infinity value, a
Not-a-Number (NaN) value, or negative, let <var
title="">timeout</var> be zero.</p></li>

<li><p>Round <var title="">timeout</var> down to the nearest
integer, and let <var title="">timeout</var> be the
result.</p></li>

<li><p>Return <var title="">timeout</var>.</p></li>

</ol>

<hr>

<p>The <span>task source</span> for these <span
Expand Down

0 comments on commit 0d9418a

Please sign in to comment.