Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've found jsdom to break for quite a bit of real-world crap HTML. Next time, I'm going to try driving phantom.js with node using https://github.com/sgentle/phantomjs-node

I've had pretty good luck with phantom.js, but it is somewhat difficult to debug.



FYI, JSDOM isn't the default parser in node.io. It uses a faster and more forgiving parser if you can survive with a subset of jQuery functionality (https://github.com/chriso/node.io/wiki/API---CSS-Selectors-a...)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: