W3C home > Mailing lists > Public > www-style@w3.org > October 2007

Re: BR element and generated content

From: David Woolley <forums@david-woolley.me.uk>
Date: Sat, 13 Oct 2007 10:18:59 +0100
Message-ID: <47108D83.4060804@david-woolley.me.uk>
To: "www-style@w3.org" <www-style@w3.org>

Alex Mogilevsky wrote:

> * BR is defined in HTML as an empty element. It can't have any conent

As an aside, BR historically had the same effect as the break commands 
in TeX and troff.  It was only when GUI browsers started being written 
that, de facto, it got redefined as being equivalent to a word processor 
hard newline.

The distinction is that break commands do nothing if one is already at 
the start of a line (have no text pending justification), so, in 
particular, multiple consecutive BRs are equivalent to a single one. 
There is also an element of this in the recent HTML specifications of P 
elements, which say that empty P elements should be ignored.  Neither of 
these behaviours are, in practice, implemented in GUI browsers.


-- 
David Woolley
Emails are not formal business letters, whatever businesses may want.
RFC1855 says there should be an address here, but, in a world of spam,
that is no longer good advice, as archive address hiding may not work.
Received on Saturday, 13 October 2007 09:19:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:55 GMT