Welcome to Codidact Meta!
Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.
Footnote element ID selectors are global per page [duplicate]
Closed as duplicate by trichoplax on May 31, 2025 at 10:55
This question has been addressed elsewhere. See: Footnotes with the same number in different posts on the same page
This question was closed; new answers can no longer be added. Users with the reopen privilege may vote to reopen this question if it has been improved or closed incorrectly.
Footnotes in a page have global #id identifiers; this means that any one answer's footnote (like this[1]) will go to the matching footnote for the first question/answer shown when scrolling. (Lemma: multiple HTML elements may have the same ID, currently #fn1
goes to the footnote and #fnref1
back to the text)
For example, go to this question (sorted by score) on Code Golf Codidact Meta and go to the heading titled "Anonymous function". Clicking the footnote tag will take you to an earlier answer's footnote instead of the footnote for that answer.
Similarly, going back to the text from the footnote can send you to other questions/answers.
-
for reference, this is a footnote ↩︎
1 comment thread