[html5] r7736 - [e] (0) Take some slight risk that we're breaking things, in exchange for an eve [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Mar 6 14:08:33 PST 2013


Author: ianh
Date: 2013-03-06 14:08:32 -0800 (Wed, 06 Mar 2013)
New Revision: 7736

Modified:
   complete.html
   index
   source
Log:
[e] (0) Take some slight risk that we're breaking things, in exchange for an even slighter improvement (using WebIDL instead of a word of prose to explain how to handle the missing argument).
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=20564
Affected topics: DOM APIs, HTML

Modified: complete.html
===================================================================
--- complete.html	2013-03-06 20:51:45 UTC (rev 7735)
+++ complete.html	2013-03-06 22:08:32 UTC (rev 7736)
@@ -40751,13 +40751,13 @@
   readonly attribute long <a href=#dom-tr-rowindex title=dom-tr-rowIndex>rowIndex</a>;
   readonly attribute long <a href=#dom-tr-sectionrowindex title=dom-tr-sectionRowIndex>sectionRowIndex</a>;
   readonly attribute <a href=#htmlcollection>HTMLCollection</a> <a href=#dom-tr-cells title=dom-tr-cells>cells</a>;
-  <a href=#htmlelement>HTMLElement</a> <a href=#dom-tr-insertcell title=dom-tr-insertCell>insertCell</a>(optional long index);
+  <a href=#htmlelement>HTMLElement</a> <a href=#dom-tr-insertcell title=dom-tr-insertCell>insertCell</a>(optional long index = -1);
   void <a href=#dom-tr-deletecell title=dom-tr-deleteCell>deleteCell</a>(long index);
 
   // <a href="#HTMLTableRowElement-partial">also has obsolete members</a>
 };</pre>
    </dd>
-  </dl><!--TOPIC:HTML--><p>The <code><a href=#the-tr-element>tr</a></code> element <a href=#represents>represents</a> a <a href=#concept-row title=concept-row>row</a> of <a href=#concept-cell title=concept-cell>cells</a> in a <a href=#concept-table title=concept-table>table</a>.</p>
+  </dl><!--TOPIC:HTML--><!--CLEANUP--><p>The <code><a href=#the-tr-element>tr</a></code> element <a href=#represents>represents</a> a <a href=#concept-row title=concept-row>row</a> of <a href=#concept-cell title=concept-cell>cells</a> in a <a href=#concept-table title=concept-table>table</a>.</p>
 
   <div class=impl>
 
@@ -40861,7 +40861,7 @@
   collection, the method must throw an <code><a href=#indexsizeerror>IndexSizeError</a></code>
   exception.</p>
 
-  <p>If <var title="">index</var> is missing, equal to −1, or
+  <p>If <var title="">index</var> is equal to −1 or
   equal to the number of items in <code title=dom-tr-cells><a href=#dom-tr-cells>cells</a></code> collection, the method must create
   a <code><a href=#the-td-element>td</a></code> element, append it to the <code><a href=#the-tr-element>tr</a></code> element,
   and return the newly created <code><a href=#the-td-element>td</a></code> element.</p>

Modified: index
===================================================================
--- index	2013-03-06 20:51:45 UTC (rev 7735)
+++ index	2013-03-06 22:08:32 UTC (rev 7736)
@@ -40751,13 +40751,13 @@
   readonly attribute long <a href=#dom-tr-rowindex title=dom-tr-rowIndex>rowIndex</a>;
   readonly attribute long <a href=#dom-tr-sectionrowindex title=dom-tr-sectionRowIndex>sectionRowIndex</a>;
   readonly attribute <a href=#htmlcollection>HTMLCollection</a> <a href=#dom-tr-cells title=dom-tr-cells>cells</a>;
-  <a href=#htmlelement>HTMLElement</a> <a href=#dom-tr-insertcell title=dom-tr-insertCell>insertCell</a>(optional long index);
+  <a href=#htmlelement>HTMLElement</a> <a href=#dom-tr-insertcell title=dom-tr-insertCell>insertCell</a>(optional long index = -1);
   void <a href=#dom-tr-deletecell title=dom-tr-deleteCell>deleteCell</a>(long index);
 
   // <a href="#HTMLTableRowElement-partial">also has obsolete members</a>
 };</pre>
    </dd>
-  </dl><!--TOPIC:HTML--><p>The <code><a href=#the-tr-element>tr</a></code> element <a href=#represents>represents</a> a <a href=#concept-row title=concept-row>row</a> of <a href=#concept-cell title=concept-cell>cells</a> in a <a href=#concept-table title=concept-table>table</a>.</p>
+  </dl><!--TOPIC:HTML--><!--CLEANUP--><p>The <code><a href=#the-tr-element>tr</a></code> element <a href=#represents>represents</a> a <a href=#concept-row title=concept-row>row</a> of <a href=#concept-cell title=concept-cell>cells</a> in a <a href=#concept-table title=concept-table>table</a>.</p>
 
   <div class=impl>
 
@@ -40861,7 +40861,7 @@
   collection, the method must throw an <code><a href=#indexsizeerror>IndexSizeError</a></code>
   exception.</p>
 
-  <p>If <var title="">index</var> is missing, equal to −1, or
+  <p>If <var title="">index</var> is equal to −1 or
   equal to the number of items in <code title=dom-tr-cells><a href=#dom-tr-cells>cells</a></code> collection, the method must create
   a <code><a href=#the-td-element>td</a></code> element, append it to the <code><a href=#the-tr-element>tr</a></code> element,
   and return the newly created <code><a href=#the-td-element>td</a></code> element.</p>

Modified: source
===================================================================
--- source	2013-03-06 20:51:45 UTC (rev 7735)
+++ source	2013-03-06 22:08:32 UTC (rev 7736)
@@ -47557,12 +47557,13 @@
   readonly attribute long <span title="dom-tr-rowIndex">rowIndex</span>;
   readonly attribute long <span title="dom-tr-sectionRowIndex">sectionRowIndex</span>;
   readonly attribute <span>HTMLCollection</span> <span title="dom-tr-cells">cells</span>;
-  <span>HTMLElement</span> <span title="dom-tr-insertCell">insertCell</span>(optional long index);
+  <span>HTMLElement</span> <span title="dom-tr-insertCell">insertCell</span>(optional long index = -1);
   void <span title="dom-tr-deleteCell">deleteCell</span>(long index);
 };</pre>
    </dd>
   </dl><!--TOPIC:HTML-->
 
+<!--CLEANUP-->
   <p>The <code>tr</code> element <span>represents</span> a <span
   title="concept-row">row</span> of <span
   title="concept-cell">cells</span> in a <span
@@ -47680,7 +47681,7 @@
   collection, the method must throw an <code>IndexSizeError</code>
   exception.</p>
 
-  <p>If <var title="">index</var> is missing, equal to &#x2212;1, or
+  <p>If <var title="">index</var> is equal to &#x2212;1 or
   equal to the number of items in <code
   title="dom-tr-cells">cells</code> collection, the method must create
   a <code>td</code> element, append it to the <code>tr</code> element,




More information about the Commit-Watchers mailing list