W3C home > Mailing lists > Public > www-amaya@w3.org > July to September 1997

Re: Q: bug or feature with <HR>

From: Vincent QUINT <Vincent.Quint@imag.fr>
Date: Thu, 24 Jul 1997 15:30:28 +0200
Message-Id: <199707241330.PAA02549@lifou.inrialpes.fr>
To: Bertrand.Ibrahim@cui.unige.ch
cc: www-amaya@w3.org
Hi Bertrand,

You wrote:
> Given the following HTML code,
> <H1 align=center>
> abcdef
> <HR>
> ghijkl
> </H1>
> with all browsers I've tried, except Amaya, the part of the H1 block before 
> the <HR> tag is displayed just above the horizontal ruler, and the part of 
> the H1 block after the <HR> tag is displayed just below the ruler. With 
> Amaya, the first letter of the part of the H1 block after the <HR> tag is 
> displayed in the right margin (one line below the ruler) and the rest 
> of the block is displayed on the next line, correctly centered.
> Is this a known bug? ... Or is it a feature?

It's not really a bug.
The HTML 3.2 specification does not allow a HR to be within a H1. The piece
of HTML code you give is not correct.  Some browsers display it one way, some
other another way.

Amaya sticks to the W3C recommendations and tries to encourage the
correct use of these recommendations.  It makes some effort to recover
from some HTML errors but not too much, so that you can detect and fix
errors in your documents.

Thanks for your comments,


Vincent Quint                       INRIA Rhone-Alpes
W3C/INRIA                           ZIRST
e-mail: Vincent.Quint@w3.org        655 avenue de l'Europe
Tel.: +33 4 76 61 53 62             38330 Montbonnot St Martin
Fax:  +33 4 76 61 52 07             France
Received on Thursday, 24 July 1997 15:30:21 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:18 UTC