W3C home > Mailing lists > Public > www-html@w3.org > December 2001

Re: anchors

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sat, 08 Dec 2001 18:04:59 +0100
To: Masayasu Ishikawa <mimasa@w3.org>
Cc: www-html@w3.org
Message-ID: <dfh41uo7q7elkkf087rpfl35cvg3q21106@4ax.com>
* Masayasu Ishikawa wrote:
>"Hoyt, Phil" <Phil.Hoyt@globeinteractive.com> wrote:
>> I think it's common practice to link using href="#name" to an anchor within
>> the same document. I've been unable, though, to find a way either in the
>> real world or in the html spec to use a similar syntax to link to an anchor
>> within the same document as the link when <base href="http://www.url.com">
>> is being used. Instead, such a link refers to an anchor on the base
>> document.
>Actually such a behavoir is wrong [...]

>So a fragment identifier should be interpreted as a reference within
>the current document, regardless of the base URI.  Unfortunately,
>as you noticed, many user agents do it wrong.
>[RFC 2396] http://www.rfc-editor.org/rfc/rfc2396.txt

HTML 4.01 doesn't reference this RFC, it references RC 1808 which
mandates the described behaivour. User Agents don't do it "wrong",
they do it backwards compatible.
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/
Received on Saturday, 8 December 2001 12:06:04 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:58 UTC