console.dirxml()

Term side of the Card
Topic: Output Information
Unit title: console.dirxml()
Categories: Method
Explanation side of the Card

Explanation: The static browser API method that prints an HTML or XML Element representation of a specified object to the console if possible or the JavaScript Object view if it's not. It's often used to display the DOM structure of an element in a readable format.

Browser compatibility:
  • The chrome browser supports this feature starting from version 2
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 39
  • The safari browser supports this feature starting from version 4
Availability: