bug-texinfo
[Top][All Lists]
Advanced

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

Re: link handling in js-reader


From: Jacob Bachmeyer
Subject: Re: link handling in js-reader
Date: Wed, 03 Mar 2021 20:25:59 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.22) Gecko/20090807 MultiZilla/1.8.3.4e SeaMonkey/1.1.17 Mnenhy/0.7.6.0

Per Bothner wrote:
[...]
Ideally, one could determine which links are internal by checking for an
entry in the table-of-contents.  However, that is bit complicated,
mainly because sub-pages don't have access to the ToC, so it would
have to involve message sending between JavaScript contexts (no big deal).
[...]
Comments?

The texinfo tool that generates HTML has the ToC, so really the correct solution here would be for the HTML output to include the 'target' attributes directly. JS can then determine internal links by the absence of that attribute and the features at least somewhat gracefully degrade if JS is disabled.

This leads to another question: are the Info manuals to be taken as a collective whole? Phrased differently, should a link to a node in a different Info manual be considered "external"?


-- Jacob



reply via email to

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