Re: Resolving Relative URIs.

At 14:31 2002 01 08 -0800, Jason Diamond wrote:
>Hi, I have a question regarding the examples in Appendix C.2 of RFC2396.
>
>It says:
>
>> Similarly, parsers must avoid treating "." and ".." as special when
>> they are not complete components of a relative path.
>>
>>       /./g          =  http://a/./g
>
>My question regards this first example. My implementation is resolving this
>relative URI (with http://a/b/c/d;p?q as the base URI) as http://a/g. Every
>other example in Appendix C is passing for me. I must have a bug but I'm
>confused as to why the dot in the above example isn't "complete component of
>a relative path" that should get stripped. Can anybody enlighten me?


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

paul

Received on Tuesday, 8 January 2002 19:35:48 UTC