W3C home > Mailing lists > Public > www-svg@w3.org > June 2003

Re: Leading/trailing whitespace

From: Chris Lilley <chris@w3.org>
Date: Wed, 11 Jun 2003 21:21:16 +0200
Message-ID: <79279741006.20030611212116@w3.org>
To: www-svg@w3.org, Steve Schafer <steve@fenestra.com>

On Wednesday, June 11, 2003, 5:06:32 PM, Steve wrote:


SS> What is the SVG Working Group's official stand on handling
SS> leading/trailing whitespace in attribute values? For example:

SS>  <svg:rect width=" 2em   " stroke-dasharray=" 1, 2, 3, 4 "/>

SS> A strict reading of SVG 1.1 would say that leading and trailing
SS> whitespace is generally not allowed,

http://www.w3.org/TR/SVG11/text.html#WhiteSpace

Note that unless xml:space="preserve" then leading and trailing
whitespace is trimmed and contiguous whitespace is consolidated, in SVG.

As for interior whitespace (eg, "a, b" instead of "a,b") the BNF for
each attribute says whether whitespace is require, allowed, or
disallowed.

SS> yet at least some implementations
SS> (e.g., Adobe) ignore it, and CSS2 allows it in most places.

SS> Steve Schafer
SS> Fenestra Technologies Corp
SS> http://www.fenestra.com/



-- 
 Chris                            mailto:chris@w3.org
Received on Wednesday, 11 June 2003 15:21:36 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:25 GMT