context: function onOK(){  // TODO: VALIDATE FIELDS BEFORE COMMITING CHANGES  // Coalesce into one undo transaction  editorShell.BeginBatchChanges();  // Set the HREF directly on the editor document's anchor node  //  or on the newly-created node if insertNew is true  dump(anchorElement + "\n");  anchorElement.setAttribute("href",dialog.hrefInput.value);  // Get text to use for a new link  if (insertNew) {    // Append the link text as the last child node     //   of the anchor node    dump("Creating text node\n");    textNode = editorShell.editorDocument.createTextNode(dialog.linkTextInput.value);    if (textNode) {      anchorElement.appendChild(textNode);    }    dump("Inserting\n");    editorShell.InsertElement(anchorElement, true);    //if (newElement != anchorElement) {    //  dump("Returned element from insertElement is different from orginal element.\n");    //}  } else if (insertLinkAroundSelection) {    dump("Setting link around selected text\n");    editorShell.InsertLinkAroundSelection(anchorElement);  }  editorShell.EndBatchChanges();  window.close();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/264f43ee2ccde0ef3eb6ba8cad1e40cb8ef1741e/EdLinkProps.js/buggy/editor/ui/dialogs/content/EdLinkProps.js