This repository was archived by the owner on Nov 15, 2026. It is now read-only.
Repository navigation
Security Fixes
- Fix: prevent node data from overriding template props and sanitize html
- Node data can no longer override the values that the tree uses internally for rendering.
- The HTML rendered by the default template engine is now sanitized with DOMPurify before it is inserted into the DOM.
Behavior Changes
These changes affect only usages that are not described in the documentation or the examples.
- Node data keys that have the same name as internal template values are not used for rendering. Use a different key name or the
classNamesoption. - The default template engine removes inline event handlers,
javascript:URLs, and thetargetattribute. - To keep this markup, use the
renderTemplateoption. Its output is not sanitized, so handle untrusted data yourself.
Dependencies
- Added
dompurify^2.5.9. It is bundled indist/tui-tree.jsanddist/tui-tree.min.js, so no additional script is required.