node-htmlparser icon indicating copy to clipboard operation
node-htmlparser copied to clipboard

TypeError: Tautologistics.NodeHtmlParser.DefaultHandler is not a constructor

Open skibulk opened this issue 7 years ago • 3 comments

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/

skibulk avatar Jan 11 '18 16:01 skibulk

Same here. Any help out there?

mpalmer78 avatar Jan 16 '18 19:01 mpalmer78

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); });

mpalmer78 avatar Jan 16 '18 19:01 mpalmer78

https://github.com/tautologistics/node-htmlparser/issues/57 - got this too... thanks!

jywarren avatar Mar 05 '19 18:03 jywarren