Bug 796866: Make style inspector's computed view display more reliable. r=robcee, a=lsblakk
--- 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()
{