Expand description
Node operations: tree structure, tree mutation and text content.
Upstream: blitz-script/src/dom/node.rs. See MAPPING.md.
Modules§
- document_
position - The bit flags
compare_document_positionreturns.
Functions§
- append_
child parent.appendChild(child), returning the child.- child_
nodes node.childNodes, as a snapshot rather than a live list.- clone_
node node.cloneNode(deep).- compare_
document_ position node.compareDocumentPosition(other).- contains
node.contains(other).- first_
child node.firstChild.- has_
child_ nodes node.hasChildNodes().- insert_
before parent.insertBefore(new_node, reference), returning the inserted node.- next_
sibling node.nextSibling.- parent_
node node.parentNode(andparentElement, which upstream aliases to it).- previous_
sibling node.previousSibling.- remove_
child parent.removeChild(child), returning the child.- replace_
child parent.replaceChild(new_node, old_node), returning the replaced node.- set_
text_ content node.textContent = text.- text_
content node.textContent, concatenated over the subtree.- text_
content_ into node.textContent, written into a caller-supplied buffer.- text_
content_ len - The byte length of
node.textContent, without building it.