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

How to parse SVG Fragment Identifiers

From: Robert Longson <longsonr@gmail.com>
Date: Wed, 22 Aug 2012 14:34:34 +0100
Message-ID: <CAOu7Uv5f8BEg4Gd6QdoABuczxa54zBbUU66azvWObinJ5SOmOw@mail.gmail.com>
To: www-svg@w3.org
Cc: Daniel Holbert <dholbert@mozilla.com>
Hi,

Daniel Holbert and I have come across a couple of issues when
implementing http://www.w3.org/TR/SVG/linking.html#SVGFragmentIdentifiers
in Firefox.

Question 1. What is the syntax for AspectParams?

Lets say you want to set preserveAspectRatio="xMinYMin slice"

We have this sentence in the specification: "Spaces are not allowed in
fragment specifications; thus, commas are used to separate numeric
values within an SVG view specification"

But that does not help us as we don't have any numeric values. Testing
seems to indicate that Batik wants a comma to separate things but
Opera wants one of those disallowed spaces and not a comma at all.
FWIW we're currently in the Opera camp but are willing to change.

Observation 1. If you have an SVG document that already has a viewBox
on the outer svg element, you don't seem to be able to use an SVG
fragment identifier to remove it altogether.

Best regards

Robert.
Received on Wednesday, 22 August 2012 13:35:07 GMT

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