Skip to content Skip to sidebar Skip to footer

Why IE Developer Tools Seems To Be More Descriptive Than FireBug In This Example?

When I call this line: Object.getOwnPropertyDescriptor(HTMLElement.prototype,'innerHTML') For FireBug it returns: >>> Object.getOwnPropertyDescriptor(HTMLElement.prototy

Solution 1:

Because the way Firebug runs your input generates an exception, which is then in turn hidden by Firebug. Try running:

try { Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML") } catch (ex) { console.log(ex); }

And you'll see what I mean. As @lonesomeday suggested, try using the web console instead.


Post a Comment for "Why IE Developer Tools Seems To Be More Descriptive Than FireBug In This Example?"