rem: inputElement = editor.createElementWithDefaults(tagName); 
context: function Startup(){  var editor = GetCurrentEditor();  if (!editor)  {    window.close();    return;  }  gDialog = {    accept:             document.documentElement.getButton("accept"),    inputType:          document.getElementById("InputType"),    inputNameDeck:      document.getElementById("InputNameDeck"),    inputName:          document.getElementById("InputName"),    inputValueDeck:     document.getElementById("InputValueDeck"),    inputValue:         document.getElementById("InputValue"),    inputDeck:          document.getElementById("InputDeck"),    inputChecked:       document.getElementById("InputChecked"),    inputSelected:      document.getElementById("InputSelected"),    inputReadOnly:      document.getElementById("InputReadOnly"),    inputDisabled:      document.getElementById("InputDisabled"),    inputTabIndex:      document.getElementById("InputTabIndex"),    inputAccessKey:     document.getElementById("InputAccessKey"),    inputSize:          document.getElementById("InputSize"),    inputMaxLength:     document.getElementById("InputMaxLength"),    inputAccept:        document.getElementById("InputAccept"),    MoreSection:        document.getElementById("MoreSection"),    MoreFewerButton:    document.getElementById("MoreFewerButton"),    AdvancedEditButton: document.getElementById("AdvancedEditButton"),    AdvancedEditDeck:   document.getElementById("AdvancedEditDeck")  };  // Get a single selected input element  var tagName = "input";  inputElement = editor.getSelectedElement(tagName);  if (inputElement)    // We found an element and don't need to insert one    insertNew = false;  else  {    insertNew = true;    // We don't have an element selected,    //  so create one with default attributes    inputElement = editor.createElementWithDefaults(tagName);    if (!inputElement)    {      dump("Failed to get selected element or create a new one!\n");      window.close();      return;    }    var imageElement = editor.getSelectedElement("img");    if (imageElement)    {      // We found an image element, convert it to an input type="image"      inputElement.setAttribute("type", "image");      var attributes = ["src", "alt", "width", "height", "hspace", "vspace", "border", "align"];      for (i in attributes)        inputElement.setAttribute(attributes[i], imageElement.getAttribute(attributes[i]));    }    else      inputElement.setAttribute("value", GetSelectionAsText());  }  // Make a copy to use for AdvancedEdit  globalElement = inputElement.cloneNode(false);  InitDialog();  InitMoreFewer();  gDialog.inputType.focus();  SetWindowLocation();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/161212bb0026cff780d4cc07e50d7cf54d70e70b/EdInputProps.js/buggy/editor/ui/dialogs/content/EdInputProps.js