rem: imageElement = appCore.createElementWithDefaults(tagName); 
add: element = appCore.createElementWithDefaults(tagName); 
context: function initDialog() {  // Get a single selected anchor element  imageElement = appCore.getSelectedElement(tagName);  if (imageElement) {    // We found an element and don't need to insert one    insertNew = false;    dump("Found existing image\n");  } else {    insertNew = true;    // We don't have an element selected,     //  so create one with default attributes    dump("Element not selected - calling createElementWithDefaults\n");    imageElement = appCore.createElementWithDefaults(tagName);  }  if(!imageElement)  {    dump("Failed to get selected element or create a new one!\n");    //toolkitCore.CloseWindow(window);  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/99752a9477d6f3847fbcd63842b663550fa5f3c3/EdDialogTemplate.js/buggy/editor/ui/dialogs/content/EdDialogTemplate.js