W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2002

Re: <HR> in <PRE>

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 02 Apr 2002 19:29:12 +0200
To: html-tidy@w3.org
Cc: "Richard A. O'Keefe" <ok@atlas.otago.ac.nz>
Message-ID: <qtihaus4s40h4cldb0n6764dtimpepgms8@4ax.com>
* Klaus Johannes Rusch wrote:
>There is a problem with this approach:
>
><pre>
>text
><hr>
>text
></pre>
>
>and
>
><pre>
>text
></pre>
><hr>
><pre>
>text
></pre>
>
>are generally rendered quite differently -- pre is a block level
>element, and browsers add whitespace before/after block level elements.

Does not matter, we cannot emulate the behaivour of that invalid HTML
with valid HTML without using Cascading Style Sheets. We can let Tidy
add style information, but this is not a good idea, we should leave it
to the author to fix visual appearance, he knows better what he tries to
achieve. However, the second code example is the best thing we can
generate to emulate browsers behaivour. Remember, Tidy is designed to
take invalid HTML and make it valid while keeping the visual appearance
as good as possible, hence I support Richard's request.
Received on Tuesday, 2 April 2002 12:30:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:52 GMT