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 17:30:41 -0500 (EST)

Foteos Macrides <address@hidden> wrote:
>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.

        Note that if, in addition to including the current document's
URL with the fragments in the OBJECT, you put BANNER around the OBJECT
(and it technically needs a blocking element for what you're doing,
anyway), it'll be fully what you want for clients (such as Lynx, EmacWWW,
UdiWWW and Arena 8-) which support BANNER, and still work properly with
*all* deployed clients.  Indeed, it would be a complex yet *perfect*
example of how to set up "advanced features with graceful degradation"
for any client!  And it should validate with the HTML Pro update.

                                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]