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

Re: anchors

From: Masayasu Ishikawa <mimasa@w3.org>
Date: Mon, 03 Dec 2001 16:03:22 +0900 (JST)
Message-Id: <20011203.160322.130243076.mimasa@w3.org>
To: www-html@w3.org
Vix <vixcc@yahoo.com> wrote:

> Same document, section 3.1:
> 
> " Relative URI references are distinguished from absolute URI in that
> they do not begin with a scheme name.  Instead, the scheme is
> inherited from the base URI, as described in Section 5.2."
> 
> Thus, I believe that the BASE URI must be taken into consideration in this case.

"as described in Section 5.2".  And Section 5.2, Step 2 clearly says
that the base URI is NOT inherited in this case.

> But the case described in here is not a Relative URI. It is an absolute URI.
> <BASE Href="http://url.com/">

You are confusing relative URI references (to be resolved as described
in Section 5.2) and the "Base URI within Document Content" as mentioned
in Section 5.1.1.

> Thus, Section 5.2 - Part 3 says:
> 
> 3) If the scheme component is defined, indicating that the reference
>       starts with a scheme name, then the reference is interpreted as an
>       absolute URI and we are done.  Otherwise, the reference URI's
>       scheme is inherited from the base URI's scheme component.
> 
> This means that in this case the URI is the BASE one.

No.  This merely says that if a URI reference takes a form like
"<a href="http://www.example.com/#top">top</a>", it is interpreted
as is (i.e. as an absolute URI reference) regardless of what the base
URI is.

Regards,
-- 
Masayasu Ishikawa / mimasa@w3.org
W3C - World Wide Web Consortium
Received on Monday, 3 December 2001 02:03:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:50 GMT