[html5] r6737 - [giow] (3) Compatibility. http://software.hixie.ch/utilities/js/live-dom-viewer/ [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Oct 24 16:15:29 PDT 2011


Author: ianh
Date: 2011-10-24 16:15:28 -0700 (Mon, 24 Oct 2011)
New Revision: 6737

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Compatibility. http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1228
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=14469

Modified: complete.html
===================================================================
--- complete.html	2011-10-24 23:04:52 UTC (rev 6736)
+++ complete.html	2011-10-24 23:15:28 UTC (rev 6737)
@@ -69862,15 +69862,21 @@
 
   <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>
@@ -69954,7 +69960,8 @@
    <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>
@@ -70050,7 +70057,8 @@
    <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
@@ -70178,21 +70186,6 @@
    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>
 

Modified: index
===================================================================
--- index	2011-10-24 23:04:52 UTC (rev 6736)
+++ index	2011-10-24 23:15:28 UTC (rev 6737)
@@ -69862,15 +69862,21 @@
 
   <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>
@@ -69954,7 +69960,8 @@
    <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>
@@ -70050,7 +70057,8 @@
    <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
@@ -70178,21 +70186,6 @@
    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>
 

Modified: source
===================================================================
--- source	2011-10-24 23:04:52 UTC (rev 6736)
+++ source	2011-10-24 23:15:28 UTC (rev 6737)
@@ -79484,15 +79484,21 @@
 
   <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>
@@ -79593,8 +79599,8 @@
    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
@@ -79704,8 +79710,8 @@
    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
@@ -79858,26 +79864,6 @@
 
   </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




More information about the Commit-Watchers mailing list