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

Re: problem with the <base href....> tag

From: Nir Dagan <nir@nirdagan.com>
Date: Sun, 19 Dec 1999 13:26:26 -0500
Message-Id: <199912191825.NAA24975@vega.brown.edu>
To: "Mathieu Pillard" <mpillard@club-internet.fr>, "Html Mailing List" <www-html@w3.org>
The value of the href attribute in the <base> tag should be an absolute URI.
such as http://www.w3.org/mysite/ and not /mysite/

From http://www.w3.org/TR/REC-html40/struct/links.html

<!ELEMENT BASE - O EMPTY               -- document base URI -->
  href        %URI;          #REQUIRED -- URI that acts as base URI --
Start tag: required, End tag: forbidden
Attribute definitions
href = uri [CT]
This attribute specifies an absolute URI that acts as the base URI for
resolving relative URIs.


At 03:11 AM 12/19/99 +0100, Mathieu Pillard wrote:
>i've a little problem with the <base> tag.
>I wanted to set the base href to a directory called mysite.
>So I put <BASE href="/mysite/"> in my document header.
>But, when I lanched IE5, the browser didn't understood the <base>
>correctly, it assumed that i wanted to put http:///green/ (I saw it
>because i looked to the status bar while my mouse was over a link)
>what's wrong ? does it only happens with IE5 ? How can I correct it,
>please ?
>icq 49445666
>PS: please excuse my bad and ugly english - I'm french -
Nir Dagan
Assistant Professor of Economics
Brown University 
Providence, RI

Received on Sunday, 19 December 1999 13:25:11 UTC

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