W3C home > Mailing lists > Public > uri@w3.org > September 1996

RFC1808 bug? (fragment syntax)

From: Dan Connolly <connolly@w3.org>
Date: Fri, 20 Sep 1996 22:22:30 GMT
Message-Id: <199609202222.WAA01129@beach.w3.org>
To: uri@bunyip.com

The URL RFCs are definitely getting crufty...

------- Start of forwarded message -------
From: MACRIDES@SCI.WFBR.EDU (Foteos Macrides)
Subject: Re: Extended URL for frames
To: www-html@w3.org
Date: 16 Sep 1996 00:09:52 +0200
Message-ID: <01I9IM1G4HH4005LBE@SCI.WFBR.EDU>

jrd@netcom.com (Jon Degenhardt) wrote:
>Daniel W. Connolly <connolly@w3.org> writes:
>> Hmmm... I'm pretty sure I've seen implementations that scan
>> from the right for the first #, and consider that to be the
>> split between the URL and the fragment identifier.
>This is the first step in the parsing algorithm described in RFC 1808,
>"Relative Uniform Resource Locators" (http://www.w3.org/pub/WWW/

	RFC1738 was written back in the days when the assumption was that
there'd be only one '#', as a fragment delimiter, and that in all other
cases it would be hex escaped.  It also recommends hex escaping for URL
schemes which do no normally have a fragment.  So based on that, the
direction of parsing for the '#' is irrelevant.  The libwww, through the
current W3C Reference Library, parses for the fragment from right to
left, and thus will use the last one if there is more than one unescaped
'#'.  One would expect right to left parsing for NS, since it started off
as a rewrite of XMosaic, for the Mosaics themselves, for Arena, probably
Amaya, and for most if not all old and moderately old browsers (i.e.,
they'll "fail" the  "test" as did NS).

	The wording of RFC1808 instead indicates left to right parsing,
and implies that non-hex escaped '#'s can occur to the right of the one
which delimits the fragment.  The MSIE parser probably was guided by
RFC1808, which is probably why the "test" "worked" with it.


 Foteos Macrides            Worcester Foundation for Biomedical Research
 MACRIDES@SCI.WFBR.EDU         222 Maple Avenue, Shrewsbury, MA 01545

------- End of forwarded message -------
Received on Monday, 23 September 1996 12:12:46 UTC

This archive was generated by hypermail 2.4.0 : Sunday, 10 October 2021 22:17:33 UTC