Test Crafted vs. Auto mentions
-
Continuing the discussion from Usercard broken on crafted @mention:
Continuing the discussion from Post count bug:
@racperouk doesn't seem to mind.
<a class="mention" href="/users/raceprouk">@racperouk</a> doesn't seem to mind.
as you can see here i crafted the mention link to have the right link, but the wrong visible text.
I was hoping that the user card would still work and that @raceprouk would get the notification.
wrong on both counts!
rather than getting the username from the link the user card JS seems to get it from the tag contents!
<a class="mention" href="/users/abarker">@abarkre</a>
@abarkre@abarker
@abarker
-
<a class="mention" href="/users/abarker">@abarkre</a>
@abarkre@abarker
@abarkerSeems that there's a difference in the HTML. It looks like the problem is probably that the
span
in the crafted mention is capturing the click and the resulting processing is based on the text in thespan
instead of thehref
attribute of the anchor.
-
...... why is the span there in the first place? i didn't put it there!
-
...... why is the span there in the first place? i didn't put it there!
I should hope not! That's my post!
To answer your question: Discourse.