Difference between revisions of "Console.dirxml"

From FirebugWiki
Jump to: navigation, search
(Separate Console API page for console.dirxml())
 
m (Added categories)
 
Line 28: Line 28:
 
* [[console.dir]]
 
* [[console.dir]]
 
* [[Console API]]
 
* [[Console API]]
 +
 +
[[Category:Firebug]]
 +
[[Category:UI]]
 +
[[Category:API]]

Latest revision as of 17:10, 21 November 2013

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[edit]

console.dirxml(node)

Parameters[edit]

node[edit]

HTML or XML node to display. (required)

Examples[edit]

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[edit]