From 00d97955acbe9c4837aeb7bfa980df3cf34759c9 Mon Sep 17 00:00:00 2001 From: Tom Medema Date: Thu, 5 Apr 2018 11:33:33 -0700 Subject: [PATCH] negative strict equality check because config is not always available in test suite --- src/parser/model/ParserHtml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/model/ParserHtml.js b/src/parser/model/ParserHtml.js index 0f56df1f5..c07ba3b4b 100644 --- a/src/parser/model/ParserHtml.js +++ b/src/parser/model/ParserHtml.js @@ -153,7 +153,7 @@ module.exports = config => { } // Throw away empty nodes (keep spaces) - if (config.removeEmptyTextNodes) { + if (config.removeEmptyTextNodes !== false) { const content = node.nodeValue; if (content != ' ' && !content.trim()) { continue;