DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:
Moved the "import" conditional export to be defined first.
Background & Context
Conditional exports are processed in order:
Within the "exports" object, key order is significant. During condition matching, earlier entries have higher priority and take precedence over later entries. The general rule is that conditions should be from most specific to least specific in object order.
Summary
Moved the "import" conditional export to be defined first.
Background & Context
Conditional exports are processed in order:
As far as I understand, this means the "imports" should be defined first so that it takes precedence over "require" or "default".
Thank you @ghiscoding for pointing this out in https://github.com/cure53/DOMPurify/issues/1018#issue-2653000713.
I've also changed "require" to "default" so that it's the catch-all fallback.
Tasks
N/A
Dependencies
N/A