lynx-dev
[Top][All Lists]
Advanced

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

Re: [Lynx-dev] shebang URL hash - #!


From: Thorsten Glaser
Subject: Re: [Lynx-dev] shebang URL hash - #!
Date: Wed, 27 Oct 2021 14:30:31 +0000 (UTC)

Klaus-Peter Wegge dixit:

> #! is called the shebang URL hash, used to hint to search engines that

There’s no such thing as a “shebang hash”. This is simply a hash
that starts with an exclamation mark.

Normally, a hash in an URI (scheme:authority/path?query#hash) would
be resolved by a webbrowser by scrolling to the position of element
with the corresponding identifier (used to be <a name="hash"> but
for a while, any element with id="hash" attribute could be used, and
a name=… was removed from the standard).

> this site is using Ajax to display another page.

AJAX means “asynchronous JavaScript and XML”. Merkste selbst, ne? ☻
(sorry, this is rather idiomatic)

> href="https://docs.din.de/din-documents/ui/#!/doc/default/9637d154-ffae-4b40-97c1-7274b6faa837?p=din-email-docs-page";>Komprimieren

This simply means, to normal webbrowsers, to scroll to an element with
id="!/doc/default/9637d154-ffae-4b40-97c1-7274b6faa837?p=din-email-docs-page"
(which is probably invalid XML).

ECMAscript client-side code can intercept this (window.location.hash)
and do other things with it, but that requires a full DOM and ECMAscript
implementation, which I’m thankful for lynx not to have.

bye,
//mirabilos
-- 
>> Why don't you use JavaScript? I also don't like enabling JavaScript in
> Because I use lynx as browser.
+1
        -- Octavio Alvarez, me and ⡍⠁⠗⠊⠕ (Mario Lang) on debian-devel



reply via email to

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