[html5] r8508 - [giow] (3) Make clearTimeout()/clearInterval() (with no arguments) into no-ops; [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Feb 24 10:44:51 PST 2014


Author: ianh
Date: 2014-02-24 10:44:50 -0800 (Mon, 24 Feb 2014)
New Revision: 8508

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Make clearTimeout()/clearInterval() (with no arguments) into no-ops; change the <table> role mapping so that tables aren't interactive.
Affected topics: HTML, HTML Syntax and Parsing

Modified: complete.html
===================================================================
--- complete.html	2014-02-21 23:02:06 UTC (rev 8507)
+++ complete.html	2014-02-24 18:44:50 UTC (rev 8508)
@@ -298,7 +298,7 @@
 
   <header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 21 February 2014</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 24 February 2014</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -11741,7 +11741,7 @@
 
     <tr><td><code><a href=#the-table-element>table</a></code> element
 
-     <td><code title=attr-aria-role-grid>grid</code> role
+     <td><code title=attr-aria-role-grid>grid</code> role with the <code title=attr-aria-readonly>aria-readonly</code> property set to "true"
 
     <tr><td><code><a href=#the-tbody-element>tbody</a></code> element
 
@@ -73544,10 +73544,10 @@
 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);
-  void <a href=#dom-windowtimers-cleartimeout title=dom-windowtimers-clearTimeout>clearTimeout</a>(long handle);
+  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);
-  void <a href=#dom-windowtimers-clearinterval title=dom-windowtimers-clearInterval>clearInterval</a>(long handle);
+  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>
 
@@ -73557,7 +73557,7 @@
           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>
+  <dl class=domintro><!-- in practice clearInterval() and clearTimeout() are synonyms, but we don't mention this here --><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>
 
@@ -73575,6 +73575,7 @@
    </dd>
 
    <dt><var title="">window</var> . <code title=dom-windowtimers-clearTimeout><a href=#dom-windowtimers-cleartimeout>clearTimeout</a></code>( <var title="">handle</var> )</dt>
+   <!-- don't mention that the handle is optional, since if omitted, the method does nothing -->
 
    <dd>
 
@@ -73601,6 +73602,7 @@
    </dd>
 
    <dt><var title="">window</var> . <code title=dom-windowtimers-clearInterval><a href=#dom-windowtimers-clearinterval>clearInterval</a></code>( <var title="">handle</var> )</dt>
+   <!-- don't mention that the handle is optional, since if omitted, the method does nothing -->
 
    <dd>
 
@@ -73634,10 +73636,11 @@
   method's arguments, the object on which the method for which the algorithm is running is
   implemented (a <code><a href=#window>Window</a></code> or <code><a href=#workerglobalscope>WorkerGlobalScope</a></code> object) as the <var title="">method context</var>, and the <var title="">repeat</var> flag set to true.</p>
 
+<!--CLEANUP-->
   <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
+  <code><a href=#windowtimers>WindowTimers</a></code> object on which the method was invoked, if any, where <var title="">handle</var>
+  is the argument passed to the method. (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, the method does nothing.)</p>
 

Modified: index
===================================================================
--- index	2014-02-21 23:02:06 UTC (rev 8507)
+++ index	2014-02-24 18:44:50 UTC (rev 8508)
@@ -298,7 +298,7 @@
 
   <header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 21 February 2014</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 24 February 2014</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -11741,7 +11741,7 @@
 
     <tr><td><code><a href=#the-table-element>table</a></code> element
 
-     <td><code title=attr-aria-role-grid>grid</code> role
+     <td><code title=attr-aria-role-grid>grid</code> role with the <code title=attr-aria-readonly>aria-readonly</code> property set to "true"
 
     <tr><td><code><a href=#the-tbody-element>tbody</a></code> element
 
@@ -73544,10 +73544,10 @@
 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);
-  void <a href=#dom-windowtimers-cleartimeout title=dom-windowtimers-clearTimeout>clearTimeout</a>(long handle);
+  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);
-  void <a href=#dom-windowtimers-clearinterval title=dom-windowtimers-clearInterval>clearInterval</a>(long handle);
+  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>
 
@@ -73557,7 +73557,7 @@
           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>
+  <dl class=domintro><!-- in practice clearInterval() and clearTimeout() are synonyms, but we don't mention this here --><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>
 
@@ -73575,6 +73575,7 @@
    </dd>
 
    <dt><var title="">window</var> . <code title=dom-windowtimers-clearTimeout><a href=#dom-windowtimers-cleartimeout>clearTimeout</a></code>( <var title="">handle</var> )</dt>
+   <!-- don't mention that the handle is optional, since if omitted, the method does nothing -->
 
    <dd>
 
@@ -73601,6 +73602,7 @@
    </dd>
 
    <dt><var title="">window</var> . <code title=dom-windowtimers-clearInterval><a href=#dom-windowtimers-clearinterval>clearInterval</a></code>( <var title="">handle</var> )</dt>
+   <!-- don't mention that the handle is optional, since if omitted, the method does nothing -->
 
    <dd>
 
@@ -73634,10 +73636,11 @@
   method's arguments, the object on which the method for which the algorithm is running is
   implemented (a <code><a href=#window>Window</a></code> or <code><a href=#workerglobalscope>WorkerGlobalScope</a></code> object) as the <var title="">method context</var>, and the <var title="">repeat</var> flag set to true.</p>
 
+<!--CLEANUP-->
   <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
+  <code><a href=#windowtimers>WindowTimers</a></code> object on which the method was invoked, if any, where <var title="">handle</var>
+  is the argument passed to the method. (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, the method does nothing.)</p>
 

Modified: source
===================================================================
--- source	2014-02-21 23:02:06 UTC (rev 8507)
+++ source	2014-02-24 18:44:50 UTC (rev 8508)
@@ -11919,7 +11919,8 @@
 
      <td><code>table</code> element
 
-     <td><code data-x="attr-aria-role-grid">grid</code> role
+     <td><code data-x="attr-aria-role-grid">grid</code> role with the <code
+     data-x="attr-aria-readonly">aria-readonly</code> property set to "true"
 
     <tr>
 
@@ -82197,10 +82198,10 @@
 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);
-  void <span data-x="dom-windowtimers-clearTimeout">clearTimeout</span>(long handle);
+  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);
-  void <span data-x="dom-windowtimers-clearInterval">clearInterval</span>(long handle);
+  void <span data-x="dom-windowtimers-clearInterval">clearInterval</span>(optional long handle = 0);
 };
 <span>Window</span> implements <span>WindowTimers</span>;</pre>
 
@@ -82212,6 +82213,8 @@
 
   <dl class="domintro">
 
+   <!-- in practice clearInterval() and clearTimeout() are synonyms, but we don't mention this here -->
+
    <dt><var data-x="">handle</var> = <var data-x="">window</var> . <code data-x="dom-windowtimers-setTimeout">setTimeout</code>( <var data-x="">handler</var> [, <var data-x="">timeout</var> [, <var data-x="">arguments</var>... ] ] )</dt>
 
    <dd>
@@ -82232,6 +82235,7 @@
    </dd>
 
    <dt><var data-x="">window</var> . <code data-x="dom-windowtimers-clearTimeout">clearTimeout</code>( <var data-x="">handle</var> )</dt>
+   <!-- don't mention that the handle is optional, since if omitted, the method does nothing -->
 
    <dd>
 
@@ -82260,6 +82264,7 @@
    </dd>
 
    <dt><var data-x="">window</var> . <code data-x="dom-windowtimers-clearInterval">clearInterval</code>( <var data-x="">handle</var> )</dt>
+   <!-- don't mention that the handle is optional, since if omitted, the method does nothing -->
 
    <dd>
 
@@ -82298,11 +82303,12 @@
   implemented (a <code>Window</code> or <code>WorkerGlobalScope</code> object) as the <var
   data-x="">method context</var>, and the <var data-x="">repeat</var> flag set to true.</p>
 
+<!--CLEANUP-->
   <p>The <dfn data-x="dom-windowtimers-clearTimeout"><code>clearTimeout()</code></dfn> and <dfn
   data-x="dom-windowtimers-clearInterval"><code>clearInterval()</code></dfn> methods must clear the
   entry identified as <var data-x="">handle</var> from the <span>list of active timers</span> of the
-  <code>WindowTimers</code> object on which the method was invoked, where <var data-x="">handle</var>
-  is the argument passed to the method, if any. (If <var data-x="">handle</var> does not identify an
+  <code>WindowTimers</code> object on which the method was invoked, if any, where <var data-x="">handle</var>
+  is the argument passed to the method. (If <var data-x="">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, the method does nothing.)</p>
 




More information about the Commit-Watchers mailing list