[xiphos-users] Slightly odd behavior - reason?
Karl Kleinpaste
karl at kleinpaste.org
Wed Jan 17 15:00:04 EST 2024
On 1/17/24 13:32, Ed Backell wrote:
> Is this a known behavior? Is it easy to alter?
Yes. No.
The code wraps the entire verse text in <a href=...></a> to make it
clickable. Then the problem becomes that internal linkages in the module
markup also using <a href=...></a> create an HTML inconsistency of the
form <a href=...> some stuff here <a href=...>module-internal link
here</a> other stuff at the end</a>. The result is that "some stuff
here" is clickable but "other stuff at the end" is not. And frankly it's
just on the good graces of the HTML interpreter that any of the links
work at all, because it's a real inconsistency due to the fact that
<a></a> does not nest -- it would be fair, if unfortunate, for the HTML
handling to just say "hm, <a href>...and then <a href>? who are you
kidding, forget it."
This wasn't noticed until long after the feature, if you can call it
that, was in live usage, and tweaking the code to become sensitive to
the internal linkages within the text hasn't been seen as worth the trouble.
--karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://crosswire.org/pipermail/xiphos-users/attachments/20240117/10a8d261/attachment.htm>
More information about the xiphos-users
mailing list