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

Re: Validator fails to detect invalid document

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 11 Nov 2002 00:43:48 +0000 (GMT)
To: Peter Favrholdt <pfavr@how.dk>
Cc: "www-validator@w3.org" <www-validator@w3.org>, ot@w3.mag.keio.ac.jp
Message-ID: <Pine.LNX.4.21.0211110041150.7230-100000@dhalsim.dreamhost.com>

On Sat, 9 Nov 2002, Peter Favrholdt wrote:
> 
> But, I think I've found a bug in the validator regarding the <body> tag:
> if the <body> tag misses the trailing > it is not detected!

That's not a bug, it's the SGML SHORTTAG TAGC omission feature.

   <foo<bar>

...is equivalent to

   <foo><bar>

...and

   <foo
    <bar>

...is similarly equivalent to

   <foo
    ><bar>

So as long as the next character after your "<body" tag is a "<", it's
valid. Note that using such features in HTML documents is discouraged as
basically no popular web browser supports them.

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Sunday, 10 November 2002 19:44:21 GMT

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