W3C home > Mailing lists > Public > uri@w3.org > January 2002

Re: Resolving Relative URIs.

From: Jason Diamond <jason@injektilo.org>
Date: Tue, 8 Jan 2002 16:41:06 -0800
Message-ID: <013d01c198a6$56c293b0$02265fa6@ck3162154a>
To: <uri@w3.org>
> >It says:
> >
> >> Similarly, parsers must avoid treating "." and ".." as special when
> >> they are not complete components of a relative path.
> >>
> >>       /./g          =  http://a/./g
> >

> /./g isn't a relative path--it starts with /.

Thanks. I missed the text in Step 5 of Section 5.2 that says

> 5) If the path component begins with a slash character ("/"), then
>       the reference is an absolute-path and we skip to step 7.

I was trying to normalize the path regardless of whether the original URI
reference was relative or not.

Thanks,
Jason.
Received on Tuesday, 8 January 2002 19:44:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 13 January 2011 12:15:30 GMT