[Zope-CMF] Re: CMF base tag rant

Tres Seaver tseaver at zope.com
Mon Mar 8 08:29:27 EST 2004


Simon Eisenmann wrote:

> Dieter Maurer wrote:
> | Simon Eisenmann wrote at 2004-3-4 09:18 +0100:
> 
> | RFC2396, section 5.2 specifies how relative URL references should
> | be translated into absolute URLs. It reads:
> |
> |    1) The URI reference is parsed into the potential four components and
> |       fragment identifier, as described in Section 4.3.
> |
> |    2) If the path component is empty and the scheme, authority, and
> |       query components are undefined, then it is a reference to the
> |       current document and we are done.
> |
> | Thus, a relative URL reference of the form "#fragment" refers
> | to the current document, independent of the base URI.
> |
> 
> Hum .. this part of the rfc doesnt say anything what _is_ the current
> document. I think the base tag is used to set this one. So the browser
> should use the base uri, shouldnt it?

Nope.  The "current document" is specified by the current URL, less the 
fragment part.  The base tag is used for finding *other* resources;  the 
browser should not even need to re-fetch the current document in order 
to jump to a named anchor, so it doesn't need to synthesize a URL at all 
(which is what the base tag is for).

Tres.
-- 
===============================================================
Tres Seaver                                tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com




More information about the Zope-CMF mailing list