Re: Is this use of BASE kosher?

Roy Fielding (fielding@beach.w3.org)
Mon, 31 Jul 95 14:37:06 EDT

Peter Flynn writes:
>Peter Sheerin quotes:
>> 10. Appendix - Embedding the Base URL in HTML documents
>[...]
>> <!doctype html public "-//IETF//DTD HTML//EN">
>> <HTML><HEAD>
>> <TITLE>An example HTML document</TITLE>
>> <BASE href="http://www.ics.uci.edu/Test/a/b/c">
>> </HEAD><BODY>
>> ... <A href="../x">a hypertext anchor</A> ...
>> </BODY></HTML>
>
>This still doesn't explain how to cater for:
>
>> <!doctype html public "-//IETF//DTD HTML//EN">
>> <HTML><HEAD>
>> <TITLE>An example HTML document</TITLE>
>> <BASE href="http://www.ics.uci.edu/Test/foobar.html">
>> </HEAD><BODY>
>> ... <A href="blort.html">a hypertext anchor</A> ...
>> </BODY></HTML>

Yes it does. The answer is <http://www.ics.uci.edu/Test/blort.html>

>I do still get a strong feeling that BASE urls should end with a directory
>name, not a filename.

I think the list could make do with a little less "strong feeling"
and a little more reading of RFC 1808. It was written to answer these
questions in painstaking detail.

....Roy T. Fielding Department of ICS, University of California, Irvine USA
Visiting Scholar, MIT/LCS + World-Wide Web Consortium
(fielding@w3.org) (fielding@ics.uci.edu)