Dirxml

From FirebugWiki

(Difference between revisions)
Jump to: navigation, search
(Added parameter description and examples)
m (Added hint to 'node' parameter that it is required)
 
Line 10: Line 10:
== Parameters ==
== Parameters ==
=== node ===
=== node ===
-
HTML or XML node to display.
+
HTML or XML node to display. '''(required)'''
== Examples ==
== Examples ==

Latest revision as of 11:00, 13 July 2012

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.

Contents

[edit] Syntax

dirxml(node)

[edit] Parameters

[edit] node

HTML or XML node to display. (required)

[edit] Examples

dirxml(document.body)

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

dirxml($("element"))

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

[edit] See also

Personal tools