[Webkit-unassigned] [Bug 25724] Incorrect collection output for Javascript console evaluation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 20 08:17:09 PDT 2009


------- Comment #4 from timothy at hatcher.name  2009-05-20 08:17 PDT -------
I like the way we output daya now, and feel the way Firebug dumps everythign as
a large string is not as elegant.

(In reply to comment #3)
>  What if jQuery objects added something like a "web_inspector_console_display"
> function which, when invoked, rendered output relevant to the console.  Might
> be a string, and then just printed, or maybe it would a DOM tree which would be
> rendered inline.  You could then imagine that folks using jQuery would then be
> able to further enhance that functionality in some way through new jQuery APIs. 
> In terms of trying to make this browser agnostic, perhaps the relevant property
> would be named "console_display_result".

I can see this being useful. I don't think underscores are a good fit here.
Maybe "toConsoleResult" or "toConsoleMessage"? Matching the the "toString" and
"toValue" concept.

Objective-C also has this with the "description" method.

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

More information about the webkit-unassigned mailing list