Re: Leading/trailing whitespace

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 UTC