rem: selectedItem = elements.length ? elements[0] : null; 
add: selectedItem = elements.item(0); 
context: function SelectListItem(listRef, itemValue){  try {    var selectedItem;    if (itemValue) {      var elements = listRef.getElementsByAttribute("value", itemValue);      selectedItem = elements.length ? elements[0] : null;    }    if (selectedItem)    {      listRef.selectedItem = selectedItem;      return true;    }    else      return false;  }   catch(e)  {    return false;  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/846feff6655c64b6730d27fc562b2473668519f4/selectLang.js/buggy/profile/resources/content/selectLang.js