jsdom v16.2.2 Release Notes

Release Date: 2020-03-30 // about 4 years ago
    • ๐Ÿ’… Updated StyleSheetList for better spec compliance; notably it no longer inherits from Array.prototype. (ExE-Boss)
    • ๐Ÿ›  Fixed requestAnimationFrame() from preventing process exit. This likely regressed in v16.1.0.
    • ๐Ÿ›  Fixed setTimeout() to no longer leak the closures passed in to it. This likely regressed in v16.1.0. (AviVahl)
    • ๐Ÿ›  Fixed infinite recursion that could occur when calling click() on a <label> element, or one of its descendants.
    • ๐Ÿ›  Fixed getComputedStyle() to consider inline style="" attributes. (eps1lon)
    • ๐Ÿ›  Fixed several issues with <input type="number">'s stepUp() and stepDown() functions to be properly decimal-based, instead of floating point-based.
    • ๐Ÿ›  Fixed various issues where updating selectEl.value would not invalidate properties such as selectEl.selectedOptions. (ExE-Boss)
    • ๐Ÿ›  Fixed <input>'s src property, and <ins>/<del>'s cite property, to properly reflect as URLs.
    • ๐Ÿ›  Fixed window.addEventLister, window.removeEventListener, and window.dispatchEvent to properly be inherited from EventTarget, instead of being distinct functions. (ExE-Boss)
    • ๐Ÿ›  Fixed errors that would occur if attempting to use a DOM object, such as a custom element, as an argument to addEventListener.
    • ๐Ÿ›  Fixed errors that would occur when closing a window with outstanding requests to data: URLs.
    • ๐Ÿ›  Fixed sporadic issues with the value of <input type="month"> that could occur in some time zones and for some times.
    • ๐Ÿ›  Fixed document.implementation.createDocument() to return an XMLDocument, instead of a Document. (ExE-Boss)
    • ๐Ÿ›  Fixed running jsdom in a browser to detect globals more reliably. (ExE-Boss)