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

Re: no parameter in first segment of relative URI?

From: Stefan Eissing <stefan.eissing@greenbytes.de>
Date: Fri, 11 Oct 2002 18:43:14 +0200
Cc: uri@w3.org
To: Miles Sabin <miles@milessabin.com>
Message-Id: <8943E46C-DD38-11D6-9950-00039384827E@greenbytes.de>


Am Freitag, 11.10.02, um 18:10 Uhr (Europe/Berlin) schrieb Miles Sabin:

>
> Stefan Eissing wrote,
>> But without the ':' in the name, it would have been, right?
>
> Oh, sure. But so what?

My point is that allowing ':' in path segments makes life more
complicated than it needs to be.

Unless there is a compelling reason for allowing unescaped ':'
in path segments of *hierarchical* URIs, the spec should say that
':' needs to be escaped in these segments.

Then, generating correct relative URIs from absolute ones is
much less painful and less error prone.

Currently, code that "reliativizes" URIs needs to carefully check
that the first segment does not contain ':'. If it does, it needs
to prefix a './' to the relative URI.

I wonder how much code (other than mine :) did not see the need
for this check at the time of implementation and is now widely
deployed - its author hoping that ':' is never encountered...

//Stefan
Received on Friday, 11 October 2002 12:44:10 UTC

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