2 <TITLE>Examples of Resolving Relative URLs, Part 4</TITLE>
3 <BASE href="fred:///s//a/b/c">
5 <H1>Examples of Resolving Relative URLs, Part 4</H1>
7 This document has an embedded base URL of
9 Content-Base: fred:///s//a/b/c
11 in order to test a notion that Tim Berners-Lee mentioned regarding
12 the ability of URIs to have a triple-slash (or even more slashes)
13 to indicate higher levels of hierarchy than those already used by URLs.
15 <H2>Tested Clients and Client Libraries</H2>
19 <DD>RFC 2396 (the right way to parse)
21 <DD>Tim Berners-Lee's proposed interpretation
23 <DD>Mozilla/4.03 [en] (X11; U; SunOS 5.5 sun4u; Nav)
25 <DD>Lynx/2.7.1 libwww-FM/2.14
27 <DD>MSIE 3.01; Windows 95
29 <DD>NCSA_Mosaic/2.6 (X11;SunOS 4.1.2 sun4m)
34 RFC 1808 specified that the highest level for relative URLs is indicated
35 by a double-slash "//", and therefore that any triple-slash would be
36 considered a null site component, rather than a higher-level component
37 than the site component (as proposed by Tim).<P>
39 The URI draft assumes that a triple-slash means an empty site component.
40 Netscape Navigator behaves irrationally, apparently because their parser
41 is scheme-dependent and therefore doesn't do the hierarchical parsing that
42 would be expected. Oddly, Lynx seems to straddle both sides.
48 <a href="g:h">g:h</a> = g:h [R,Tim,2,3]
49 fred:///s//a/b/g:h [1]
51 <a href="g">g</a> = fred:///s//a/b/g [R,Tim,1,2,3]
53 <a href="./g">./g</a> = fred:///s//a/b/g [R,Tim,2,3]
54 fred:///s//a/b/./g [1]
56 <a href="g/">g/</a> = fred:///s//a/b/g/ [R,Tim,1,2,3]
58 <a href="/g">/g</a> = fred:///g [R,1,2,3]
61 <a href="//g">//g</a> = fred://g [R,1,2,3]
64 <a href="//g/x">//g/x</a> = fred://g/x [R,1,2,3]
67 <a href="///g">///g</a> = fred:///g [R,Tim,1,2,3]
69 <a href="./">./</a> = fred:///s//a/b/ [R,Tim,2,3]
72 <a href="../">../</a> = fred:///s//a/ [R,Tim,2,3]
73 fred:///s//a/b/../ [1]
75 <a href="../g">../g</a> = fred:///s//a/g [R,Tim,2,3]
76 fred:///s//a/b/../g [1]
78 <a href="../../">../../</a> = fred:///s// [R]
79 fred:///s//a/../ [Tim,2]
80 fred:///s//a/b/../../ [1]
83 <a href="../../g">../../g</a> = fred:///s//g [R]
84 fred:///s//a/../g [Tim,2]
85 fred:///s//a/b/../../g [1]
88 <a href="../../../g">../../../g</a> = fred:///s/g [R]
89 fred:///s//a/../../g [Tim,2]
90 fred:///s//a/b/../../../g [1]
93 <a href="../../../../g">../../../../g</a> = fred:///g [R]
94 fred:///s//a/../../../g [Tim,2]
95 fred:///s//a/b/../../../../g [1]