Packages

jsdom

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

Upgrading jsdom From 7.0.1 to 7.2.2

6 releases in betweenevery note read

Other targets from 7.0.1Latest31.0.1
0
changes to make
0
advisories fixed
1
new
9
fixes

Release by release

  1. 7.2.2

    27 Dec 20152 fixes
    • Fixed

      Fixed canvasEl.toDataURL(), with the canvas npm package installed; a recent update to the canvas package broke how we were passing arguments to do.

    • Fixed

      Fixed data: URL parsing to allow empty contents, e.g. data:text/css;base64,.

  2. 7.2.1

    11 Dec 20151 fix
    • Fixed

      Fixed a regression in XML parsing of attributes with a namespace URL but no prefix (e.g. <math xmlns="http://www.w3.org/1998/Math/MathML">).

  3. 7.2.0

    6 Dec 20151 new · 3 fixes
    • New

      Added support for text selection APIs on <input> and <textarea>! (sjelin and yaycmyk)

    • Fixed

      Fixed the <canvas> tag to reset its contents when its width or height changed, including the change from the default 300 × 150 canvas. (Applies only when using the canvas npm package.)

    • Fixed

      Fixed an issue where HTMLCollections would get confused when they contained elements with numeric ids or names.

    • Fixed

      Fixed an issue with doctype parsing confusing the system ID and public ID.

  4. 7.1.1

    2 Dec 20152 fixes
    • Fixed

      Fixed document.writeln to correctly handle multiple arguments; previously it ignored all after the first.

    • Fixed

      Fixed FileList objects to no longer have a property named "undefined".

  5. 7.1.0nothing new or fixed in the note

  6. 7.0.2

    22 Oct 20151 fix
    • Fixed

      Fixed an issue where inside jsdom <script> code, /regexpliteral/ instanceof RegExp would be false.

10 other lines we could not sort, mostly version bumps
  • Replaced our default XML parser with sax, thus fixing many (but not all) issues with XML and XHTML parsing. To get a flavor of the issues fixed, check out these now-closed bugs: #393, #651, #415, #1276.

    7.2.0
  • Made the task posted by postMessage use the inside-jsdom timer queue, instead of the Node.js one. This allows easier mocking.

    7.2.0
  • When <iframe>s have unresolvable URLs, jsdom will no longer crash, but will instead just load about:blank into them. (This is the spec behavior.)

    7.1.1
  • Our EventTarget implementation has been rewritten from scratch to follow the spec exactly. This should improve any edge case misbehaviors.

    7.1.0
  • Our Event class hierarchy has been rewritten and fleshed out, fixing many gaps in functionality.

    7.1.0
  • The Attr class and related attribute-manipulating methods has been rewritten to follow the latest specification. In particular, Attr is no longer a subclass of Node, and no longer has child text nodes.

    7.1.0
  • The <template> element implementation has been greatly improved, now passing most web platform tests. Its .content property no longer has an extra intermediate document fragment; it no longer has child nodes; and related parts of the parser and serializer have been fixed, including innerHTML and outerHTML, to now work as specified.

    7.1.0
  • querySelector, querySelectorAll, and matches now correctly throw "SyntaxError" DOMExceptions for invalid selectors, instead of just Error instances.

    7.1.0
  • Node.prototype's insertBefore, replaceChild, and appendChild methods now check their arguments more correctly.

    7.1.0
  • The browser builds now have regained the ability to fetch URLs for content and the like; this had been broken due to an issue with the browser-request package, which is no longer necessary anyway.

    7.1.0

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.