DOM interface offers a nice tool for browsing the tree. This is
a TreeWalker interface. It allows to performs filtering on the node-flow,
convenient navigation and saving current position for the following return.
Example application below shows to traverse DOM-tree on element only
using TreeWalker: