W3C home > Mailing lists > Public > www-html@w3.org > April 2003

Re: Getting <l> right (Was: Unicode line and paragraph separators)

From: Toby A Inkster <tobyink@goddamn.co.uk>
Date: Sun, 6 Apr 2003 13:30:06 +0100
To: William F Hammond <hammond@csc.albany.edu>
Cc: www-html@w3.org
Message-ID: <20030406123006.GA21684@ophelia.goddamn.co.uk>
On Sat, Apr 05, 2003 at 10:38:55PM -0500, William F Hammond wrote:
| Finally, a non bogus "l" has nothing at all to do with replacing "br".
| "br" is still needed occasionally when one needs to punt -- such as
| when a long head, whether the old "h1" or new "h", is susceptible
| to a bad split.  It is simply not sensible to propose that the content
| model for "h1" or "h" contain "l".

What about:
<h1>
  Here&nbsp;Is&nbsp;A&nbsp;Very&nbsp;Long&nbsp;Heading 
  And&nbsp;I&nbsp;Want&nbsp;To&nbsp;Choose&nbsp;Where&nbsp;The&nbsp;Line&nbsp;Breaks
</h1>

Of course, this way yo'll give yourself all sorts of problems dealing with 
different browser window widths -- just as you would have with <br /> or <l /> 
-- it's simply not a good idea to specify hard and fast line breaks for purely 
presentational reasons such as this.
 
| And while it is not sensible to allow "l" to be mixed in "p" with
| children other than "l", it is sensible to permit "br" in "p" for
| occasional use.

<p>
  Here is a paragraph <l>that contans a line</l> and some other stuff.
</p>

Could be rendered in either of the following ways:

  Here is a paragraph
  that contans a line
  and some other stuff.

  Here 
  is a
  para-
  graph
  that contans a line
  and 
  some
  other
  stuff.

The important thing is that the words "that contans a line" appear as a line. 
How the browser chooses to display the rest is up to it.

| "br" should be left in XHTML forever.  

Nothing lasts forever.

-- 
Toby A Inkster BSc (Hons) ARCS | mailto:tobyink@goddamn.co.uk | pgp:0x6A2A7D39
    aim:inka80 | icq:6622880 | yahoo:tobyink | jabber:tobyink@a-message.de
            http://www.goddamn.co.uk/tobyink/ | "You've got spam!"
                             playing://(nothing)

Received on Sunday, 6 April 2003 08:30:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:54 GMT