Skip to content
Eugene Lazutkin edited this page Jul 12, 2016 · 7 revisions

DOM

heya-dom is used on browser to simplify DOM-related tasks, especially construction, and modification of DOM.

Following modules are provided:

  • create — largely based on the venerable Dojo. Includes creating DOM nodes with optional namespaces, setting attributes, properties, styles, and similar helpers.
  • build — a Virtual DOM-inspired utility to create DOM fragments in one go using a simple array-based structure.
  • hyperscript — an alternative for build, a minimalistic implementation of Dominic Tarr's hyperscript. It is there mostly to reuse existing tooling, and existing code created for other implementations.
  • fromHtml — a helper to instantiate HTML snippets as DocumentFragment.

Read How to include to learn how to use the library.

Clone this wiki locally