- Added
jsdom.nodeLocation(node)to get the location within the source text of a given node. - Added
jsdom.reconfigureWindow(window, { top })to allow changing the value of a window'stopproperty. - Added the
elementargument to the custom resource loader, so you can customize resource loads depending on which element loaded them. - Updated
getElementsByClassNameto match the spec. It now correctly splits on whitespace to try to find elements with all the given classes; it returns aHTMLCollectioninstead of aNodeList; and it memoizes the result. - Updated
NodeListandHTMLCollectionto match the spec. The most noticable change is thatHTMLCollectionno longer inherits fromNodeList.