Minor bug fixes to Balancer.
authorC. Scott Ananian <cscott@cscott.net>
Mon, 18 Jul 2016 20:54:24 +0000 (16:54 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Mon, 18 Jul 2016 21:42:04 +0000 (17:42 -0400)
commit5f0505b889b18b5bddd28d01e5b0d89756b46851
tree312f56ad34690b0fd53696c308c21da5d41c792f
parent0bcd4a16a46b3a8768f9ab01595cc598929ef63b
Minor bug fixes to Balancer.

This is a follow-up to the refactor done in
5726c9ceb0644af360d37b86351b97ddfcbee20c which prevents a crash when
the first entry in the stack happens to be a BalanceMarker (and thus
doesn't have a `$localName` property).  It also fixes an unrelated
issue where unpaired close-heading tags (like `</h3>`) get entity-escaped
instead of ignored.

Test cases exposing these bugs are added in
Ie854cf99f7e72bcca1bb8565ace558a43dcb6379.

Change-Id: Ia9a1d435be1be10512071f5ff626b68742863483
includes/tidy/Balancer.php