Fix stackNoTrimWhitespace and stackNoCollapseWhitespace housekeeping
authorAndreas Lind <andreas@one.com>
Wed, 24 May 2017 13:26:49 +0000 (15:26 +0200)
committerAndreas Lind <andreas@one.com>
Thu, 25 May 2017 06:35:10 +0000 (08:35 +0200)
commit9a73a4de11b798e5f79b0a8ee9d7573f1dc570f9
tree0dc9b4df7fc44968c2a23f3f5659566f39740214
parent1202bc5dfe45a4d3b7ada32bbdb13a3c72feccbe
Fix stackNoTrimWhitespace and stackNoCollapseWhitespace housekeeping

Previously the first encountered end tag matching the top item would
clear it from the stack, regardless of whether the two were actually
a start + end pair.
src/htmlminifier.js
tests/minifier.js