Two mention anchors?
-
So I recently added some local CSS to make the mentions stand out from other links, and I started noticing something: some mentions look a little different:
Inspection of the DOM reveals that there is an extra empty anchor tag just before the populated one:
Link to an affected post: https://what.thedailywtf.com/topic/19375/so-nobody-can-reply-to-me-here/7
-
Workaround:
.plugin-mentions-a:empty { display: none; }
-
Confirmed that the issue occurs when a user is mentioned multiple times in a single paragraph, such as in the first and third posts of The Mysterious Doubling Mention Tags. If there is a blank line between the mentions, such as in the second post of said topic, the empty mention link does not get generated.
-
Apparently quotes make things even more complicated, just see post 4 of the thread linked in my immediately previous post.