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

Re: How to parse SVG Fragment Identifiers

From: Dirk Schulze <dschulze@adobe.com>
Date: Thu, 30 Aug 2012 09:28:31 -0700
To: Robert Longson <longsonr@gmail.com>
CC: "www-svg@w3.org" <www-svg@w3.org>
Message-ID: <9592C2FE-7E9C-48D7-83AB-4405A10FFAC1@adobe.com>
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 GMT

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