Dirxml

From FirebugWiki

(Difference between revisions)
Jump to: navigation, search
m (Added hint to 'node' parameter that it is required)
m (Added categories)
 
(One intermediate revision not shown)
Line 3: Line 3:
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.
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 ==
+
This command is a shortcut for the [[console.dirxml]] API.
-
<source lang="javascript">
+
-
dirxml(node)
+
-
</source>
+
-
 
+
-
== Parameters ==
+
-
=== node ===
+
-
HTML or XML node to display. '''(required)'''
+
-
 
+
-
== Examples ==
+
-
<source lang="javascript">
+
-
dirxml(document.body)
+
-
</source>
+
-
 
+
-
Displays the whole element tree structure of the <code>&lt;body&gt;</code> tag.
+
-
 
+
-
<source lang="javascript">
+
-
dirxml($("element"))
+
-
</source>
+
-
 
+
-
Displays the whole element tree struction of the element with the id <code>element</code> using the [[$|$ command]].
+
== See also ==
== See also ==
* [[dir]]
* [[dir]]
* [[Command Line API]]
* [[Command Line API]]
 +
 +
[[Category:Firebug]]
 +
[[Category:UI]]
 +
[[Category:API]]

Latest revision as of 00:03, 22 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.

This command is a shortcut for the console.dirxml API.

[edit] See also

Personal tools