Restore old HTML structure for history section links
authorKunal Mehta <legoktm@member.fsf.org>
Sat, 1 Dec 2018 08:47:03 +0000 (00:47 -0800)
committerKunal Mehta <legoktm@member.fsf.org>
Mon, 3 Dec 2018 20:42:56 +0000 (12:42 -0800)
commit0c9cf24b056bcdf466fe03807d13785c24993c72
tree9b41e58caafcc8bf75d3f64d7abb6eb155c3fdad
parentd691704de2ff3e4871e4ed37438354940cff0708
Restore old HTML structure for history section links

A follow-up to 0a8e16d7cfe6c thanks to Anomie's code review.

The section title is now inside <span dir="auto"> and <span
class="autocomment">, as before. $wgLang->getDirMark() between the arrow
and the text was restored.

Given the comment
 /* External links */ removed bogus entries
the HTML before 0a8e16d7cfe6c looked like:
 <a href="#External_links">→</a>‎<span dir="auto"><span
 class="autocomment">External links: </span> removed bogus entries</span>
after this change, it will look like:
 <span dir="auto"><span class="autocomment"><a
 href="#External_links">→‎External links</a>: </span> removed bogus
 entries</span>

The issue of having links be inside other links will be addressed in a
separate patch.

Bug: T165189
Change-Id: I31d87a87ccaf50de58fdd0621c46133b2881b490
includes/Linker.php
tests/parser/parserTests.txt
tests/phpunit/includes/LinkerTest.php