Add category name in ID property for extension row in Special:Version page
authorRamunas Geciauskas <ramunas@geciauskas.com>
Tue, 8 Mar 2016 16:04:27 +0000 (11:04 -0500)
committerJdlrobson <jrobson@wikimedia.org>
Thu, 22 Sep 2016 18:19:22 +0000 (18:19 +0000)
commite22cbe3d16f5fccbe865bbaec5867c7a8150c2aa
treea26be57fe642116ef3d1dadd66676f6f1d637b88
parente6e9e54be45a5ebd67b5e183cc008d8f883190b9
Add category name in ID property for extension row in Special:Version page

Extensions can belong to multiple different categories. When listing them in
the Special:Version page each entry is surrounded with HTML element with
ID property "mw-version-ext-{NAME}". This causes generation of duplicate
ID values, which is against W3C rules.
To preserve valid and compliant HTML while retaining ID values, change the
ID pattern to "mw-version-ext-{CATEGORY}-{NAME}".

Bug: T99025
Change-Id: Ifdde0704631f1ef41e4c83e7e8116003983e0808
includes/specials/SpecialVersion.php