Short URL: http://html5.org/r/6595
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 6595 | 13598 | Add informative text about editing tables | 2011-09-27 21:31 |
Index: source =================================================================== --- source (revision 6594) +++ source (revision 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>