All Versions
224
Latest Version
Avg Release Cycle
36 days
Latest Release
-
Changelog History
Page 3
Changelog History
Page 3
-
v16.1.0 Changes
February 01, 2020- โ Added
console.timeLog()
. - ๐ Changed
Attr
to extendNode
, to align with specifications. (ExE-Boss) - ๐ Changed
<noscript>
children to be parsed as nodes, instead of as text, whenrunScripts
is left as the default ofundefined
. (ACHP) - ๐
Upgraded
cssstyle
to v2.1.0, which brings along fixes to handling ofrgba()
andhsl()
colors. (kraynel) - ๐ Fixed some selection-related issues when manipulating the value of
<input>
s and<textarea>
s. (Matthew-Goldberg) - ๐ Fixed various issues with
setTimeout()
,setInterval()
, andrequestAnimationFrame()
, particularly around window closing and recursive calls.
- โ Added
-
v16.0.1 Changes
January 20, 2020- ๐ Fixed Node v10 and v11 support when
runScripts
was set. - ๐ Fixed the behavior when changing an
<input>
'stype=""
attribute. - ๐ Fixed input validation behavior for
<input type="range">
whenmax=""
is less thanmin=""
.
- ๐ Fixed Node v10 and v11 support when
-
v16.0.0 Changes
January 11, 2020๐ For this release we'd like to welcome @pmdartus to the core team. Among other work, he's driven the heroic effort of constructor prototype and reform in jsdom and its dependencies over the last few months, to allow us to move away from shared constructors and prototypes, and set the groundwork for custom elements support (coming soon!).
๐ฅ Breaking changes:
- ๐ Node v10 is now the minimum supported version.
- The
dom.runVMScript()
API has been replaced with the more generaldom.getInternalVMContext()
API. - ๐ Each jsdom
Window
now creates new instances of all the web platform globals. That is, our old shared constructor and prototypes caveat is no longer in play. - Each jsdom
Window
now exposes all JavaScript-spec-defined globals uniformly. WhenrunScripts
is disabled, it exposes them as aliases of the ones from the outer Node.js environment. Whereas whenrunScripts
is enabled, it exposes fresh copies of each global from the new scripting environment. (Previously, a few typed array classes would always be aliased, and withrunScripts
disabled, the other classes would not be exposed at all.)
Other changes:
- โ Added the
AbstractRange
,Range
,StaticRange
,Selection
, andwindow.getSelection()
APIs. - โ Added working constructors for
Comment
,Text
, andDocumentFragment
. - โ Added
valueAsDate
,valueAsNumber
,stepUp()
andstepDown()
to<input>
elements. (kraynel) - โ Added
window.origin
. - โ Removed
document.origin
. - ๐ Fixed
<template>
to work correctly inside XML documents. - ๐ Fixed some bugs which would cause jsdom to choose the wrong character encoding because it was failing to detect
<meta charset>
or<meta http-equiv="charset">
elements. - ๐ Fixed
input.type
to default to"text"
. (connormeredith) - ๐ Fixed incorrect validation errors for
<input>
with fractional values for theirstep=""
attribute. (kontomondo) - ๐ Fixed incorrect validation errors on readonly
<input>
elements. - ๐ Fixed
<input type="email" multiple pattern="...">
validation. - ๐ Fixed
fileReader.readAsDataURL()
to always base64-encode the result. (ytetsuro) - ๐ Fixed inserting
<img>
elements into documents without a browsing context to no longer crash when thecanvas
package is installed. - ๐ Fixed a memory leak when using
window.setTimeout()
orwindow.setInterval()
. - ๐ Improved the performance of
getComputedStyle()
. (eps1lon)
-
v15.2.1 Changes
November 04, 2019- ๐ 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 theDocument
. (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.
- ๐ Fixed
-
v15.2.0 Changes
October 14, 2019- โ 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 forform.submit()
. - โก๏ธ Changed
el.tabIndex
's default value, when notabindex=""
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()
orel.setAttributeNS()
. - ๐ Set
canvas
as an optional `peerDependency
, which apparently helps with Yarn PnP support.
- โ Added basic style inheritance in
-
v15.1.1 Changes
May 28, 2019- ๐
Moved the
nonce
property fromHTMLScriptElement
andHTMLStyleElement
toHTMLElement
. Note that it is still just a simple reflection of the attribute, and has not been updated for the rest of the changes in whatwg/html#2373. - ๐ Fixed the
style
andon<event>
properties to properly track their related attributes for SVG elements. (kbruneel) - ๐ Fixed
XMLHttpRequest
merging preflight and response headers. (thiagohirata) - ๐ Fixed
XMLHttpRequest
reserializingcontent-type
request headers unnecessarily. See whatwg/mimesniff#84 for more details. (thiagohirata) - ๐ Fixed
element.tagName
to be the ASCII uppercase of the element's qualified name, instead of the Unicode uppercase.
- ๐
Moved the
-
v15.1.0 Changes
May 12, 2019- โ Added the
Headers
class from the Fetch standard. - โ Added the
element.translate
getter and setter. - ๐ Fixed synchronous
XMLHttpRequest
on the newly-released Node.js v12. - ๐ Fixed
form.elements
to exclude<input type="image">
elements. - ๐ Fixed event path iteration in shadow DOM cases, following spec fixes at whatwg/dom#686 and whatwg/dom#750.
- ๐ Fixed
pattern=""
form control validation to apply the given regular expression to the whole string. (kontomondo)
- โ Added the
-
v15.0.0 Changes
April 21, 2019Several potentially-breaking changes, each of them fairly unlikely to actually break anything:
JSDOM.fromFile()
now treats.xht
files asapplication/xhtml+xml
, the same as it does for.xhtml
and.xml
. Previously, it would treat them astext/html
.- ๐ป If the
JSDOM
constructor'scontentType
option has acharset
parameter, and the first argument to the constructor is a binary data type (e.g.Buffer
orArrayBuffer
), then thecharset
will override any sniffed encoding in the same way as aContent-Type
header would in browser scenarios. Previously, thecharset
parameter was ignored. - ๐ When using the
Blob
orFile
constructor with theendings: "native"
option, jsdom will now convert line endings to\n
on all operating systems, for consistency. Previously, on Windows, it would convert line endings to\r\n
.
-
v14.1.0 Changes
April 21, 2019- โ Added activation behavior for
<a>
and<area>
elements whosehref=""
points to ajavascript:
URL or fragment. - โ Added the
<datalist>
element'soptions
property. - โ Added the
<input>
element'slist
property. - โ Added
PageTransitionEvent
, and the firing ofpageshow
events during loading. - ๐ฆ Exposed the
External
class as a property ofwindow
. - ๐ Fixed HTML fragment parsing (via
innerHTML
andouterHTML
) to be spec-compliant. (pmdartus) - ๐ Fixed HTML serialization (e.g. via
innerHTML
) breaking after setting certain properties to non-string values. - ๐ Fixed how disabling an element would cause its activation behavior to forever be null, even if it were re-enabled.
- ๐ Fixed all access to attributes to ignore attributes with namespaces, per the spec.
- ๐ Fixed
<style>
s to no longer apply to documents without a browsing context. This includes fixing a crash that would occur with such styles if they had an@import
rule. - ๐ Fixed
<option>
'slabel
andvalue
properties to return correct values in various edge cases. - ๐ Fixed the
load
event during document loading to target theDocument
, not theWindow
. - ๐ Fixed the
pretendToBeVisual
option to propagate to child subframes, as well as the mainWindow
. (pyrho) - โก๏ธ Updated the minimum
nwsapi
version from v2.1.1 to v2.1.3, bringing along a few fixes in our selector engine.
- โ Added activation behavior for
-
v14.0.0 Changes
March 10, 2019๐ฅ Breaking changes:
- 0๏ธโฃ
JSDOM.fragment()
now creates fragments whose document has no browsing context, i.e. no associatedWindow
. This means thedefaultView
property will be null, resources will not load, etc. JSDOM.fragment()
, called with no arguments, now creates aDocumentFragment
with no children, instead of with a single child text node whose data was"undefined"
.
Other changes:
- ๐ Fixed a regression in v13.2.0 when calling
element.blur()
on a focused element. - ๐ Fixed inserting
<link>
elements into documents with no browsing context to no longer crash if the originatingJSDOM
was configured to fetch the resource. Now, per spec,<link>
elements only attempt to fetch if they are browsing-context connected. - ๐ Fixed
<template>
elements to have the correct semantics, of using a separate browsing-context-less document to store its contents. In particular this means resources will not be fetched for elements inside the<template>
, as per spec.
- 0๏ธโฃ