Re: HTML 4.01 strict validates TABLE that does not contain TBODY element

On Monday, July 15, 2002, at 05:45  PM, Derek Read wrote:

> HTML validator (validator.w3.org) declares the following markup fragment
> as correct (when included as part of an otherwise complete and valid
> HTML file):
>
> <TABLE>
>  <TR>
>   <TD>some text</TD>
>  </TR>
> </TABLE>
>
> Clearly this is incorrect, as the definition for the TABLE element is as
> follows
> (see  http://www.w3.org/TR/html4/strict.dtd  AND
> http://www.w3.org/TR/html401/strict.dtd):
>
> <!ELEMENT TABLE - -
>      (CAPTION?, (COL*|COLGROUP*), THEAD?, TFOOT?, TBODY+)>

[snip]

> Have I missed something?

The open tag for tbody is optional.

<!ELEMENT TBODY    O O (TR)+           -- table body -->

Jim


--
Jim Correia
correia@barebones.com

Received on Monday, 15 July 2002 19:03:00 UTC