rem: element.data = prefvalue; element.selectedItem = element.getElementsByAttribute( "data", prefvalue )[0]; 
add: element.value = prefvalue; element.selectedItem = element.getElementsByAttribute( "value", prefvalue )[0]; 
context: function SetFields( aDataObject )  {    languageData = aDataObject.languageData ? aDataObject.languageData : languageData ;    currentLanguage = aDataObject.currentLanguage ? aDataObject.currentLanguage : null ;    var lists = ["selectLangs", "defaultFont"];    for( var i = 0; i < lists.length; i++ )      {        var element = document.getElementById( lists[i] );        if( aDataObject.dataEls )           {            element.data = aDataObject.dataEls[ lists[i] ].data;            element.selectedItem = element.getElementsByAttribute( "data", aDataObject.dataEls[ lists[i] ].data )[0];          }        else           {            var prefstring = element.getAttribute( "prefstring" );            var preftype = element.getAttribute( "preftype" );            if( prefstring && preftype )              {                var prefvalue = parent.hPrefWindow.getPref( preftype, prefstring );                element.data = prefvalue;                element.selectedItem = element.getElementsByAttribute( "data", prefvalue )[0];              }          }      }    var resolutionField = document.getElementById( "browserScreenResolution" );    if( aDataObject.fontDPI != undefined )      resolutionField.value = aDataObject.fontDPI;    else      {        var prefvalue = parent.hPrefWindow.getPref( resolutionField.getAttribute("preftype"), resolutionField.getAttribute("prefstring") );        if( prefvalue != "!/!ERROR_UNDEFINED_PREF!/!" )          resolutionField.value = prefvalue;      }    var useDocFontsCheckbox = document.getElementById( "browserUseDocumentFonts" );    if( aDataObject.useDocFonts != undefined )      useDocFontsCheckbox.checked = aDataObject.useDocFonts ? false : true;    else      {        var prefvalue = parent.hPrefWindow.getPref( useDocFontsCheckbox.getAttribute("preftype"), useDocFontsCheckbox.getAttribute("prefstring") );        if( prefvalue != "!/!ERROR_UNDEFINED_PREF!/!" )          useDocFontsCheckbox.checked = prefvalue ? false : true ;      }  }  
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/476f40a9ffe840661db8a7547c416a58355c9cd7/pref-fonts.js/clean/suite/common/pref/pref-fonts.js