RemexCompatMunger: Don't call endTag() in case B/b
authorTim Starling <tstarling@wikimedia.org>
Mon, 6 Aug 2018 02:30:51 +0000 (12:30 +1000)
committerTim Starling <tstarling@wikimedia.org>
Tue, 7 Aug 2018 04:07:31 +0000 (14:07 +1000)
commit10c8cfea305ec1d450b16ad54ebddb5f910016f4
tree3e0a84b4cbc02c00be9c9fb2c187a8c7a81bb379
parent7eebedcfcd4494b75b2e6625fa81a25f8cd6e60f
RemexCompatMunger: Don't call endTag() in case B/b

This was naïve, the linked bug documents a case where endTag() was
called despite children of the p-wrap still being in TreeBuilder's
stack. Instead, wait for the parent of the p-wrap to have endTag()
called on it, I've submitted a patch which will clean up the node in
that case.

Bug: T200827
Change-Id: I34694813eace9cadabf2db8f9ccca83d1368cfad
includes/tidy/RemexCompatMunger.php
tests/phpunit/includes/tidy/RemexDriverTest.php