Hacker News new | ask | show | jobs
by tmpvar 5620 days ago
just 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.