Bug 796866: Make style inspector's computed view display more reliable. r=robcee, a=lsblakk
authorDave Camp <dcamp@mozilla.com>
Mon, 29 Oct 2012 18:55:13 -0700
changeset 113768 76bf1b9bb1d0d0119a0ed13a88d9b4236f209444
parent 113767 8ff69d6c91512456f3292ff04fbaf8d921f655a7
child 113769 3357927c7aca226d5979f5edb82069f4d14565e0
push idunknown
push userunknown
push dateunknown
reviewersrobcee, lsblakk
bugs796866
milestone18.0a2
Bug 796866: Make style inspector's computed view display more reliable. r=robcee, a=lsblakk
browser/devtools/styleinspector/CssHtmlTree.jsm
--- a/browser/devtools/styleinspector/CssHtmlTree.jsm
+++ b/browser/devtools/styleinspector/CssHtmlTree.jsm
@@ -938,25 +938,25 @@ PropertyView.prototype = {
 
     if (this.prevViewedElement != this.tree.viewedElement) {
       this._matchedSelectorViews = null;
       this._unmatchedSelectorViews = null;
       this.prevViewedElement = this.tree.viewedElement;
     }
 
     if (!this.tree.viewedElement || !this.visible) {
-      this.valueNode.innerHTML = "";
+      this.valueNode.textContent = "";
       this.matchedSelectorsContainer.parentNode.hidden = true;
-      this.matchedSelectorsContainer.innerHTML = "";
+      this.matchedSelectorsContainer.textContent = "";
       this.matchedExpander.removeAttribute("open");
       return;
     }
 
     this.tree.numVisibleProperties++;
-    this.valueNode.innerHTML = this.propertyInfo.value;
+    this.valueNode.textContent = this.propertyInfo.value;
     this.refreshAllSelectors();
   },
 
   /**
    * Refresh the panel matched rules.
    */
   refreshMatchedSelectors: function PropertyView_refreshMatchedSelectors()
   {