rem: serverList.firstChild.tagName.toLowerCase() == "treechildren") 
add: serverList.firstChild.localName.toLowerCase() == "treechildren") 
context: function refreshServerList(){    // save selection    var oldSelectedIds = new Array;    serverList.clearItemSelection();    serverList.clearCellSelection();    var selectedItems = serverList.selectedItems;    for (var i=0; i< selectedItems.length; i++)        oldSelectedIds[i] = selectedItems[0].id;    // recreate <treechildren>    // note - I tried creating the <treechildren> node pre-populated,    // but the tree wouldn't notice the update    dump("Removing " + serverList.firstChild.tagName + "\n");    if (serverList.firstChild &&        serverList.firstChild.tagName.toLowerCase() == "treechildren")        serverList.removeChild(serverList.firstChild);    var treeChildren = document.createElement("treechildren");    serverList.appendChild(treeChildren);        var defaultServer = smtpService.defaultServer;    fillSmtpServers(treeChildren,smtpService.smtpServers, defaultServer);    // restore selection    for (var i=0; i< oldSelectedIds.length; i++) {        var element = document.getElementById(oldSelectedIds[i]);        if (element)            element.setAttribute("selected", "true");    }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/c613e3151096f0000d6e6fe527b7c21e81036824/SmtpServerList.js/buggy/mailnews/base/prefs/resources/content/SmtpServerList.js