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

Re: How to parse SVG Fragment Identifiers

From: Robert Longson <longsonr@gmail.com>
Date: Thu, 30 Aug 2012 17:16:07 +0100
Message-ID: <CAOu7Uv7+2xfksq6RQfR3Hcgv8rPb44tA5kHYjThE=26QqQc4eA@mail.gmail.com>
To: www-svg@w3.org
Erik,

I propose that the following text

Spaces are not allowed in fragment specifications; thus, commas are
used to separate numeric values within an SVG view specification
(e.g., #svgView(viewBox(0,0,200,200))) and semicolons are used to
separate attributes (e.g.,
#svgView(viewBox(0,0,200,200);preserveAspectRatio(none))).

is changed to

Spaces are not allowed in fragment specifications and must be
url-escaped; (e.g., #svgView(preserveAspectRatio(xMinYMin%20meet))).
Semicolons are used to separate attributes (e.g.,
#svgView(viewBox(0,0,200,200);preserveAspectRatio(none))).

So as long as the string is url escaped before handing to the
sub-parser you can parse it the same as normal.

Best regards

Robert.
Received on Thursday, 30 August 2012 16:16:38 GMT

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