[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: js/info.js (scan_toc): Change to how sidebar link
From: |
Per Bothner |
Subject: |
branch master updated: js/info.js (scan_toc): Change to how sidebar links are matched. |
Date: |
Wed, 17 Feb 2021 10:40:13 -0500 |
This is an automated email from the git hooks/post-receive script.
bothner pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 0c4d302 js/info.js (scan_toc): Change to how sidebar links are
matched.
0c4d302 is described below
commit 0c4d302f7dfc4e73d6c2a3cf9529c710f24b1590
Author: Per Bothner <per@bothner.com>
AuthorDate: Wed Feb 17 07:39:45 2021 -0800
js/info.js (scan_toc): Change to how sidebar links are matched.
This fixes updating the sidebar when using a http/https URL.
---
ChangeLog | 5 +++++
js/info.js | 3 +--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5b389fb..7eb39b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-02-17 Per Bothner <per@bothner.com>
+
+ * js/info.js (scan_toc): Change to how sidebar links are matched.
+ This fixes updating the sidebar when using a http/https URL.
+
2021-02-16 Per Bothner <per@bothner.com>
* js/info.js: Fix [Contents] link by creating a fresh page-node for
diff --git a/js/info.js b/js/info.js
index 3da6f60..75f6e0c 100644
--- a/js/info.js
+++ b/js/info.js
@@ -1160,8 +1160,7 @@
function
find_current (elem)
{
- /* XXX: No template literals for IE compatibility. */
- if (elem.matches ("a[href=\"" + url + "\"]"))
+ if (elem.localName === "a" && link_href(elem) == url)
{
elem.setAttribute ("toc-current", "yes");
var sib = elem.nextElementSibling;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: js/info.js (scan_toc): Change to how sidebar links are matched.,
Per Bothner <=