Skip to content

Commit 12ee080

Browse files
committed
Update restrictReferences logic for removing unused definitions.
1 parent a842a2e commit 12ee080

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ require(["core/pubsubhub"], (respecEvents) => {
8383
// now termsReferencedByTerms has ALL terms that
8484
// reference other terms, and a list of the
8585
// terms that they reference
86-
const internalRefs = document.querySelectorAll("a.internalDFN");
86+
const internalRefs = document.querySelectorAll("a[data-link-type='dfn']");
8787
for (const item of internalRefs) {
88-
const idref = item.getAttribute('href').replace(/^#/,"") ;
88+
const idref = item.getAttribute('href').replace(/^.*#/,"") ;
8989
// if the item is outside the term list
9090
if (!item.closest('dl.termlist')) {
9191
clearRefs(idref);

0 commit comments

Comments
 (0)