Skip to content

Commit 9a116a0

Browse files
authored
[Docs Site] Use |= instead of ^= in footnotes fnref selector (#19264)
1 parent 9ff44dc commit 9a116a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/footnotes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (footnotes) {
1010
const content = note.querySelector("p") as HTMLParagraphElement;
1111

1212
const fnrefs = document.querySelectorAll<HTMLAnchorElement>(
13-
`a[id^='${note.id.replace("fn", "fnref")}']`,
13+
`a[id|='${note.id.replace("fn", "fnref")}']`,
1414
);
1515

1616
for (const fnref of fnrefs) {

0 commit comments

Comments
 (0)