lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LYNX-DEV Question about BASE implementation


From: Foteos Macrides
Subject: Re: LYNX-DEV Question about BASE implementation
Date: Tue, 22 Oct 1996 09:21:02 -0500 (EST)

Subir Grewal <address@hidden> wrote:
>[...]
>found in the document at the URL
>http://www.nyu.edu/pages/wsn/subir/canyu.html
>
><html> <head>
><base href="http://www.nyu.edu/pages/advocacy/index.html";>
  ^^^^       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
></head>
>
><body>
><h1>CANYU</h1>
>
><p>Internal link to <a href="#fragment">a fragment of this
                              ^^^^^^^^^
>document</a> (i.e. http://www.nyu.edu/pages/wsn/subir/canyu.html) </p>

        Having specified a BASE, the HREF="#fragment" logically refers
to a fragment in that BASE, not the current document, so if it indeed
refers to a fragment in the current document, you must include the
current document's complete URL in the HREF:

        <A HREF="http://www.nyu.edu/pages/wsn/subir/canyu.html#fragment";>...

Lynx will not retrieve and render the current document again, but simply
position the start of the fragment at the top of the page.  When you
don't have a BASE tag, and use just "#fragment", Lynx still must
resolve it (to "http://www.nyu.edu/pages/wsn/subir/canyu.html#fragment";)
before actually doing anything with it, so using a complete URL plus
fragment in the HREF simply causes Lynx to skip the resolving step.

                                Fote

=========================================================================
 Foteos Macrides            Worcester Foundation for Biomedical Research
 address@hidden         222 Maple Avenue, Shrewsbury, MA 01545
=========================================================================
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]