Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ignoreWhitespace with tautologistics/node-htmlparser

  • Loading branch information...
commit a95449196086d2aba17b72f1ba8b0d4ae334aaea 1 parent 0f25574
@kapouer authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/jsdom/browser/htmltodom.js
View
2  lib/jsdom/browser/htmltodom.js
@@ -56,7 +56,7 @@ function HtmlToDom(parser) {
} else if (parser.DefaultHandler){
// tautologistics/node-htmlparser
- var handler = new parser.DefaultHandler(),
+ var handler = new parser.DefaultHandler(null, { ignoreWhitespace: true }),
parserInstance = new parser.Parser(handler);
parser.ParseHtml = function(rawHtml){
parserInstance.includeLocation = false;
Please sign in to comment.
Something went wrong with that request. Please try again.