jsdom v11.4.0 Release Notes
-
๐ For this release we'd like to welcome @Zirro to the core team; his contributions over the course of this year have enhanced jsdom immensely.
- โ Added a rudimentary set of SVG element classes, namely
SVGElement
,SVGGraphicsElement
,SVGSVGElement
,SVGTests
,SVGAnimatedString
,SVGNumber
, andSVGStringList
. The main impact here is that SVG elements are now instances ofSVGElement
, instead of being simplyElement
(as they were in v11.3.0) orHTMLUnknownElement
(as they were in v11.2.0 and previously). The only concrete subclass that is implemented isSVGSVGElement
, for<svg>
itself; other tags will not map to their correct classes, because those classes are not yet implemented. - โ Added the new
pretendToBeVisual
option, which controls the presence of the newrequestAnimationFrame()
andcancelAnimationFrame()
methods, and the new values ofdocument.hidden
/document.visibilityState
. See the README for more information. (SimenB) - โ Added the
append()
andprepend()
methods toDocument
,DocumentFragment
, andElement
. (caub) - โ Added the
before()
,after()
, andreplaceWith()
methods toDocumentType
,Element
, andCharacterData
. (caub) - โ Added
node.isConnected
. - โ Added
node.isSameNode()
. - โ Added support for parsing CDATA sections in XML documents, including in
domParser.parseFromString()
. (myabc) - โ Added appropriate
input.value
getter/setter logic for<input type="file">
. - Significantly improved the spec-compliance of
NamedNodeMap
, i.e. ofelement.attributes
, such that retrieving named or indexed properties will now always work properly. - ๐ Fixed
domParser.parseFromString()
to not parse HTML character entities in XML documents. (myabc) - ๐ Fixed
xhr.abort()
to clear any set headers. - ๐ Fixed
XMLHttpRequest
to always decoded responses as UTF-8 whenresponseType
is set to"json"
. - ๐ Fixed
XMLHttpRequest
CORS header handling, especially with regard to preflights and Access-Control-Allow-Headers. (ScottAlbertine) - ๐ Fixed the behavior of
radioButton.click()
to fire appropriateinput
andchange
events. (liqwid) - ๐ Fixed
querySelector()
/querySelectorAll()
behavior for SVG elements inside<template>
contentsDocumentFragment
s, including those created byJSDOM.fragment()
. (caub) - ๐ Fixed the line number reporting in exception stack traces when using
<script>
elements, whenincludeNodeLocations
is set. - โ Removed the
<applet>
element, following the spec.
- โ Added a rudimentary set of SVG element classes, namely