W3C home > Mailing lists > Public > www-html@w3.org > August 2001

Re: White space and inline elements

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 15 Aug 2001 19:45:00 +0200
To: Masayasu Ishikawa <mimasa@w3.org>
Cc: www-html@w3.org, www-html-editor@w3.org
Message-ID: <9lclnt05m0eqvhtlkbpbr8ejqrbv4imugk@4ax.com>
* Masayasu Ishikawa wrote:
>> My suggestion is that content providers should be told that writing
>> leading or trailing white space is deprecated inside these inline
>> elements.
>
>That's why the HTML 4 specification, "9.1 White space" says as follows:
>
>    In order to avoid problems with SGML line break rules and
>    inconsistencies among extant implementations, authors should not rely
>    on user agents to render white space immediately after a start tag or
>    immediately before an end tag. Thus, authors, and in particular
>    authoring tools, should write:
>
>        <P>We offer free <A>technical support</A> for subscribers.</P>
>
>    and not:
>
>        <P>We offer free<A> technical support </A>for subscribers.</P>
>
>  cf. http://www.w3.org/TR/html4/struct/text.html#h-9.1

Section B.3.1 of HTML4 says, line breaks immediately following a start
tag or immediately preceding an end tag must be removed; this constraint
is missing in XHTML 1.0.
-- 
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/
Received on Wednesday, 15 August 2001 13:46:09 GMT

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