Re: [css-values] url(#frag) handling when base url changes

On 5/4/16 1:02 PM, Zack Weinberg wrote:
>    2a. Relative URLs are absolutized when they are parsed.  Fragment
> URLs are not special-cased.  If you change the base URL, nothing
> happens.

This is the current Gecko behavior, as far as the actual URIs are concerned.

The issue is that what is done with the absolute URI later on depends on 
whether it's a "same-document reference" or not, and _that_ is not baked 
into the absolute URI, obviously.  So UAs have to detect it somehow, 
which is where the base URI may matter.

> My gut says 2a is more likely to be web-compatible than any of the
> alternatives.  In particular, 2a is the behavior that the author of
> the SVG described at
> https://bugzilla.mozilla.org/show_bug.cgi?id=652991 seems to have
> wanted

I don't think it is, unless the absolute URI stores whether it's a 
same-document reference at the time it's converted to an absolute URI.

-Boris

Received on Wednesday, 4 May 2016 17:28:11 UTC