Bug 104245 - Web Inspector: console broken? - console.dirxml behaves like console.log
Summary: Web Inspector: console broken? - console.dirxml behaves like console.log
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Pavel Feldman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-06 02:14 PST by Sacha
Modified: 2012-12-10 01:39 PST (History)
9 users (show)

See Also:


Attachments
Patch (5.21 KB, patch)
2012-12-07 05:54 PST, Pavel Feldman
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sacha 2012-12-06 02:14:54 PST
Simple Test in the console:

ENTER: document.getElementsByTagName('body')
SEE: The result we want to reproduce with console.dirxml

ENTER: console.dirxml(document.getElementsByTagName('body'))
SEE: same output as console.log

ENTER: console.log(document.getElementsByTagName('body'))
SEE: same output as console.dirxml

Tested with latest Canary on OSX
Comment 1 Pavel Feldman 2012-12-07 05:32:17 PST
Strictly speaking, document.getElementsByTagName('body') is an array, so you can't dirxml it. But I think we could support the array of nodes case.
Comment 2 Pavel Feldman 2012-12-07 05:54:22 PST
Created attachment 178208 [details]
Patch
Comment 3 WebKit Review Bot 2012-12-10 01:39:32 PST
Comment on attachment 178208 [details]
Patch

Clearing flags on attachment: 178208

Committed r137121: <http://trac.webkit.org/changeset/137121>
Comment 4 WebKit Review Bot 2012-12-10 01:39:35 PST
All reviewed patches have been landed.  Closing bug.