[webkit-help] Iterating over the dom tree

Benjamin Poulain benjamin at webkit.org
Wed Sep 18 14:09:20 PDT 2013


On 9/18/13 9:25 AM, arijit chattopadhyay wrote:
>     I would like to iterate over the dom tree of a static html. What I
> understood is that we can make use of the ContainerNode class? Is there
> some other api or some other classes I am missing which can help me to
> do that efficiently?

It is very easy, there are a lot of helper functions for traversal.

Look at the file ElementTraversal.h, it has most primitives for easy 
traversal of the tree.


More information about the webkit-help mailing list