The manakai project

Web::DOM::NodeIterator

The DOM NodeIterator object

DESCRIPTION

The Web::DOM::NodeIterator class implements the DOM NodeIterator interface.

The NodeIterator object can be created by the create_node_iterator method of the Web::DOM::Document object.

METHODS

Following methods are available:

$code = $ni->filter

Return the node filter code. [DOM]

$node = $ni->next_node

Move to the next node in document order. [DOM]

$boolean = $ni->pointer_before_reference_node

Return the pointer is anchored before or after the reference node. [DOM]

$node = $ni->previous_node

Move to the previous node in document order. [DOM]

$node = $ni->reference_node

Return the current reference node of the iterator. [DOM]

$node = $ni->root

Return the root node of the iterator. [DOM]

$int = $ni->what_to_show

Return the bit vector representing the node type filter. [DOM]

In addition, it also supports the obsolete expand_entity_references method [DOM2TRAVERSAL] and the detach method [DOM].

SPECIFICATIONS

DOM

DOM Living Standard <http://dom.spec.whatwg.org/#interface-nodeiterator>.

DOM2TRAVERSAL

DOM Level2 Traversal <http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html>.

SEE ALSO

Web::DOM::NodeFilter.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

Copyright 2013 Wakaba <wakaba@suikawiki.org>.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.