Re: possible missing '>' bug in HTML 4 validator

On Wed, 16 Oct 2002, Rich Franzen wrote:

> Today I was surprised to see a validated page of mine which rendered
> strangely.  It was validated late last night, and I must have been too tired
> to notice that part of the text on the page was in the wrong font family.
> After half an hour of trying to figure out what it was, I finally saw it --
> a missing end-brace on a </tt> tag.
>
> Here is the problem code, with the uncaught error:
>
> - - - - - - - - - -
> <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> ...
> <tt><b><a href="vl_st05.html">&lt;=- Prev</a> &nbsp;
> <a href="vl_st00.html">Wrap -=:&gt;</a></b></tt<br>
> </div>

</tt<br>

is a valid shorthand for

</tt><br>

However, since many browsers have problems with it, I'd recommend checking
with the WDG HTML Validator (http://www.htmlhelp.com/tools/validator/)
with warnings enabled, or switch to XHTML where the shorthand is not
allowed.

-- 
Liam Quinn

Received on Thursday, 17 October 2002 00:45:27 UTC