RemexHtml tidy driver with p-wrapping
authorTim Starling <tstarling@wikimedia.org>
Fri, 17 Feb 2017 04:10:15 +0000 (15:10 +1100)
committerTim Starling <tstarling@wikimedia.org>
Wed, 8 Mar 2017 05:54:13 +0000 (16:54 +1100)
commit9341a00ed1b27edb86618cf7bbfaf8a9f720c124
tree02d9b224c61fa38f1838421c1dde90142164967d
parent476678e3f64efb9a0852e70b466c4d42ee0aa1c4
RemexHtml tidy driver with p-wrapping

Pull in the RemexHtml library, which is an HTML 5 library I recently
created.

RemexCompatMunger mutates the event stream, inserting <mw:p-wrap>
elements where necessary, and occasionally taking even more invasive
action such as reparenting and removing nodes maintained in Serializer's
tree.

RemexCompatFormatter produces a MediaWiki-style serialization which is
relatively compatible with existing parser tests. It also does final
empty element handling, including translating <mw:p-wrap> to <p>

Tests are imported from both Html5Depurate and Subbu's pwrap.js.

Depends-On: I864f31d9afdffdde49bfd39f07a0fb7f4df5c5d9
Change-Id: I900155b7dd199b0ae2a3b9cdb6db5136fc4f35a8
autoload.php
composer.json
includes/tidy/RemexCompatFormatter.php [new file with mode: 0644]
includes/tidy/RemexCompatMunger.php [new file with mode: 0644]
includes/tidy/RemexDriver.php [new file with mode: 0644]
includes/tidy/RemexMungerData.php [new file with mode: 0644]
tests/phpunit/includes/tidy/RemexDriverTest.php [new file with mode: 0644]