W3C home > Mailing lists > Public > www-validator@w3.org > August 2000

Re: Incorrect(?) HTML that passes validation

From: <Jukka.Korpela@hut.fi>
Date: Mon, 14 Aug 2000 13:45:24 +0300 (EET DST)
To: www-validator@w3.org
Message-ID: <Pine.OSF.4.10.10008141332070.23420-100000@beta.hut.fi>
On Sun, 13 Aug 2000, Kristof Burek (from the Cally Road) wrote:

> I have a page ( http://www.yxf87.dial.pipex.com/_content001/BadHTML/AlmostOK.htm )
> which passes the W3C HTML validation Service, but actually has a small
> glitch that I shouldn't think would be regarded as correct.

It is not correct in the meaning 'recommendable', but it is valid
in HTML terms, and such validity is what a validator checks.

> in the <HEAD> element of the page there is a  tag with a missing > sign.  It
> validates OK, but IE5 behaved strangely when I used the "Add to Favorites"
> command which made me comb the page for the glitch that I eventually found.

Actually the comment in your demo is misleading: the tag without a
trailing ">" is a LINK tag, not META tag:

<LINK rel="stylesheet"


The reason why this is valid is that formally HTML has been defined as an
SGML application with the SHORTTAG YES feature, which allows various
shorthand notations like omitting ">" when immediately followed by
another tag. (Tech. ref.: SGML Handbook, Unclosed Start-tag).

The handwaving at
("Shorthand markup", in an annex to HTML 4 spec)
is to be read as saying: there are lots of abbreviated notations
like [some examples] which are formally valid but will confuse
all major browsers thoroughly.

It's too bad that browsers don't really support HTML, even HTML 2.0,
even in basic issues like parsing. The construction of restricted
versions of HTML, under the XHTML misnomer, reflects this: XHTML
drops out the tag minimization features.

Yucca, http://www.hut.fi/u/jkorpela/ or http://yucca.hut.fi/yucca.html
Received on Monday, 14 August 2000 06:45:33 UTC

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