diff options
Diffstat (limited to 'WebCore/inspector/front-end/AuditResultView.js')
-rw-r--r-- | WebCore/inspector/front-end/AuditResultView.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/WebCore/inspector/front-end/AuditResultView.js b/WebCore/inspector/front-end/AuditResultView.js index 2f4afbd..2636463 100644 --- a/WebCore/inspector/front-end/AuditResultView.js +++ b/WebCore/inspector/front-end/AuditResultView.js @@ -81,15 +81,22 @@ WebInspector.AuditCategoryResultPane = function(categoryResult) WebInspector.AuditCategoryResultPane.prototype = { _appendResult: function(parentTreeElement, result) { - var title = result.value; - if (result.violationCount) - title = String.sprintf("%s (%d)", title, result.violationCount); + var title = ""; + + if (typeof result.value === "string") { + title = result.value; + if (result.violationCount) + title = String.sprintf("%s (%d)", title, result.violationCount); + } var treeElement = new TreeElement(title, null, !!result.children); parentTreeElement.appendChild(treeElement); if (result.className) treeElement.listItemElement.addStyleClass(result.className); + if (typeof result.value !== "string") + treeElement.listItemElement.appendChild(WebInspector.applyFormatters(result.value)); + if (result.children) { for (var i = 0; i < result.children.length; ++i) this._appendResult(treeElement, result.children[i]); |