From ac3d25e5febf26f2ebaa23311d10faeeda90effb Mon Sep 17 00:00:00 2001 From: "Kenneth G. Franqueiro" Date: Tue, 13 Jan 2026 16:50:01 -0500 Subject: [PATCH] Skip "New" paragraph when scanning definitions to make link titles --- script/wcag.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/wcag.js b/script/wcag.js index f20892d379..6da0ee607a 100644 --- a/script/wcag.js +++ b/script/wcag.js @@ -74,7 +74,8 @@ function termTitles() { // put definitions into title attributes of term references document.querySelectorAll('.internalDFN').forEach(function(node){ var dfn = document.querySelector(node.href.substring(node.href.indexOf('#'))); - if (dfn.parentNode.nodeName == "DT") node.title = dfn.parentNode.nextElementSibling.firstElementChild.textContent.trim().replace(/\s+/g,' '); + if (dfn.parentNode.nodeName == "DT") + node.title = dfn.parentNode.nextElementSibling.querySelector(":not(.change)").textContent.trim().replace(/\s+/g,' '); else if (dfn.title) node.title=dfn.title; }); }