W3C home > Mailing lists > Public > www-svg@w3.org > March 2012

Re: moving from xml:space="" to white-space

From: Cameron McCormack <cam@mcc.id.au>
Date: Sat, 17 Mar 2012 14:29:56 +1100
Message-ID: <4F640534.1000502@mcc.id.au>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: Sergey Ilinsky <sergey@ilinsky.com>, Doug Schepers <schepers@w3.org>, Chris Lilley <chris@w3.org>, SVG public list <www-svg@w3.org>
Tab Atkins Jr.: > The DOM doesn't throw away white-space at all.  That 
sort of thing
> happens solely at the display (CSS) level.

In practice the DOM doesn't, but the XML spec allows for it if that's 
how the XML processor is operating.  It's intended to allow for example


to parse without having white space only text nodes be created as 
children of <a>.  xml:space="preserve" turns that behaviour off (if the 
XML processor would have done it) and says to definitely include it in 
the DOM.
Received on Saturday, 17 March 2012 03:30:31 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:27 UTC