Skip to content

3.5.0: Add factory function support

Choose a tag to compare

@kkomelin kkomelin released this 17 Mar 19:34
· 149 commits to master since this release

What's new

Features

  • The default export is now callable as a factory function, matching the dompurify API — DOMPurify(window) now returns a new DOMPurify instance bound to the given window (#405)

Bug fixes

  • Fixed isEqualNode returning false when comparing RETURN_DOM + FORCE_BODY output against nodes from a separate JSDOM context (#405)

Thanks to @probablykasper for helping with this release.