html/walk
Types
HoleInfo
The kind of hole encountered in a template. This hole occurs as the only child of an element. This hole occurs as the last child of an element. This hole occurs before another node.
ChildHole(HoleKind)
AttributeHole(Str)
HoleKind
When this is applied, it updates a stack (linked list) of actual DOM elements by performing DOM operations. Walks to the first child of the top element of the stack. Walks to the next sibling of the top node in the stack. Walks to the parent element of the top node in the stack.
OnlyChild
LastChild
InsertBefore
TraversalKind
A step to take while walking the DOM when instantiating a template. Traverses the DOM, updating the stack of elements with some new node. We've hit a hole in the template, noting its kind of location. We've hit a hole in attribute position, carrying the attribute name. An empty string means an unnamed attribute hole (e.g. event handler).
FirstChild
NextSibling
Parent
WalkStep
Traversal(TraversalKind)
Hole(HoleKind)
Attribute(Str)