Re: How to parse SVG Fragment Identifiers

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 UTC