Open Bug 762321 Opened 7 years ago Updated Last year

When getting value that are enums from the DOM, print the string rather than the integer

Categories

(DevTools :: Console, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: padenot, Unassigned)

References

Details

When working with the web console, it would be nice if, say, when a video element is selected in the inspector, that the following :

> $0.networkState

printed something like "HTMLMediaElement.NETWORK_LOADING (2)", rather than "2", that is, the enumeration symbol rather than the value, because it would be much more readable.

By extension, it all the enumerated properties could benefit from this feature.
Good idea. Thank you for the bug report!
Priority: -- → P3
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.