You are deleting nodes from the tree while &traverse-ing it.
> From running this code on this sample I still have the Fifth and
> Seventh <p>s in there.
The documentation specifically warns against this. Last month I posted
to this list a patch to make it possible (all it took was a one-line
change in &traverse) but the maintainer didn't accept it, and also
completely reimplemented &traverse; I haven't studied if it would be
as easy to change in the new implementation.
So mark or collect the nodes for deletion, delete them in a second pass.
--
Reinier Post