yarn @happy-dom/jest-environment 4.0.0
v4.0.0

latest releases: 14.11.0, 14.10.3, 14.10.2...
2 years ago

💣 Breaking Changes

  • Fixes issues with HTML parsing and serialization related to void and SVG elements. (#479)
    • Void elements will be serialized from <img /> to <img>
    • SVG elements will be serialized from <circle /> to <circle></circle>
    • This change can potentially break tests as the serialized HTML may differ from before (e.g. Element.innerHTML) and therefore it is released as a major version.

👷‍♂️ Patch fixes

  • Fixes issue related to Element.namespaceURI not being correct for SVG elements. (#479)
    • HTML parser should always set Element.namespaceURI to be http://www.w3.org/2000/svg on SVG elements. Even if "xmlns" is set as an attribute.

Don't miss a new jest-environment release

NewReleases is sending notifications on new releases.