rem: var strings = value.split("\n"); var i; var children = document.createElement("treechildren"); certDumpVal.appendChild(children); for (i=0;strings[i]!=null;i++) { addTreeItemToTreeChild(children,strings[i],null,false); } 
add: certDumpVal.setAttribute("value", value); } else { certDumpVal.setAttribute("value",""); 
context: function displaySelected() {  var asn1Outliner = document.getElementById('prettyDumpOutliner').                     outlinerBoxObject.view.QueryInterface(nsIASN1Outliner);  var items = asn1Outliner.selection;  if (items.currentIndex != -1) {    var certDumpVal = document.getElementById('certDumpVal');    removeChildrenInTree(certDumpVal);    // Since the tree widget doesn't do the right thing for new lines,    // I'll interpret them here.    var value = asn1Outliner.getDisplayData(items.currentIndex);    var strings = value.split("\n");    var i;    var children = document.createElement("treechildren");    certDumpVal.appendChild(children);    for (i=0;strings[i]!=null;i++) {      addTreeItemToTreeChild(children,strings[i],null,false);    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b6372662916be9fd9ab57f016b274fb199f483ee/viewCertDetails.js/clean/security/manager/pki/resources/content/viewCertDetails.js