Jeremias Maerki:
> Personally, I'm inclined to change:
>
> if (uriStr.indexOf('#') != -1) {
> throw new BridgeException(ctx, e, ERR_ATTRIBUTE_VALUE_MALFORMED,
> new Object[] {"xlink:href", uriStr});
> }
>
> to:
>
> if (uriStr.startsWith("#")) {
> throw new BridgeException(ctx, e, ERR_ATTRIBUTE_VALUE_MALFORMED,
> new Object[] {"xlink:href", uriStr});
> }
>
> Anything speaking against that?
I imagine that SVG view specifications in the fragment should be
honoured when referencing an SVG file from an <image>, anyway. Throwing
an exception solely on the presence of a "#" seems wrong. Having <image
xlink:href="something.svg#foo"> where foo is the ID of a graphic
elements should render the whole something.svg document, as if the
fragment wasn’t there, I think.
Also, in the presence of xml:base="", even <image xlink:href="#foo">
could be valid.
--
Cameron McCormack ≝ http://mcc.id.au/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]