rem: var menu = document.getElementById("lookInMenu"); var menuItem = document.createElement("menuitem"); menuItem.setAttribute("value", directoryName); menu.appendChild(menuItem);  menuList.selectedItem = menuItem; */  var dirText = document.getElementById("curLocation"); dirText.setAttribute("value", directoryName); 
add: menuList.selectedIndex = 0; 
context: function addToHistory(directoryName) {  /* The history list is not hooked up yet, so we'll just use     a text element for the current directory *//*  var menuList = document.getElementById("lookInMenuList");  var menu = document.getElementById("lookInMenu");  var menuItem = document.createElement("menuitem");  menuItem.setAttribute("value", directoryName);  menu.appendChild(menuItem);  menuList.selectedItem = menuItem; */  var dirText = document.getElementById("curLocation");  dirText.setAttribute("value", directoryName);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b105a9dcb9e30adbe8961f8c5e2bb52ecceeeaee/filepicker.js/buggy/xpfe/components/filepicker/res/content/filepicker.js