* WebInspector/webInspector/inspector.js: Fix bug where a null property value
leads to an empty style pane.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15703
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-07-30 Darin Adler <darin@apple.com>
+
+ Reviewed by Tim Hatcher.
+
+ * WebInspector/webInspector/inspector.js: Fix bug where a null property value
+ leads to an empty style pane.
+
2006-07-30 Darin Adler <darin@apple.com>
Reviewed by Tim Hatcher.
function populateStyleListItem(li, prop, name)
{
- var value = prop.style.getPropertyValue(name);
-
var span = document.createElement("span");
span.className = "property";
span.textContent = name;
li.appendChild(span);
+ var value = prop.style.getPropertyValue(name);
+ if (!value)
+ return;
+
span = document.createElement("span");
span.className = "value";
var textValue = valueNickname[value] ? valueNickname[value] : value;