Packages

jsdom

31.0.1 · 13 Nov 2026MIT166.2M / weekRepositoryHomepagenpmAtom feed

Your version

0.3.0

10 Dec 2012Where it was published

0.11.1 is the newest release of 0.3.x.

In short

1 new3 fixed4 changed

Release note

  • A real querySelector implementation, courtesy of the nwmatcher project, solves many outstanding querySelector bugs.

  • Add: matchesSelector, again via nwmatcher.

  • Add: Support for styles coming from <style> and <link rel="stylesheet"> elements being applied to the results of window.getComputedStyle.

  • Add: Basic implementation of focus() and blur() methods on appropriate elements. More work remains.

  • Script filenames containing spaces will now work when passed to jsdom.env.

  • Elements with IDs toString, hasOwnProperty, etc. could cause lots of problems.

  • Change: A window's load event always fires asynchronously now, even if no external resources are necessary.

  • Change: Turning off mutation events is not supported, since doing so breaks external-resource fetching.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.