docs / html/node_stack

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

peek_with_parent

fn(stack: NodeStack) -> (DOMNode, DOMNode)

pop

fn(stack: NodeStack) -> (NodeStack, DOMNode)

push

fn(stack: NodeStack, node: DOMNode) -> NodeStack

rest

fn(stack: NodeStack) -> NodeStack