npm jsdom 8.1.0

latest releases: 31.0.0, 30.1.3, 30.1.2...
10 years ago
  • Added attr.nodeName, which was recently re-added to the spec.
  • Added click-proxying behavior from <label>s to their labeled form elements. (@yaycmyk)
  • Added a setter for element.classList per recent spec changes (it forwards to element.classList.value).
  • Updated our attributes implementation in a few ways for recent spec changes and to fix discovered bugs:
    • Added element.getAttributeNames(). (spec addition)
    • setAttributeNode and setAttributeNodeNS can now replace an attribute node, instead of removing the old one and adding a new one; this avoids changing the order in the attribute list. (spec change)
    • NamedNodeMap named properties are now lowercase (except in edge cases involving XML documents or non-HTML elements). (spec change)
    • NamedNodeMap named properties are now non-enumerable.
    • The "DOMAttrModified" mutation event's relatedNode is now the new Attr object, not the Node, as per spec.
  • Updated DOMTokenList to have a value property per recent spec changes; its toString serialization also changed slightly.
  • Updated tc.headers to be a DOMTokenList that simply reflects the headers attribute; previously it was a string, with its computation doing some weird stuff.
  • Fixed document.implementation.createDocument() to create a document with its parsing mode set to XML, which affects a variety of DOM APIs in small ways.
  • Fixed EventTarget.prototype.constructor to be correct; it was previously Window.
  • Fixed option.index for <option>s not inside a <select> to no longer error.
  • Fixed tc.cellIndex for <td>s and <th>s not inside a <tr> to no longer error.
  • Fixed tr.sectionRowIndex for <tr>s not inside a <table>, <tbody>, <thead>, or <tfoot> to no longer error.
  • Removed the "keyevents" alias for "keyboardevent" when using document.createEvent, per recent spec changes.

Don't miss a new jsdom release

NewReleases is sending notifications on new releases.