Skip to content

ELEMENT_NODE

AlloyNode tree — a DOM-aligned in-memory representation of rendered output.

Components return AlloyNodes (or values that get inserted into them) via runtime/insert.ts; the resulting tree is consumed by the direct printer and render-output.ts output-directory walker.

Naming and semantics follow the modern DOM where there is meaningful overlap. Only modern DOM mutation methods are exposed (append/prepend/before/after/replaceWith/remove/text.data/ moveBefore). Legacy methods (appendChild, insertBefore, removeChild, replaceChild, the nodeValue setter) are intentionally NOT provided.

ELEMENT_NODE: 1