Using Google Chrome, if you console.log
an object, it lets you inspect the element in the console. For example:
var a = { "foo" : "bar", "whiz" : "bang" };
console.log(a);
This prints out Object
which can be inspected by clicking on arrows next to it. If however I try to log an HTMLElement:
var b = goog.dom.query('html')[0];
console.log(b);
This prints out <html></html>
which can not be inspected by clicking on arrows next to it. If I want to see the JavaScript object (with its methods and fields) instead of just the DOM of the element, how would I do that?