W3C home > Mailing lists > Public > www-dom@w3.org > April to June 1999

Re: RFC: White Space Handling In XML Parsing

From: John Cowan <cowan@locke.ccil.org>
Date: Thu, 20 May 1999 13:00:06 -0400
Message-ID: <37443F96.94A32E04@locke.ccil.org>
To: www-dom@w3.org
Steven Champeon wrote:

> <a href="http://example.com">
> <img src="/images/example.gif">
> </a>
> and when it displays in the browser, there is a blue underline tail
> hanging off the bottom right edge of the graphic, because the whitespace
> is reduced to one space, which is then underlined.

That's a rendering bug.  SGML applications are not even supposed to
see such newlines (parsers should drop one just after a start tag and
one just before an end-tag).  This doesn't apply to XML parsers,
which must return *all* character data.

John Cowan	http://www.ccil.org/~cowan		cowan@ccil.org
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)
Received on Thursday, 20 May 1999 13:00:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:05 UTC