[html5] r6595 - [e] (0) Add informative text about editing tables Fixing http://www.w3.org/Bugs/ [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Sep 27 14:31:02 PDT 2011


Author: ianh
Date: 2011-09-27 14:31:00 -0700 (Tue, 27 Sep 2011)
New Revision: 6595

Modified:
   complete.html
   index
   source
Log:
[e] (0) Add informative text about editing tables
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=13598

Modified: complete.html
===================================================================
--- complete.html	2011-09-27 19:35:18 UTC (rev 6594)
+++ complete.html	2011-09-27 21:31:00 UTC (rev 6595)
@@ -527,7 +527,8 @@
      <li><a href=#the-del-element><span class=secno>4.7.2 </span>The <code>del</code> element</a></li>
      <li><a href=#attributes-common-to-ins-and-del-elements><span class=secno>4.7.3 </span>Attributes common to <code>ins</code> and <code>del</code> elements</a></li>
      <li><a href=#edits-and-paragraphs><span class=secno>4.7.4 </span>Edits and paragraphs</a></li>
-     <li><a href=#edits-and-lists><span class=secno>4.7.5 </span>Edits and lists</a></ol></li>
+     <li><a href=#edits-and-lists><span class=secno>4.7.5 </span>Edits and lists</a></li>
+     <li><a href=#edits-and-tables><span class=secno>4.7.6 </span>Edits and tables</a></ol></li>
    <li><a href=#embedded-content-1><span class=secno>4.8 </span>Embedded content</a>
     <ol>
      <li><a href=#the-img-element><span class=secno>4.8.1 </span>The <code>img</code> element</a>
@@ -21979,7 +21980,53 @@
   </div>
 
 
+  <h4 id=edits-and-tables><span class=secno>4.7.6 </span>Edits and tables</h4>
 
+  <p><i>This section is non-normative.</i></p>
+
+  <p>The elements that form part of the table model have complicated
+  content model requirements that do not allow for the
+  <code><a href=#the-ins-element>ins</a></code> and <code><a href=#the-del-element>del</a></code> elements, so indicating edits
+  to a table can be difficult.</p>
+
+  <p>To indicate that an entire row or an entire column has been added
+  or removed, the entire contents of each cell in that row or column
+  can be wrapped in <code><a href=#the-ins-element>ins</a></code> or <code><a href=#the-del-element>del</a></code> elements
+  (respectively).</p>
+
+  <div class=example>
+
+   <p>Here, a table's row has been added:</p>
+
+   <pre><table>
+ <thead>
+  <tr> <th> Game name           <th> Game publisher   <th> Verdict
+ <tbody>
+  <tr> <td> Diablo 2            <td> Blizzard         <td> 8/10
+  <tr> <td> Portal              <td> Valve            <td> 10/10
+<strong>  <tr> <td> <ins>Portal 2</ins> <td> <ins>Valve</ins> <td> <ins>10/10</ins></strong>
+</table></pre>
+
+   <p>Here, a a column has been removed (the time at which it was removed is given also, as is a link to the page explaining why):</p>
+
+   <pre><table>
+ <thead>
+  <tr> <th> Game name           <th> Game publisher   <th> <strong><del cite="/edits/r192" datetime="2011-05-02T14:23Z">Verdict</del></strong>
+ <tbody>
+  <tr> <td> Diablo 2            <td> Blizzard         <td> <strong><del cite="/edits/r192" datetime="2011-05-02T14:23Z">8/10</del></strong>
+  <tr> <td> Portal              <td> Valve            <td> <strong><del cite="/edits/r192" datetime="2011-05-02T14:23Z">10/10</del></strong>
+  <tr> <td> Portal 2            <td> Valve            <td> <strong><del cite="/edits/r192" datetime="2011-05-02T14:23Z">10/10</del></strong>
+</table></pre>
+
+  </div>
+
+  <p>Generally speaking, there is no good way to indicate more
+  complicated edits (e.g. that a cell was removed, moving all
+  subsequent cells up or to the left).</p>
+
+
+
+
   <h3 id=embedded-content-1><span class=secno>4.8 </span>Embedded content</h3>
 
 

Modified: index
===================================================================
--- index	2011-09-27 19:35:18 UTC (rev 6594)
+++ index	2011-09-27 21:31:00 UTC (rev 6595)
@@ -527,7 +527,8 @@
      <li><a href=#the-del-element><span class=secno>4.7.2 </span>The <code>del</code> element</a></li>
      <li><a href=#attributes-common-to-ins-and-del-elements><span class=secno>4.7.3 </span>Attributes common to <code>ins</code> and <code>del</code> elements</a></li>
      <li><a href=#edits-and-paragraphs><span class=secno>4.7.4 </span>Edits and paragraphs</a></li>
-     <li><a href=#edits-and-lists><span class=secno>4.7.5 </span>Edits and lists</a></ol></li>
+     <li><a href=#edits-and-lists><span class=secno>4.7.5 </span>Edits and lists</a></li>
+     <li><a href=#edits-and-tables><span class=secno>4.7.6 </span>Edits and tables</a></ol></li>
    <li><a href=#embedded-content-1><span class=secno>4.8 </span>Embedded content</a>
     <ol>
      <li><a href=#the-img-element><span class=secno>4.8.1 </span>The <code>img</code> element</a>
@@ -21843,7 +21844,53 @@
   </div>
 
 
+  <h4 id=edits-and-tables><span class=secno>4.7.6 </span>Edits and tables</h4>
 
+  <p><i>This section is non-normative.</i></p>
+
+  <p>The elements that form part of the table model have complicated
+  content model requirements that do not allow for the
+  <code><a href=#the-ins-element>ins</a></code> and <code><a href=#the-del-element>del</a></code> elements, so indicating edits
+  to a table can be difficult.</p>
+
+  <p>To indicate that an entire row or an entire column has been added
+  or removed, the entire contents of each cell in that row or column
+  can be wrapped in <code><a href=#the-ins-element>ins</a></code> or <code><a href=#the-del-element>del</a></code> elements
+  (respectively).</p>
+
+  <div class=example>
+
+   <p>Here, a table's row has been added:</p>
+
+   <pre><table>
+ <thead>
+  <tr> <th> Game name           <th> Game publisher   <th> Verdict
+ <tbody>
+  <tr> <td> Diablo 2            <td> Blizzard         <td> 8/10
+  <tr> <td> Portal              <td> Valve            <td> 10/10
+<strong>  <tr> <td> <ins>Portal 2</ins> <td> <ins>Valve</ins> <td> <ins>10/10</ins></strong>
+</table></pre>
+
+   <p>Here, a a column has been removed (the time at which it was removed is given also, as is a link to the page explaining why):</p>
+
+   <pre><table>
+ <thead>
+  <tr> <th> Game name           <th> Game publisher   <th> <strong><del cite="/edits/r192" datetime="2011-05-02T14:23Z">Verdict</del></strong>
+ <tbody>
+  <tr> <td> Diablo 2            <td> Blizzard         <td> <strong><del cite="/edits/r192" datetime="2011-05-02T14:23Z">8/10</del></strong>
+  <tr> <td> Portal              <td> Valve            <td> <strong><del cite="/edits/r192" datetime="2011-05-02T14:23Z">10/10</del></strong>
+  <tr> <td> Portal 2            <td> Valve            <td> <strong><del cite="/edits/r192" datetime="2011-05-02T14:23Z">10/10</del></strong>
+</table></pre>
+
+  </div>
+
+  <p>Generally speaking, there is no good way to indicate more
+  complicated edits (e.g. that a cell was removed, moving all
+  subsequent cells up or to the left).</p>
+
+
+
+
   <h3 id=embedded-content-1><span class=secno>4.8 </span>Embedded content</h3>
 
 

Modified: source
===================================================================
--- source	2011-09-27 19:35:18 UTC (rev 6594)
+++ source	2011-09-27 21:31:00 UTC (rev 6595)
@@ -23480,7 +23480,53 @@
   </div>
 
 
+  <h4>Edits and tables</h4>
 
+  <!--END dev-html--><p><i>This section is non-normative.</i></p><!--START dev-html-->
+
+  <p>The elements that form part of the table model have complicated
+  content model requirements that do not allow for the
+  <code>ins</code> and <code>del</code> elements, so indicating edits
+  to a table can be difficult.</p>
+
+  <p>To indicate that an entire row or an entire column has been added
+  or removed, the entire contents of each cell in that row or column
+  can be wrapped in <code>ins</code> or <code>del</code> elements
+  (respectively).</p>
+
+  <div class="example">
+
+   <p>Here, a table's row has been added:</p>
+
+   <pre><table>
+ <thead>
+  <tr> <th> Game name           <th> Game publisher   <th> Verdict
+ <tbody>
+  <tr> <td> Diablo 2            <td> Blizzard         <td> 8/10
+  <tr> <td> Portal              <td> Valve            <td> 10/10
+<strong>  <tr> <td> <ins>Portal 2</ins> <td> <ins>Valve</ins> <td> <ins>10/10</ins></strong>
+</table></pre>
+
+   <p>Here, a a column has been removed (the time at which it was removed is given also, as is a link to the page explaining why):</p>
+
+   <pre><table>
+ <thead>
+  <tr> <th> Game name           <th> Game publisher   <th> <strong><del cite="/edits/r192" datetime="2011-05-02T14:23Z">Verdict</del></strong>
+ <tbody>
+  <tr> <td> Diablo 2            <td> Blizzard         <td> <strong><del cite="/edits/r192" datetime="2011-05-02T14:23Z">8/10</del></strong>
+  <tr> <td> Portal              <td> Valve            <td> <strong><del cite="/edits/r192" datetime="2011-05-02T14:23Z">10/10</del></strong>
+  <tr> <td> Portal 2            <td> Valve            <td> <strong><del cite="/edits/r192" datetime="2011-05-02T14:23Z">10/10</del></strong>
+</table></pre>
+
+  </div>
+
+  <p>Generally speaking, there is no good way to indicate more
+  complicated edits (e.g. that a cell was removed, moving all
+  subsequent cells up or to the left).</p>
+
+
+
+
   <h3>Embedded content</h3>
 
 




More information about the Commit-Watchers mailing list