Re: Validator fails to detect invalid document

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 UTC