[Zope-CMF] CMF base tag rant
Dieter Maurer
dieter at handshake.de
Fri Mar 5 14:37:58 EST 2004
Simon Eisenmann wrote at 2004-3-4 09:18 +0100:
>Dieter Maurer wrote:
>> A browser should interpret the empty URL reference as a
>> reference to the current document -- independent of the value
>> of the "base" tag.
>
>Well all browsers handle relative urls dependent of the base tag (as
>they should imho), including the anchor links which are relative to the
>current base.
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.
--
Dieter
More information about the Zope-CMF
mailing list