Skip to content
- 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