[Webkit-unassigned] [Bug 30974] Web Inspector: Pretty print array-like objects

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 31 19:15:05 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=30974





--- Comment #7 from Keishi Hattori <casey.hattori at gmail.com>  2009-10-31 19:15:04 PDT ---
(In reply to comment #6)
> I would not be doing it actually. Even now, dumping document.body.childNodes on
> a large page might lead to unpleasant overhead. console.dir is what users do
> and the heavy result is predictable there.
> 
> Btw, I experience difficulties parsing document.body.childNodes output. Show we
> print cell-per-row with array index instead?

I think both are valid concerns but should be a separate bug. The problem this
addresses is when using jQuery, like 90% of the objects you deal with is this
Array-like object. Having to click to check what's inside every time will big
stress to the user.

My worry is that the isArrayLike Object() logic too forgiving. This patch uses 
  typeof o.length === "number"
but I think there is a good chance that the user will have an object like this.
  var video = {title:"foo", length: 20, url: "http://foo/ba.mp4"}

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list