rem: var kids    = document.getElementById(aChildren); var listitem = document.createElement("listitem"); listitem.setAttribute("label", aProfileObject.mName ); listitem.setAttribute("rowMigrate",  aProfileObject.mMigrated ); listitem.setAttribute("class", "listitem-iconic"); listitem.setAttribute("profile_name", aProfileObject.mName ); listitem.setAttribute("rowName", aProfileObject.mName ); listitem.setAttribute("id", ( "profileName_" + aProfileObject.mName ) );    kids.appendChild(listitem); return listitem; 
add: var tree = document.getElementById("profiles"); var treeitem = document.createElement("treeitem"); var treerow = document.createElement("treerow"); var treecell = document.createElement("treecell"); treecell.setAttribute("label", aName); treecell.setAttribute("properties", "rowMigrate-" + aMigrated); treeitem.setAttribute("profile_name", aName); treeitem.setAttribute("rowMigrate", aMigrated); treerow.appendChild(treecell); treeitem.appendChild(treerow); tree.lastChild.appendChild(treeitem); 
context: function AddItem( aChildren, aProfileObject ){  var kids    = document.getElementById(aChildren);  var listitem = document.createElement("listitem");  listitem.setAttribute("label", aProfileObject.mName );  listitem.setAttribute("rowMigrate",  aProfileObject.mMigrated );  listitem.setAttribute("class", "listitem-iconic");  listitem.setAttribute("profile_name", aProfileObject.mName );  listitem.setAttribute("rowName", aProfileObject.mName );  listitem.setAttribute("id", ( "profileName_" + aProfileObject.mName ) );  // 23/10/99 - no roaming access yet!  //  var roaming = document.getElementById("roamingitem");  //  kids.insertBefore(item,roaming);  kids.appendChild(listitem);  return listitem;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d31ec2cc59008424497c5e0de725e40ae1367bcd/profileSelection.js/buggy/profile/resources/content/profileSelection.js