W3C home > Mailing lists > Public > www-validator@w3.org > October 2001

Re: Validator goofs on missing '

From: Masayasu Ishikawa <mimasa@w3.org>
Date: Sat, 06 Oct 2001 11:22:42 +0900 (JST)
Message-Id: <20011006.112242.108746928.mimasa@w3.org>
To: akkersdi@hio.hen.nl
Cc: www-validator@w3.org
Ron Akkersdijk <akkersdi@hio.hen.nl> wrote:

> While checking various HMTL webpages made by
> our students I discovered what I think is a bug.
> The validator does not complain when a '>'
> is missing, see for instance the html code
> below, where the final ">" is missing from "</body"

This is not a bug.  The SGML declaration of HTML 4 [1] says
"SHORTTAG YES", which allows shorthand markup like </body</html>.
As noted in "Appendix B.3.7 Shorthand markup" of HTML 4 [2], such
construct is unlikely to work with many existing HTML tools, though.

XML doesn't allow this kind of shorthand markup, hence it's not
allowed in XHTML.

[1] http://www.w3.org/TR/html4/sgml/sgmldecl.html
[2] http://www.w3.org/TR/html4/appendix/notes.html#h-B.3.7

Masayasu Ishikawa / mimasa@w3.org
W3C - World Wide Web Consortium
Received on Friday, 5 October 2001 22:22:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:31 UTC