node-htmlparser
node-htmlparser copied to clipboard
TypeError: Tautologistics.NodeHtmlParser.DefaultHandler is not a constructor
Hi I copied and pasted your example usage code for browsers and I get this error: TypeError: Tautologistics.NodeHtmlParser.DefaultHandler is not a constructor.
https://jsfiddle.net/skibulk/Lhnmjjs8/
Same here. Any help out there?
Found the issue. DefaultHandler was changed to HtmlBuilder. Updated code would be:
var builder = new Tautologistics.NodeHtmlParser.HtmlBuilder(function (error, dom) { if (error) console.log(error); });
https://github.com/tautologistics/node-htmlparser/issues/57 - got this too... thanks!