rem: var treeitem    = document.createElement ( "treeitem" ); var treerow     = document.createElement ( "treerow" ); var attrcell    = document.createElement ( "treecell" ); 
add: var treeitem    = document.createElementNS ( "http: var treerow     = document.createElementNS ( "http: var attrcell    = document.createElementNS ( "http: 
context: function AddTreeItem ( name, value, treekids, attArray, valueCaseFunc ){  attArray[attArray.length] = name;  var treekids    = document.getElementById ( treekids );  var treeitem    = document.createElement ( "treeitem" );  var treerow     = document.createElement ( "treerow" );  var attrcell    = document.createElement ( "treecell" );  attrcell.setAttribute( "class", "propertylist" );  attrcell.setAttribute( "value", name.toLowerCase() );  treerow.appendChild ( attrcell );    if ( !valueCaseFunc ) {    // no handling function provided, create default cell.    var valcell = CreateCellWithField ( name, value);    treerow.appendChild ( valcell );  } else     valueCaseFunc();  // run user specified function for adding content    treeitem.appendChild ( treerow );  treekids.appendChild ( treeitem );  return treeitem;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/dc6aa1613dadd4171543b1edf3afb79c26fdbf99/EdAdvancedEdit.js/buggy/editor/ui/dialogs/content/EdAdvancedEdit.js