rem: var text = document.createTextNode(modName); elem.appendChild(text); 
add: elem.setAttribute("value", modName); 
context: function addTreeItem(num, modName, url){  dump("Adding element " + num + " : " + name + "\n");  var body = document.getElementById("theTreeBody");  var newitem = document.createElement('treeitem');  var newrow = document.createElement('treerow');    newrow.setAttribute("rowNum", num);  newrow.setAttribute("rowName", modName);  var elem = document.createElement('treecell');  var text = document.createTextNode(modName);  elem.appendChild(text);  newrow.appendChild(elem);  var elem = document.createElement('treecell');  var text = document.createTextNode(url);  elem.appendChild(text);  newrow.appendChild(elem);  newitem.appendChild(newrow);  body.appendChild(newitem);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/d0dfb36088a2540e8c4adcf702f33ca443e481fa/institems.js/clean/xpinstall/res/content/institems.js