rem: dialogElement.setAttribute("title", dialogElement.getAttribute("title-selectFolder")); 
add: document.title = document.documentElement.getAttribute("selectFolderTitle"); 
context: function Startup(){  initServices();  initBMService();  gFld_Name = document.getElementById("name");  gFld_URL = document.getElementById("url");  gCB_AddGroup = document.getElementById("addgroup");  var bookmarkView = document.getElementById("bookmarks-view");  var shouldSetOKButton = true;  var dialogElement = document.documentElement;  if ("arguments" in window) {    var ind;    var folderItem = null;    var arg;    if (window.arguments.length < 5)      arg = null;    else      arg = window.arguments[4];    switch (arg) {    case "selectFolder":      // If we're being opened as a folder selection window      document.getElementById("bookmarknamegrid").setAttribute("hidden", "true");      document.getElementById("createinseparator").setAttribute("hidden", "true");      document.getElementById("nameseparator").setAttribute("hidden", "true");      sizeToContent();      dialogElement.setAttribute("title", dialogElement.getAttribute("title-selectFolder"));      shouldSetOKButton = false;      if (window.arguments[2])        folderItem = RDF.GetResource(window.arguments[2]);      if (folderItem) {        ind = bookmarkView.treeBuilder.getIndexOfResource(folderItem);        bookmarkView.treeBoxObject.view.selection.select(ind);      }      break;    case "newBookmark":      setupFields();      if (window.arguments[2])        gCreateInFolder = window.arguments[2];      document.getElementById("folderbox").setAttribute("hidden", "true");      sizeToFit();      break;    case "addGroup":      document.getElementById("showaddgroup").setAttribute("hidden", "false");      setupFields();      sizeToFit();      break;    case "addGroup,group":      document.getElementById("showaddgroup").setAttribute("hidden", "false");      gCB_AddGroup.setAttribute("checked", "true");      setupFields();      toggleGroup();      sizeToFit();      break;    default:      // Regular Add Bookmark      setupFields();      if (window.arguments[2]) {        gCreateInFolder = window.arguments[2];        folderItem = bookmarkView.rdf.GetResource(gCreateInFolder);        if (folderItem) {          ind = bookmarkView.treeBuilder.getIndexOfResource(folderItem);          bookmarkView.treeBoxObject.view.selection.select(ind);        }      }    }  }    if (shouldSetOKButton)    onFieldInput();  if (document.getElementById("bookmarknamegrid").hasAttribute("hidden")) {    bookmarkView.tree.focus();    if (bookmarkView.currentIndex == -1)      bookmarkView.treeBoxObject.view.selection.select(0);  }  else {    gFld_Name.select();    gFld_Name.focus();  }} 
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/46b7a16d7ad7e95f7f9ee59ab327e5e105df529e/addBookmark.js/buggy/browser/components/bookmarks/content/addBookmark.js