rem: formElement = editor.createElementWithDefaults(tagName); 
context: function Startup(){  var editor = GetCurrentEditor();  if (!editor)  {    window.close();    return;  }  gForm = {    Name:     document.getElementById("FormName"),    Action:   document.getElementById("FormAction"),    Method:   document.getElementById("FormMethod"),    EncType:  document.getElementById("FormEncType"),    Target:   document.getElementById("FormTarget")  }  gDialog.MoreSection = document.getElementById("MoreSection");  gDialog.MoreFewerButton = document.getElementById("MoreFewerButton");  gDialog.RemoveForm = document.getElementById("RemoveForm")  // Get a single selected form element  var tagName = "form";  formElement = editor.getSelectedElement(tagName);  if (!formElement)    formElement = editor.getElementOrParentByTagName(tagName, editor.selection.anchorNode);  if (!formElement)    formElement = editor.getElementOrParentByTagName(tagName, editor.selection.focusNode);  if (formElement)  {    // We found an element and don't need to insert one    insertNew = false;    formActionWarning = formElement.hasAttribute("action");  }  else  {    insertNew = true;    formActionWarning = true;    // We don't have an element selected,    //  so create one with default attributes    formElement = editor.createElementWithDefaults(tagName);    if (!formElement)    {      dump("Failed to get selected element or create a new one!\n");      window.close();      return;    }    // Hide button removing existing form    gDialog.RemoveForm.hidden = true;  }  // Make a copy to use for AdvancedEdit  globalElement = formElement.cloneNode(false);  InitDialog();  InitMoreFewer();  SetTextboxFocus(gForm.Name);  SetWindowLocation();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/161212bb0026cff780d4cc07e50d7cf54d70e70b/EdFormProps.js/clean/editor/ui/dialogs/content/EdFormProps.js