Download Latest Version 3.4.13.zip (540.0 kB)
Email in envelope

Get an email when there's a new version of DOMPurify

Home / 3.4.10
Name Modified Size InfoDownloads / Week
Parent folder
3.4.10.intoto.jsonl 2026-06-12 10.9 kB
3.4.10.tar.gz 2026-06-12 471.0 kB
3.4.10.tar.gz.sigstore.json 2026-06-12 11.0 kB
3.4.10.zip 2026-06-12 514.7 kB
3.4.10.zip.sigstore.json 2026-06-12 11.0 kB
purify.js 2026-06-12 111.5 kB
purify.js.sigstore.json 2026-06-12 10.9 kB
purify.min.js 2026-06-12 28.4 kB
purify.min.js.sigstore.json 2026-06-12 10.9 kB
DOMPurify 3.4.10 source code.tar.gz 2026-06-12 471.1 kB
DOMPurify 3.4.10 source code.zip 2026-06-12 517.1 kB
README.md 2026-06-12 827 Bytes
Totals: 12 Items   2.2 MB 0
  • Refactored codebase for clarity: extracted the public type declarations into types.ts
  • Decomposed the three largest sanitizer functions into focused helpers
  • Removed duplicated defaults and dead branches, consolidated SAFE_FOR_TEMPLATES scrubbing into single shared path
  • Improved per-node performance by hoisting the mXSS probe regexes and testing textContent before innerHTML
  • Added a deterministic micro-benchmark harness (npm run bench) with a --compare mode
  • Reduced CI cost by running the full three-engine browser suite once per PR
  • Refreshed the demos/ folder so every demo runs again, and added a SVG-via-<img> demo
  • Documented the bench and test:happydom scripts in the README
  • Completed the Attack Classes & Bypass History wiki page
  • Bumped several dependencies where possible
Source: README.md, updated 2026-06-12