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

Re: Minimized tags error

From: Christian Smith <csmith@barebones.com>
Date: Tue, 27 Mar 2001 19:13:03 -0500
To: www-validator@w3.org
Message-ID: <20010327191303-r01010600-1768c918@204.107.232.107>
On Wednesday, March 28, 2001 at 8:33, mimasa@w3.org (Masayasu Ishikawa) wrote:

> The SGML declaration of HTML 4.01 says "SHORTTAG YES", which allows
> this kind of shorthand markup.  However, in this case the null end-tag
> (NET) delimiter is "/", so ">" is just treated as character data.
> In other words, "<br />" is an equivalent of "<br>>" in this case.
> 
> Try the validator with "Show parse tree" option, then you'll see
> that ">" after "<br /" is not parsed as part of markup but as just
> a character in the parse tree.

Ahh ha.  see now. Thanks. In any event then one shuold be very carefull
and -not- use this format because a well behaved (are there any?) browser
would render that trailing > as character data, no?

-- 
Christian Smith  |  csmith@barebones.com  |  http://web.barebones.com

He who dies with the most friends... Is still dead!
Received on Tuesday, 27 March 2001 19:13:12 GMT

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