Browse Source

negative strict equality check because config is not always available in test suite

pull/1023/head
Tom Medema 9 years ago
parent
commit
00d97955ac
  1. 2
      src/parser/model/ParserHtml.js

2
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;

Loading…
Cancel
Save