rem: treecell.setAttribute("value", string); 
add: treecell.setAttribute("label", string); 
context: function AppendStringToTreelist(tree, string){  if (tree)  {    var treechildren = document.getElementById('child');        var treeitem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treeitem");    var treerow = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treerow");    var treecell = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treecell");    if (treeitem && treerow && treecell)    {      treecell.setAttribute("value", string);      treerow.appendChild(treecell);      treeitem.appendChild(treerow);      treechildren.appendChild(treeitem)      var len = Number(tree.getAttribute("length"));      if (!len) len = -1;      tree.setAttribute("length",len+1);      return treeitem;    }  }  return null;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/eaa6754a0a946375badf1165b3e4af3999e4b03c/selectDialog.js/buggy/xpfe/global/resources/content/selectDialog.js