Skip to content

🎉 First Public Release — v2.0.0

Choose a tag to compare

@alphanull alphanull released this 08 Apr 23:19
· 5 commits to master since this release
f18ff43

This is the first public release of DomSmith, a utility class that helps to dynamically generate a DOM tree based on a declarative configuration. It supports event handling, DOM node creation, manipulation, and removal. While this marks the first official release, DomSmith has been in internal use and steady development since 2016.

Features

  • Declarative DOM Creation: Create complex DOM structures with simple JSON-like configurations.
  • HTML & SVG Support: Automatically uses the correct namespace (including <foreignObject> support).
  • Centralized Event Handling: Easily attach events and ensure proper cleanup.
  • Direct References: Expose element references directly on the builder instance.
  • Node Replacement & Removal: Dynamically update and remove parts of your DOM tree.
  • Teardown: Fully clean up the DOM and internal state.