Linker: Render selflinks as href-less classed <a>s, not <strong>s
authorJames D. Forrester <jforrester@wikimedia.org>
Thu, 16 Mar 2017 22:19:36 +0000 (15:19 -0700)
committerJforrester <jforrester@wikimedia.org>
Wed, 29 Mar 2017 23:12:17 +0000 (23:12 +0000)
commit9f53096051639c08cba43f9b72650ef5adee1df0
treeffe48d1fbb8ea669dde9f48d12b9b2acabe39881
parentd10ace77d37899fd1110fc0b51e17e9e518c5615
Linker: Render selflinks as href-less classed <a>s, not <strong>s

Self-links are still semantically links, and representing them as <strong>s
is inelegant and more important a real pain to work with, especially in
contexts where they may change state (like inside an editor).

Instead, render them as <a>, with no href to avoid user agent style over-
rides and with a class to style them as before, named 'mw-selflink' to go
with 'mw-redirect'. This allows much easier adjustment later. The old CSS
class 'selflink' is retained for backwards compatibility, but deprecated.

Bug: T160480
Change-Id: If058843924c3b30c116df2520aef93a004d98a5d
RELEASE-NOTES-1.29
includes/Linker.php
resources/src/mediawiki.legacy/shared.css
tests/parser/parserTests.txt