W3C home > Mailing lists > Public > www-style@w3.org > May 2016

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

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Wed, 4 May 2016 13:27:37 -0400
To: Zack Weinberg <zackw@panix.com>
Cc: fantasai <fantasai.lists@inkedblade.net>, "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>, Anne van Kesteren <annevk@annevk.nl>, Jonas Sicking <jonas@sicking.cc>
Message-ID: <572A3109.8070506@mit.edu>
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.

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

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:59 UTC