Gioele Barabucci wrote: > Is possible to ask konqueror to print the DOM tree (Level 1) of the curre= > nt=20 > page? How? I do not see any menu to do this... > > --=20 > Gioele Barabucci (Gb])=20 > ) mailto:dev@gioelebarabucci.com > ) http://www.gioelebarabucci.com > ) ) I've been and now I've gone > ) ) /Magic Pie^Oasis There is no menu item, but there are other ways to see it. You can use testkhtml (in kdelibs/khtml) to view the page and a DOM tree window will appear, or you can use the following javascript code to print the tree to stdout: function printNodeTree(n,depth) { var i; var line = ''; for (i = 0; i < depth; i++) line += ' '; line += n.nodeName; if (n.nodeValue) { line += ': "'+n.nodeValue+'"'; } debug(line); var c; for (c = n.firstChild; c != null; c = c.nextSibling) { printNodeTree(c,depth+1); } } printNodeTree(document,0); -- Peter Kelly pmk@post.com >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<