W3C home > Mailing lists > Public > uri@w3.org > June 2004

Relative URI resolution and fragments: editorial comment

From: Elliotte Harold <elharo@metalab.unc.edu>
Date: Sat, 19 Jun 2004 12:06:17 -0400
Message-ID: <40D46479.8060402@metalab.unc.edu>
To: uri@w3.org

I recently implemented the relative URI resolution algorithm given in 
pseudocode in RFC2396bis in Java. The process was very staright-forward 
and worked very well. This is a huge improvement over the original 2396. 

One thing I noticed while doing so surprised me. The fragment ID of the 
base URI reference is never considered. Even if you're resolving a URI 
such as "" (the empty string) against a URI such as 
http://www.example.com/test#fragID the resolved URI is 

This isn't a problem, and I can see the sense of making URI resolution 
work that way. However, it did surprise me. If there's any epxlicit 
language in the spec that notes this, I didn't find it. I suggest adding 
a sentence to section 5.2 that makes this epxlicit; something like "The 
fragment in the base URI is ignored" or "The fragment in the base URI 
always comes from the relative URI,never the base URI."

Elliotte Rusty Harold
Received on Saturday, 19 June 2004 12:05:45 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:07 UTC