New issue
Advanced search Search tips

Issue 791058 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 607686
Owner:
Closed: Dec 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Feature request: Provide a way to show element properties in Console

Reported by kaycebas...@gmail.com, Dec 1 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3281.0 Safari/537.36

Steps to reproduce the problem:
1. Execute something in the Console that returns an element reference

What is the expected behavior?
You can see a list of the element's JS properties

What went wrong?
Console only shows you the HTML of the element

Did this work before? No 

Chrome version: 64.0.3281.0  Channel: canary
OS Version: OS X 10.12.6
Flash Version: 

This is a feature parity request with FF. See https://twitter.com/ccnokes/status/936386681506115584
 

Comment 1 by woxxom@gmail.com, Dec 1 2017

You can do it in Chrome:

dir(elementReference)

A similar issue regarding DOM nodes in arrays was discussed earlier and the general consensus was that seeing those 100 standard DOM properties (like onclick and so on) every time you expand an element is counter-productive. Moreover those properties aren't grouped in any way. Also, as a developer who uses both Chrome and FF, I really don't think FF's devtools is something to aspire to generally, to put it mildly.
Cc: paulir...@chromium.org
Owner: l...@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 3 by l...@chromium.org, Dec 7 2017

Mergedinto: 607686
Status: Duplicate (was: Assigned)
Thanks for the request.  As commenter #1 says, `dir(elem)` or `console.dir(elem)` should work.

I'm merging this with another bug because DevTools could benefit from having a more transparent, accessible way to switch between the HTML element view mode and the JS-Object property view mode.

Comment 4 by ccno...@gmail.com, Dec 7 2017

Sounds good, thanks! 

Sign in to add a comment