4 ms·
Hey David, it wasn't a stab at your blog - your post was great - anything that builds some more interest in node.js is positive :) I just hate reading about peo
by chrisohara 16y ago
Hey David, it wasn't a stab at your blog - your post was great - anything that builds some more interest in node.js is positive :) I just hate reading about people having trouble with JSDom and putting it down to the node platform. JSDom is an excellent parser, it just fails miserably when you feed it malformed HTML, and as we know, a majority of the internet falls in to this category. I needed a framework that could scrape anything on the web so I built it myself
- tmpvar 16y agojust to be clear, jsdom is not a parser. By default it uses node-htmlparser which is not very lenient. Have you tried using Aria's html5 parser? I hear it works better with malformed markup.