Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

301
Views
Can we get an expandable HTML tree of an element in Mozilla console?

Using Chrome, when I type console.log(document.body) in the console and press enter, I get an HTML tree (or hierarchy) of the current page. For example, on google.com, I get the following

enter image description here

Figure 1. Output of console.log(document.body) on Chrome.

However, when I use Mozilla, I get an object description with all the properties like below.

enter image description here

Figure 2. Output of console.log(document.body) on Mozilla.

When you use console.dir(document.body) on Chrome, it produces an output like Figure.2, but on Mozilla, the output is the same as Figure.1.

Is it possible to get something like Figure.1 on Mozilla?

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!