Re: The remaining issues list

Bert Bos (bert@let.rug.nl)
Wed, 22 Mar 95 13:38:23 EST

Paul Grosso writes:
|
|> From: "Dave Raggett" <dsr@hplb.hpl.hp.com>
|>
|> Paul Grosso writes:
|>
|> > We also point out the need to clarify various issues such as what
|> > should happen to the cells that are "spanned over" by a vertical
|> > or horizontal span.
|>
|> This is spelt out in the spec, of which the DTD is but one part:
|>
|> o Cells may be empty.
|>
|> o Cells spanning rows contribute to the column count on each of the
|> spanned rows, but only appear in the markup once (in the first row
|> spanned).
|>
|> o If the column count for the table is greater than the number of cells
|> for a given row (after including cells for spanned rows), the missing
|> cells are treated as occurring on the right handside of the table, and
|> rendered as empty cells.
|>
|> o The row count is determined by the TR elements - any rows implied by
|> cells spanning rows beyond this should be ignored.
|> element.
|>
|> o The user agent should be able to recover from a missing <TR> tag
|> prior to the first row as the TH and TC elements can only occur
|> within the TR element
|>
|
|
|How should the following table be rendered?
|How should it be rendered if "colspan=2" is changed to "colspan=1"?
|
|<table>
|<tr><td rowspan=2>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr>
|<tr><td rowspan=2>6</td></tr>
|<tr><td colspan=2>7</td><td>8</td></tr>
|</table>
|
|For those who prefer minimized tags, the equivalent is:
|
|<table>
|<tr><td rowspan=2>1<td>2<td>3<td>4<td>5
|<tr><td rowspan=2>6
|<tr><td colspan=2>7<td>8
|</table>

Like this:

+---+---+---+---+---+
| | 2 | 3 | 4 | 5 |
| 1 +---+---+---+---+
| | | | | |
+---+ 6 +---+---+---+
| | | 7 | 8 |
+---+---+-------+---+

and

+---+---+---+---+---+
| | 2 | 3 | 4 | 5 |
| 1 +---+---+---+---+
| | | | | |
+---+ 6 +---+---+---+
| 7 | | 8 | | |
+---+---+-------+---+

rule 4 => 3 rows
rule 2 => 2nd row has 1 inherited and 1 new cell
rule 3 => 5 columns, therefore empty cells on row 2 and row 3

Is it necessary to add a rule saying that spanned cells can be moved
to the right if they don't fit immediately?

It's a bit like playing Tetris, isn't it:-)

--
                          Bert Bos                      Alfa-informatica
                 <bert@let.rug.nl>           Rijksuniversiteit Groningen
    <http://www.let.rug.nl/~bert/>     Postbus 716, NL-9700 AS GRONINGEN