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 -->
<!ATTLIST BASE
  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.

Regards,
Nir

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 ?
>
>Mat
>www.dioxine.com/king
>icq 49445666
>
>PS: please excuse my bad and ugly english - I'm french -
> 
===================================
Nir Dagan
Assistant Professor of Economics
Brown University 
Providence, RI
USA

http://www.nirdagan.com
mailto:nir@nirdagan.com
tel:+1-401-863-2145
Received on Sunday, 19 December 1999 13:25:11 GMT

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