Re: How to parse SVG Fragment Identifiers

What about relaxing the syntax of viewBox and allow optional commas?

Greetings
Dirk

On Aug 30, 2012, at 9:16 AM, Robert Longson <longsonr@gmail.com> wrote:

> 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:29:04 UTC