html/node_stack
Types
NodeStack
Root(DOMNode)
Frame(DOMNode, NodeStack)
Functions
new
fn(root: DOMNode) -> NodeStack
A non-empty list of DOM nodes. This can be used to represent the stack of nodes while traversing the DOM and applying operations.
peek
fn(stack: NodeStack) -> DOMNode
pop
fn(stack: NodeStack) -> (NodeStack, DOMNode)
push
fn(stack: NodeStack, node: DOMNode) -> NodeStack
rest
fn(stack: NodeStack) -> NodeStack