harryf/node-soupselect — Issue #12: It's not bulletproof
Author: demian85
Created: 2011-10-11 16:40:52+00:00
State: open

I found this nasty error trying to parse a very nasty html page. I'll post the html as soon as I find it...

/home/demian/node_modules/soupselect/lib/soupselect.js:163
if ( typeof currentContext[m].children !== 'undefined' ) {
^
TypeError: Cannot read property 'children' of undefined
at /home/demian/node_modules/soupselect/lib/soupselect.js:163:46
at DefaultHandler._callback (/home/demian/node_modules/Crawler.js:296:20)
at DefaultHandler.DefaultHandler$handleCallback [as handleCallback] (/home/demian/node_modules/htmlparser/lib/htmlparser.js:643:9)
at DefaultHandler.DefaultHandler$done [as done] (/home/demian/node_modules/htmlparser/lib/htmlparser.js:609:8)
at Parser.Parser$done [as done] (/home/demian/node_modules/htmlparser/lib/htmlparser.js:120:17)
at Parser.Parser$parseComplete [as parseComplete] (/home/demian/node_modules/htmlparser/lib/htmlparser.js:87:8)
at Request.callback (/home/demian/node_modules/Crawler.js:306:11)
at Request. (/home/demian/node_modules/request/main.js:314:21)
at Request.emit (events.js:64:17)
at IncomingMessage. (/home/demian/node_modules/request/main.js:295:19)