canvas
as an optional ``peerDependency`, which apparently helps with Yarn PnP support.nonce
property from HTMLScriptElement
and HTMLStyleElement
to HTMLElement
. 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.Headers
class from the Fetch standard.element.translate
getter and setter.XMLHttpRequest
on the newly-released Node.js v12.form.elements
to exclude <input type="image">
elements.pattern=""
form control validation to apply the given regular expression to the whole string. (kontomondo)Several potentially-breaking changes, each of them fairly unlikely to actually break anything:
JSDOM.fromFile()
now treats .xht
files as application/xhtml+xml
, the same as it does for .xhtml
and .xml
. Previously, it would treat them as text/html
.Blob
or File
constructor with the endings: "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
.