|Product:||WebKit||Reporter:||Conrad Taylor <conradwt>|
|Component:||Web Inspector (Deprecated)||Assignee:||Nobody <webkit-unassigned>|
|Severity:||Enhancement||CC:||apavlov, conradwt, me, pmuellr, timothy|
|Version:||528+ (Nightly build)|
Description Conrad Taylor 2009-05-12 04:02:10 PDT
Comment 1 Patrick Mueller 2009-05-19 17:56:18 PDT
There should be some quick little function you could apply to $('a') to get what you want, you would think (I'm not a jquery expert). Personally, I like the output as is, BUT, it might be nice to filter the properties/indices of the expanded objects to not show functions, not show inherited-from-prototype properties.
Comment 2 Conrad Taylor 2009-05-20 02:34:22 PDT
Comment 3 Patrick Mueller 2009-05-20 07:52:08 PDT
Comment 4 Timothy Hatcher 2009-05-20 08:17:08 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.
Comment 5 Conrad Taylor 2009-05-20 09:29:37 PDT
Comment 6 johnjbarton 2009-05-20 16:02:56 PDT
Comment 7 Alexander Pavlov (apavlov) 2010-09-07 08:56:19 PDT
This seems to have been fixed a while ago, presumably by pfeldman. On ToT (r66878), for $('a') on jquery.com I get an array: [ <a id="jq-siteLogo" href="http://jquery.com" title="jQuery Home">…</a>, <a href="http://jquery.com/" title="jQuery Home">jQuery</a>, <a href="http://plugins.jquery.com/" title="jQuery Plugins">Plugins</a>, <a href="http://jqueryui.com/" title="jQuery UI">UI</a>, <a href="http://meetups.jquery.com/" title="jQuery Meetups">Meetups</a>, <a href="http://forum.jquery.com/" title="jQuery Forum">Forum</a>, <a href="http://blog.jquery.com/" title="jQuery Blog">Blog</a>, ... ]