From 3b7efc748f14ca615e9b07737e882f3ba9105e18 Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Sat, 15 Feb 2020 19:07:23 -0500 Subject: [PATCH] Attempt to fix syntax error for toc js --- resources/scripts/toc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/scripts/toc.js b/resources/scripts/toc.js index ef3d7388..4ff96a28 100644 --- a/resources/scripts/toc.js +++ b/resources/scripts/toc.js @@ -36,7 +36,7 @@ function ScrollSpy() { sections[section].offsetTop <= scrollPos ) { id = mw.util.escapeIdForAttribute(sections[section].id); - node = document.querySelector("a[href * = '" + id + "']").parentNode; + node = document.querySelector("a[href * = '#" + id + "']").parentNode; active = document.querySelector(".active"); if (active !== null) { active.classList.remove("active");