Re: end tags...

Sunil Mishra (smishra@cc.gatech.edu)
Sun, 22 Sep 1996 18:25:18 -0400 (EDT)


Date: Sun, 22 Sep 1996 18:25:18 -0400 (EDT)
Message-Id: <199609222225.SAA13517@cleon.cc.gatech.edu>
From: Sunil Mishra <smishra@cc.gatech.edu>
To: www-html@w3.org
In-reply-to: <Pine.LNX.3.95.960923011640.4772A-100000@trillian.hol.gr>
Subject: Re: end tags...


\\ On Sun, 22 Sep 1996, Sunil Mishra wrote:
\\ 
\\ > \\ <P><FONT>Hello There</P>
\\ > 
\\ > In this case, the HTML is broken. I believe you have the option of either
\\ > ignoring the </p> and look for a </font>, or closing the <font> right
\\ > there. The latter would be the most prudent thing to do. I don't think
\\ > there is a "correct" answer for error recovery.
\\ 
\\ Well, since phrase markup is not allowed to cross block elements the
\\ assumption would be that the author intended to close the FONT tag. So I
\\ think a browser that would like to cover author's tracks should end the FONT
\\ right there with the /P.

Conversely, though less likely, what if the </p> was left there by
accident after an edit? It's impossible to tell, so both options are still
possible. Though I do agree that closing FONT is better.

Sunil