4 ms·
jsdom is great if you want to parse HTML and don't care about speed. The last time I tried it (which was <1 year ago), jsdom didn't have full support for namesp
by simonster 14y ago
jsdom is great if you want to parse HTML and don't care about speed. The last time I tried it (which was <1 year ago), jsdom didn't have full support for namespaces, so it's not so great if you want to parse non-trivial XML. I haven't tried dom.js, but until recently, I don't think it would run under node at all because it needs proxies and WeakMaps.
Even for HTML, jsdom is too slow to use in production, at least for our use cases. (My tests run at least one order of magnitude faster in xpcshell. I can easily download HTML faster than jsdom can parse it.)