rem: gSmtpTrySSL.getElementsByAttribute("data", "1")[0]; 
add: gSmtpTrySSL.getElementsByAttribute("value", "1")[0]; 
context: function initSmtpSettings(server) {    gSmtpUsername = document.getElementById("smtp.username");    gSmtpUsernameLabel = document.getElementById("smtpusernamelabel");    gSmtpHostname = document.getElementById("smtp.hostname");    gSmtpUseUsername = document.getElementById("smtp.useUsername");    gSmtpAuthMethod = document.getElementById("smtp.authMethod");    gSmtpTrySSL = document.getElementById("smtp.trySSL");        if (server) {        gSmtpHostname.value = server.hostname;        gSmtpUsername.value = server.username;        gSmtpAuthMethod.setAttribute("value", server.authMethod);        var elements = gSmtpTrySSL.getElementsByAttribute("data", server.trySSL);        if (elements.length == 0)            elements = gSmtpTrySSL.getElementsByAttribute("data", "1");        gSmtpTrySSL.selectedItem = elements[0];    } else {        gSmtpAuthMethod.setAttribute("value", "1");        gSmtpTrySSL.selectedItem =            gSmtpTrySSL.getElementsByAttribute("data", "1")[0];    }    if (gSmtpAuthMethod.getAttribute("value") == "1")        gSmtpUseUsername.checked = true;        //dump("gSmtpAuthMethod = <" + gSmtpAuthMethod.localName + ">\n");    //dump("gSmtpAuthMethod.value = " + gSmtpAuthMethod.getAttribute("value") + "\n");        onUseUsername(gSmtpUseUsername, false);    updateControls();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/eaa6754a0a946375badf1165b3e4af3999e4b03c/smtpEditOverlay.js/buggy/mailnews/base/prefs/resources/content/smtpEditOverlay.js