From: Larix Kortbeek Date: Tue, 18 Feb 2014 00:27:41 +0000 (+0100) Subject: Fixed bug in custom testers X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=474a6a327c3963d6f94a72e61a163342aed436a5;p=html-minifier.git Fixed bug in custom testers Even when a `canCollapseWhitespace` 'tester' was passed, it was never used. The code in `_canCollapseWhitespace` erroneously refered to `options.canTrimWhitespace`. This change fixes this. --- diff --git a/src/htmlminifier.js b/src/htmlminifier.js index ca7d946..ecda889 100644 --- a/src/htmlminifier.js +++ b/src/htmlminifier.js @@ -310,7 +310,7 @@ t = new Date(); function _canCollapseWhitespace(tag, attrs) { - return canCollapseWhitespace(tag) || options.canTrimWhitespace(tag, attrs); + return canCollapseWhitespace(tag) || options.canCollapseWhitespace(tag, attrs); } function _canTrimWhitespace(tag, attrs) {