Skip to content
This repository was archived by the owner on Nov 15, 2026. It is now read-only.

v4.0.10

Latest

Choose a tag to compare

@jwlee1108 jwlee1108 released this 15 Nov 12:31
· 0 commits to master since this release

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 classNames option.
  • The default template engine removes inline event handlers, javascript: URLs, and the target attribute.
  • To keep this markup, use the renderTemplate option. Its output is not sanitized, so handle untrusted data yourself.

Dependencies

  • Added dompurify ^2.5.9. It is bundled in dist/tui-tree.js and dist/tui-tree.min.js, so no additional script is required.