W3C home > Mailing lists > Public > www-amaya@w3.org > October to December 2002

Re: some hr questions

From: Charles McCathieNevile <charles@w3.org>
Date: Fri, 18 Oct 2002 12:48:45 -0400 (EDT)
To: John Russell <ve3ll@rac.ca>
cc: <www-amaya@w3.org>
Message-ID: <Pine.LNX.4.30.0210181247280.5162-100000@tux.w3.org>

Oh, same goes for address by the way. So it shouldn't allow p or hr elements
inside it either.

Chaals

On Fri, 18 Oct 2002, Charles McCathieNevile wrote:

>
>According to the HTML DTD http://www.w3.org/TR/REC-html40/sgml/dtd.html HR is
>a block element, and not an inline element. Block elements are not allowed
>inside P, so I would say the Mozilla people are reading the spec correctly.
>
>cheers
>
>Chaals
>
>On Fri, 18 Oct 2002, John Russell wrote:
>
>>
>>Now using hr element as separator ... works as i
>>expected in msie but not in other browsers .
>>
>>1]  is the hr element allowed within an address element
>>       the mozilla.org groups contend that it cant be nested that way
>>    but validator does not complain.
>>2] the short test that i am adding does not do a line return before
>>   the paragraph after hr element in address... is this a bug ???
>>3 there are two lines (only spotted this when i made a darker shade
>>   background ... top line is correct.... where does bottom one come from??
>>    my assumption is that amaya sets different height than other browsers
>>     do on the hr element  .
>>test case is as follows
>><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>><html>
>><head>
>><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
>><style type="text/css">
>>body {background:#d6e0cc}
>>hr {color:khaki; margin:0px; padding:0px}
>>hr.s {width:20px}
>></style>
>><title>test of hr</title>
>></head>
>><body>
>><p>here is a <hr class="s"> short rule for test.<p>
>>
>><address>
>>Here is a test of the hr tag<br>
>><hr>
>>Resume normal programming now.  Why the double line
>>and isn't hr a block element where it should start a new line
>>
>></address>
>></body>
>></html>
>>  //
>>John Russell, VE3LL@RAC.CA
>>http://home.cogeco.ca/~ve3ll (2 L's as in LLAMA)
>>check HTML at http://www.htmlhelp.com/tools/validator/
>>check CSS at http://jigsaw.w3.org/css-validator/
>>check JavaScript at http://www.crockford.com/javascript/jslint.html
>>
>
>

-- 
Charles McCathieNevile  http://www.w3.org/People/Charles  tel: +61 409 134 136
SWAD-E http://www.w3.org/2001/sw/Europe ------------ WAI http://www.w3.org/WAI
 21 Mitchell street, FOOTSCRAY Vic 3011, Australia  fax(fr): +33 4 92 38 78 22
 W3C, 2004 Route des Lucioles, 06902 Sophia Antipolis Cedex, France
Received on Friday, 18 October 2002 12:48:46 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 April 2014 11:01:38 UTC