Changeset 46886 in webkit


Ignore:
Timestamp:
Aug 6, 2009 10:51:45 PM (15 years ago)
Author:
abarth@webkit.org
Message:

2009-08-06 Joseph Pecoraro <joepeck02@gmail.com>

Reviewed by Timothy Hatcher.

Inspector: NodeLists Don't Display Well in the Console
https://bugs.webkit.org/show_bug.cgi?id=28061

  • inspector/front-end/ConsoleView.js: (WebInspector.ConsoleView.prototype._format): Specific check if the object is a NodeList, display as an "array"
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r46885 r46886  
     12009-08-06  Joseph Pecoraro  <joepeck02@gmail.com>
     2
     3        Reviewed by Timothy Hatcher.
     4
     5        Inspector: NodeLists Don't Display Well in the Console
     6        https://bugs.webkit.org/show_bug.cgi?id=28061
     7
     8        * inspector/front-end/ConsoleView.js:
     9        (WebInspector.ConsoleView.prototype._format): Specific check if the object is a NodeList, display as an "array"
     10
    1112009-08-06  Yusuke Sato  <yusukes@chromium.org>
    212
  • trunk/WebCore/inspector/front-end/ConsoleView.js

    r46732 r46886  
    437437    _format: function(output, forceObjectFormat)
    438438    {
    439         var type = (forceObjectFormat ? "object" : Object.type(output, InspectorController.inspectedWindow()));
     439        var inspectedWindow = InspectorController.inspectedWindow();
     440        if (forceObjectFormat)
     441            var type = "object";
     442        else if (output instanceof inspectedWindow.NodeList)
     443            var type = "array";
     444        else
     445            var type = Object.type(output, inspectedWindow);
    440446
    441447        // We don't perform any special formatting on these types, so we just
Note: See TracChangeset for help on using the changeset viewer.