"Richard" <Anonymous@127.001> wrote:
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
><TABLE BORDER="1">
><TR>
> <TD>blah</TD>
> <TD>blah blah</TD>
></TR>
><table>
><tr><td>inner table</td></tr>
></table>
>
><TR>
> <TD>blah blah blah</TD>
> <TD>blah blah blah</TD>
></TR>
></TABLE>
>
>Run that one through your smart ass brain and tell me exactly what you get.
>
>1.) Line 24, column 6: document type does not allow element "TABLE" here
Quite right. table can not be a direct descendent of table. The inner
table needs to be inside a cell.
>While OTOH, this version validates.
>
><TABLE BORDER="1">
><TR>
> <TD>1</TD>
> <TD>2</TD>
></TR>
><TR>
> <TD>3</TD>
> <TD>4</TD>
></TR>
><tbody>
><tr><td>inner table</td></tr>
No, that is not an inner table, it's merely a grouping of rows in the
single table. Try giving that inner table a larger number of rows
compared with the 'parent' table. OIt would be a bit odd for an inner
table to increase the number of columns in the parent table...
></tbody>
></TABLE>
That's perfectly okay. You have two tbody elements, only one of which
is marked up with explicit tags. What you have here is exactly the
same as
<TABLE BORDER="1">
<tbody>
<TR>
<TD>1</TD>
<TD>2</TD>
</TR>
<TR>
<TD>3</TD>
<TD>4</TD>
</TR>
</tbody>
<tbody>
<tr><td>second tbody</td></tr>
</tbody>
</TABLE>
Every table contains an implicit tbody element. An author can add
additional tbodys (and theads and tfoots) if they like.
Read the HTML spec if you doubt me.
http://www.w3.org/TR/html401/struct/...tml#edef-TBODY
>Care to comment on the errors of the validation routine?
No. There are no errors in the validator with respect to the two
examples you've given. The validator accurately reports the errors or
lack of them in the code.
>You say the use of tbody is not valid,
I never said that.
<url:http://groups-beta.google.com/group/alt.html/msg/dacd91bf157f670d>
I said that your previous example was missing a required sub-element
of <tbody>. You had a <tbody> with no <tr> elements within, same as
you had <table>s with no <tr>s in your first example.
<url:http://groups-beta.google.com/group/alt.html/msg/9c82ccaa8b966c1d>
>while the valdiator apparently disagrees with you.
No it doesn't. You're just too stupid to understand what's being
discussed.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <> <http://steve.pugh.net/>