W3C home > Mailing lists > Public > public-html-comments@w3.org > March 2008

Re: HTML 4.01 and 5.0: is it somewhat "unspecific" about space characters

From: Frank Ellermann <nobody@xyzzy.claranet.de>
Date: Sun, 30 Mar 2008 20:03:18 +0200
To: public-html-comments@w3.org
Message-ID: <fsokgm$hsr$1@ger.gmane.org>

Daniel Beardsmore wrote:
> My favourite is this one:
>   <ul>
>    <li><a href...>Foo</li>
>    <li><a href...>Bar</li>
>    <li><a href...>Baz</li>
>   </ul>
> Now, there's no way to get the list items to butt up against each
> other. For example, if you intend for this:
>   [ Foo ][ Bar ][ Baz ]
> The white space will give:
>   [ Foo ] [ Bar ] [ Baz ]
> Although all white space between <li>s will normally be dropped, if
> you set li { display: inline } to get them in a horizontal line, now
> you'll get exactly one space between each. The spaces between </li>
> and <li> will collapse to a single, visible space.

Are you sure that that is what happens there ?  Do you get a different
result if anything from <ul> to </ul> is written in one line with no
explicit space in the list at all ?  

As a practical matter, list items separated by "something", minimally
a space, make sense, don't they ?  Especially for your example with
three links, AFAIK adjacent links are supposed to be separated.

Received on Sunday, 30 March 2008 18:01:42 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:26:24 UTC