[webkit-gtk] dump dom structure

Wangsheng Mei hairroot at gmail.com
Tue Apr 10 02:01:14 PDT 2012

I would like to dump dom structure(not html source, but dom tree) into a
local file.
After investigation, I found it's not easy. I come up with the following
a. begin with Document object
b. find all child nodes under it
c. dump child node according to its type

however, this process has two main problems
1. text node seems not to be represented as child nodes
2. dump child node according to its type(eg. WebKitDOMHTMLLIElement) is
still hard in that I need to every attrs and props in that type.

Any help is appreciated.

*Wangsheng Mei*

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20120410/d13299e1/attachment.html>

More information about the webkit-gtk mailing list