DOM.DOMNode (dom v0.1.0)

Implements interface Node https://dom.spec.whatwg.org/#interface-node

Link to this section Summary

Link to this section Types

@type t() :: %{
  node_type: integer(),
  node_name: binary(),
  node_value: binary(),
  base_uri: binary(),
  is_connected: boolean(),
  owner_document: DOM.DOMDocument.t(),
  parent_node: t(),
  parent_element: DOM.DOMElement.t(),
  child_nodes: [t()],
  first_child: t(),
  last_child: t(),
  previous_sibling: t(),
  next_sibling: t(),
  text_content: binary()
}

Link to this section Functions

Link to this function

append(dom_node, last_children)

@spec append(t(), [t()]) :: t()

From Mixin ParentNode https://dom.spec.whatwg.org/#interface-parentnode

Link to this function

append_child(dom_node, child_node)

@spec append_child(t(), t()) :: t()
Link to this function

get_root_node(dom_node, composed \\ false)

@spec get_root_node(t(), boolean()) :: t()
Link to this function

has_child_nodes(dom_node)

@spec has_child_nodes(t()) :: boolean()
Link to this function

prepend(dom_node, first_children)

@spec prepend(t(), [t()]) :: t()

From Mixin ParentNode https://dom.spec.whatwg.org/#interface-parentnode