Re: Possible bug in the SGML parser?

Andrew Whalan:
>
> I think i've found a bug, not sure, but try validating

Again ...

> It lacks opening <head> and <body> tags, and yet it validates as 4.01
>
> Doesnt a well formed SGML document REQUIRE a matching opening tag for a
> closing tag?

A well-formed document SGML/HTML/XML does, but only XML incl. XHTML is
required to be well-formed. In the _HTML DTDs the start (and end) tags of
the head and body (and html and tbody) elements are marked optional (the two
Os next to the name), thus they may be omitted in a valid document.

Christoph Päper

Received on Friday, 10 January 2003 08:41:58 UTC