rem:  if (gDialog.editText.checked) 
add: } else if (gDialog.editText.checked) 
context: function onAccept(){  // All values are valid - copy to actual element in doc  ValidateData();  var editor = GetCurrentEditor();  editor.beginTransaction();  try {    editor.cloneAttributes(legendElement, globalElement);     if (insertNew)      InsertElementAroundSelection(fieldsetElement);    if (gDialog.editText.checked)    {      editor.setShouldTxnSetSelection(false);      if (gDialog.legendText.value)      {        if (newLegend)          editor.insertNode(legendElement, fieldsetElement, 0, true);        else while (legendElement.firstChild)          editor.deleteNode(legendElement.lastChild);        editor.insertNode(editor.document.createTextNode(gDialog.legendText.value), legendElement, 0);      }      else if (!newLegend)        editor.DeleteNode(legendElement);      editor.setShouldTxnSetSelection(true);    }  }  finally {    editor.endTransaction();  }  SaveWindowLocation();  return true;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/161212bb0026cff780d4cc07e50d7cf54d70e70b/EdFieldSetProps.js/buggy/editor/ui/dialogs/content/EdFieldSetProps.js