Console.dirxml

From FirebugWiki
Revision as of 03:15, 18 November 2013 by Sebastianz (Talk | contribs) (Separate Console API page for console.dirxml())

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Prints the XML source tree of an HTML or XML node.

This includes the node itself plus all it's descendants and looks identical to the view inside the HTML Panel. You can click on any node to inspect it in the HTML panel.

Syntax

console.dirxml(node)

Parameters

node

HTML or XML node to display. (required)

Examples

console.dirxml(document.body)

Displays the whole element tree structure of the <body> tag.

console.dirxml($("element"))

Displays the whole element tree struction of the element with the id element using the $ command.

See also