Skip to content

TreeWalker

Generated from idl/dom.webidl when the site was built at 7aa23e2.

TreeWalker is an interface in idl/dom.webidl, exposed in Window. What it does is on MDN; this page says what niso has of it.

The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).

Feature On the web In niso Members
DOM Widely available No WPT tests WPT maps no test to it 12
attribute
[SameObject] readonly attribute Node root;
int32_t niso_tree_walker_get_root(niso_dom* dom, niso_handle self, niso_handle* out);
attribute
readonly attribute unsigned long whatToShow;
int32_t niso_tree_walker_get_what_to_show(niso_dom* dom, niso_handle self, uint32_t* out);
attribute
readonly attribute NodeFilter? filter;
int32_t niso_tree_walker_get_filter(niso_dom* dom, niso_handle self, void** out);
attribute
attribute Node currentNode;
int32_t niso_tree_walker_get_current_node(niso_dom* dom, niso_handle self, niso_handle* out);
int32_t niso_tree_walker_set_current_node(niso_dom* dom, niso_handle self, niso_handle value);
operation
[NisoReentrant] Node? parentNode();
int32_t niso_tree_walker_parent_node(niso_dom* dom, niso_handle self, niso_handle* out);
operation
[NisoReentrant] Node? firstChild();
int32_t niso_tree_walker_first_child(niso_dom* dom, niso_handle self, niso_handle* out);
operation
[NisoReentrant] Node? lastChild();
int32_t niso_tree_walker_last_child(niso_dom* dom, niso_handle self, niso_handle* out);
operation
[NisoReentrant] Node? previousSibling();
int32_t niso_tree_walker_previous_sibling(niso_dom* dom, niso_handle self, niso_handle* out);
operation
[NisoReentrant] Node? nextSibling();
int32_t niso_tree_walker_next_sibling(niso_dom* dom, niso_handle self, niso_handle* out);
operation
[NisoReentrant] Node? previousNode();
int32_t niso_tree_walker_previous_node(niso_dom* dom, niso_handle self, niso_handle* out);
operation
[NisoReentrant] Node? nextNode();
int32_t niso_tree_walker_next_node(niso_dom* dom, niso_handle self, niso_handle* out);