Client-side migration for empty li preservation
authorTim Starling <tstarling@wikimedia.org>
Wed, 14 Oct 2015 03:16:44 +0000 (23:16 -0400)
committerSubramanya Sastry <ssastry@wikimedia.org>
Wed, 28 Oct 2015 23:35:18 +0000 (23:35 +0000)
commiteb40eb0f1834bd480f15cc9e14dd9c31bfe42e25
tree65cc9c6689d98fba46a309080f815153cb6721eb
parent13a35dac582cf44ce8e2b6f3e9448b4b6c6f3874
Client-side migration for empty li preservation

It is desirable in terms of user-friendly syntax to display an empty
list item if the user adds one to the source. However, we suspect that
this change will break the rendering of existing templates. So, preserve
the empty <li> element, but style it with display:none so that there is
no user-visible change. Changes can then be observed with a user script,
then eventually the CSS can be removed so that the desired behaviour will
be user visible.

This is imagined as a staged deployment of T89331, i.e. it is better to
resolve differences with Html5Depurate one at a time instead of
deploying it all at once.

The CSS module is specified in parser/MWTidy.php since the tidy driver
hierarchy is not meant to be so closely tied to the MW environment.

Bug: T49673
Change-Id: Ifb44b782c617240e3de73dcdf76c8737c7307d94
includes/parser/MWTidy.php
includes/parser/Parser.php
includes/tidy/RaggettWrapper.php
resources/Resources.php
resources/src/mediawiki/mediawiki.raggett.css [new file with mode: 0644]
tests/parser/parserTests.txt