W3C home > Mailing lists > Public > www-validator@w3.org > July 2002

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

From: Derek Read <Derek.Read@corel.com>
Date: Tue, 16 Jul 2002 12:39:46 -0400 (EDT)
Message-ID: <2563EFDB68120F48B9F511B7957504360208C12E@OTT-VSVR2.corelcorp.corel.ics>
To: "Jim Correia" <correia@barebones.com>
Cc: <www-validator@w3.org>




Jim,

I realize what threw me now. I had own parser validating documents based
on XML rules (which does not allow opening and closing tags to be
declared as optional).

Obviously, since the HTML validator is validating HTML, it must be using
SGML rules - clearly my oversite.

Thanks again,

Derek Read
Support Technician - XMetaL
Corel Corporation


> -----Original Message-----
> From: Jim Correia [mailto:correia@barebones.com] 
> Sent: Monday, July 15, 2002 4:03 PM
> To: Derek Read
> Cc: www-validator@w3.org
> Subject: 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 Tuesday, 16 July 2002 13:28:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:03 GMT