Packages

jsdom

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

Upgrading jsdom From 0.3.3 to 0.11.1

41 releases in betweenevery note read

Other targets from 0.3.3Latest31.0.1
  1. 0.3.3yours
  2. 1 release
  3. 0.4.0major
  4. 2 releases
  5. 0.5.0major
  6. 7 releases
  7. 0.6.0major
  8. 5 releases
  9. 0.7.0major
  10. 0.8.0major
  11. 11 releases
  12. 0.9.0major
  13. 0.10.0major
  14. 6 releases
  15. 0.11.0major
  16. 0.11.1target

Before you upgrade

Tick each one off as you go
  • Breaking0.8.1
  • Breaking0.7.0

Release by release

  1. 0.11.1

    1 Jul 20143 fixes
    • Fixed

      Attributes that are reflected as properties should be '' when not present, instead of null. (Note that getAttribute still returns null for them).

    • Fixed

      textContent now works for nodes that do not have children, like text nodes for example.

    • Fixed

      jsdom.jQueryify was using the wrong URL for jQuery by default.

  2. 0.11.0

    16 Jun 20141 new · 4 fixes
    • New

      Add: New default level, living, reflecting our focus on the DOM Living Standard and the HTML Living Standard, which are what browsers actually implement. This should open the door for more features of the modern DOM and HTML specs to be implemented in jsdom.

    • Fixed

      Node.prototype.compareDocumentPosition implemented correctly; various document position constants added to the Node constructor.

    • Fixed

      DocumentType.prototype.parentNode now returns the document node, not null.

    • Fixed

      Various navigator properties are now getters, not data properties.

    • Fixed

      A bug involving invalid script paths and jsdom.jQueryify.

  3. 0.10.6

    30 May 20143 fixes
    • Fixed

      The presence of String.prototype.normalize, which is available by default in Node 0.11.13 onwards, caused reflected attributes to break.

    • Fixed

      Iframes now correctly load about:blank when the src attribute is empty or missing.

    • Fixed

      Documents containing only whitespace now correctly generate wrapper documents, just like blank documents do.

  4. 0.10.5

    4 Apr 20142 fixes
    • Fixed

      The list of void elements has been updated to match the latest HTML spec.

    • Fixed

      When serializing void elements, don't include a /: i.e. the result is now <br> instead of <br />.

  5. 0.10.4

    30 Mar 20141 fix
    • Fixed

      Another case was found where jQuery 1.11's show() method would cause errors.

  6. 0.10.3

    15 Mar 20141 fix
    • Fixed

      Various defaults on HTMLAnchorElement and window.location should not be null; they should usually be the empty string.

  7. 0.10.2

    8 Mar 20142 fixes
    • Fixed

      Using jQuery 1.11's show() method would cause an error to be thrown.

    • Fixed

      window.location properties were not updating correctly after using pushState or replaceState.

  8. 0.10.1

    8 Feb 20141 fix
    • Fixed

      window.location.port should default to "", not null.

39 other lines we could not sort, mostly version bumps
  • Add: Node.prototype.parentElement.

    0.11.1
  • Add: Node.prototype.contains now implemented.

    0.11.0
  • Add: navigator.cookieEnabled now implemented; it always returns true.

    0.11.0
  • Change: DOCTYPEs no longer have their name property uppercased during parsing, and appear in the output of document.innerHTML.

    0.11.0
  • Add: Remaining URL properties to window.location and HTMLAnchorElement.

    0.10.6
  • Tweak: lazy-load the request module, to improve overall jsdom loading time.

    0.10.6
  • Add: querySelector and querySelectorAll methods to DocumentFragments.

    0.10.4
  • Add: A more complete document.cookie implementation, that supports multiple cookies. Note that options like path, max-age, etc. are still ignored.

    0.10.0
  • Add: port and protocol to HTMLAnchorElement.

    0.9.0
  • Add: Store and use cookies between requests; customizable cookie jars also possible.

    0.8.11

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.