[Lvlug] Re: DOM tree visualization and some specific questions

Alex Gretlein gretlein at gmail.com
Mon Jul 16 21:02:06 EDT 2007


Randy Kramer wrote:
> Date: Mon, 16 Jul 2007 10:58:23 -0400

> 1. In a DOM tree with headings at various levels (like h1, h2, ...), are the
> headings below a higher level heading children (or descendants) of the higher
> level headings?

No, they're siblings.

> 2. Similarly for text below a heading, is it a child of the heading?
Yes.

>
> 3. Anybody know of some (Linux) software or (preferably) a web site that I can
> use to visualize the DOM tree of a given HTML document?  (It would be helpful
> to me to be able to submit a file to a website and view a "picture" of the
> DOM tree.)

Mozilla/Firefox and derivatives have a DOM Inspector. It used to be
part of Ffox, but is now separate. The Debian/Ubuntu package is
firefox-dom-inspector. It does exactly what you're asking.

Alex Gretlein


More information about the Lvlug mailing list