jsdom v15.2.1 Release Notes

Release Date: 2019-11-04 // about 1 month ago
    • 🛠 Fixed JSDOM.fromURL() handling of URLs with hashes in them, to no longer send the hash to the server and append an extra copy of it when constructing the Document. (rchl)
    • 🛠 Fixed focusing an already-focused element to correctly do nothing, instead of firing additional focus events. (eps1lon)
    • 🛠 Fixed typo in the not-implemented message for mediaElement.addTextTrack(). (mtsmfm)
    • ⬆️ Upgraded nwsapi minimum version to 2.2.0, which fixes issues with ::-webkit- prefixed pseudo-elements and namespaced attribute selectors.

Previous changes from v15.2.0

    • ➕ Added basic style inheritance in getComputedStyle() for the 'visibility' property. This sets the foundation for further work on inheritance, cascading, and specificity. (eps1lon)
    • ➕ Added shadowRoot.activeElement.
    • ➕ Added readystatechange events during document loading.
    • ➕ Added a stub for form.requestSubmit(), to match our existing stub for form.submit().
    • ⚡️ Changed el.tabIndex's default value, when no tabindex="" attribute was set, to reflect the updated specification.
    • ⚡️ Changed the exception thrown by el.attachShadow() on something that's already a shadow host, to reflect the updated specification.
    • 🛠 Fixed the validation logic for <input type="range">.
    • 🛠 Fixed selectEl.value when no <option> is selected to return the empty string, instead of the value of the first option. (tgohn)
    • 🛠 Fixed various correctness issues with new FormData(formElement). (brendo)
    • 🛠 Fixed error messages when parsing XML to include the filename, instead of using "undefined". (papandreou)
    • 🛠 Fixed the logic for reflected properties to not be affected by overwriting of el.getAttributeNS() or el.setAttributeNS().
    • 👍 Set canvas as an optional `peerDependency, which apparently helps with Yarn PnP support.