[Bug 20642] [FO30] non-hierarchic URIs

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20642

--- Comment #3 from Tim Mills <tim@cbcl.co.uk> ---
The text

"  A path consists of a sequence of path segments separated by a slash
   ("/") character.  A path is always defined for a URI, though the
   defined path may be empty (zero length).  Use of the slash character
   to indicate hierarchy is only required when a URI will be used as the
   context for relative references. "

might lead one to believe that a URI is hierarchic if it contains a slash.

Microsoft's .NET System.Uri class allows resolution against "opaque" URLs.  Why
does F&O forbid it, since an "opaque" URI is absolute?

var urn = new Uri("urn:isbn:foo");
var mailto = new Uri("mailto:you@example.org");
var foo = new Uri(urn, mailto);
Console.WriteLine(foo); // prints mailto:tim@cbcl.co.uk

var bar = new Uri(mailto, urn);
Console.WriteLine(bar); // prints urn:isbn:foo

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 11 January 2013 11:38:27 UTC