Bug 115800 - Web Inspector: console.log alternates between object & element representations on refresh
Summary: Web Inspector: console.log alternates between object & element representation...
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.8
: P2 Normal
Assignee: Nobody
URL: http://tjmcewan.github.io/wtfkit/
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-05-08 07:15 PDT by Tim McEwan
Modified: 2016-12-08 13:11 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim McEwan 2013-05-08 07:15:18 PDT
If an element is logged using `console.log()`, it may appear in the console as a list of attributes (an object representation; the same as `console.dir()` shows), or it may appear as a clickable element.  Refreshing the page appears to consistently switch between the two.  The attached HTML file (and web address above) compares the output of `console.log()` and `console.dir()` to illustrate the issue.

The behaviour is consistent across Chrome, Chrome Canary, Safari 6.0.4, and Webkit Nightly (537+).
Comment 1 Timothy Hatcher 2014-01-10 15:37:15 PST
Moving to the right component.
Comment 2 Radar WebKit Bug Importer 2014-01-10 15:40:54 PST
<rdar://problem/15796879>
Comment 3 BJ Burg 2016-12-08 13:11:04 PST
When you reload the page, the old page's elements are no longer available. So we have to switch to using cached properties instead of live information.