rem:  dialog.wordInput.value = misspelledWord; 
add:  dialog.misspelledWord.setAttribute("value", misspelledWord); 
context: function Startup(){  if (!InitEditorShell())    return;  dump("EditorShell found for Spell Checker dialog\n");  // Get the spellChecker shell  spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck);  if (!spellChecker) {    dump("SpellChecker not found!!!\n");    window.close();  }  // Save as a property of the window so it can be used by child dialogs  window.spellChecker = spellChecker;  // Create dialog object to store controls for easy access  dialog = new Object;  if (!dialog)  {    dump("Failed to create dialog object!!!\n");    window.close();  }  dialog.wordInput = document.getElementById("Word");  dialog.suggestedList = document.getElementById("SuggestedList");  dialog.languageList = document.getElementById("");  if (!dialog.wordInput ||      !dialog.suggestedList  ||      !dialog.languageList )  {    dump("Not all dialog controls were found!!!\n");  }  // NOTE: We shouldn't have been created if there was no misspelled word    // The first misspelled word is passed as the 2nd extra parameter in window.openDialog()  misspelledWord = window.arguments[1];    if (misspelledWord != "") {    dump("First misspelled word = "+misspelledWord+"\n");    // Put word in input field    dialog.wordInput.value = misspelledWord;    // Get the list of suggested replacements    FillSuggestedList();  } else {    dump("No misspelled word found\n");  }  dialog.suggestedList.focus();  }
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/fe32b459e5126c249d5d658ad3aa540809026fa6/EdSpellCheck.js/buggy/editor/ui/dialogs/content/EdSpellCheck.js