rem:  if (SeeMore) {    while(headNode.firstChild) headNode.removeChild(headNode.firstChild);   if (dialog.HeadSrcInput.value.length > 0) editorShell.ReplaceHeadContentsWithHTML(dialog.HeadSrcInput.value); }       
context: function onOK(){  if (ValidateData())  {    // Save only if advanced "head editing" region is open?    if (SeeMore)    {      // Delete existing children of HEAD            // Note that we DO NOT use editorShell method       //  because this is not an undoable task      while(headNode.firstChild)        headNode.removeChild(headNode.firstChild);      // This method does not use the transaction system:      if (dialog.HeadSrcInput.value.length > 0)        editorShell.ReplaceHeadContentsWithHTML(dialog.HeadSrcInput.value);            }    //Problem: How do we reconcile changes in same elements in     //         advanced region and here?     // 1. Save manually-edited results first    // 2. Save each of the 3 textfield results only if user actually changed a value    if (titleWasEdited)    {      // Set title contents even if string is empty      //  because TITLE is a required HTML element      editorShell.SetDocumentTitle(title);    }        if (authorWasEdited)      SetMetaElementContent(authorElement, author, insertNewAuthor);    if (descWasEdited)      SetMetaElementContent(descriptionElement, description, insertNewDescription);    return true; // do close the window  }  return false;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/c0a534c8efb9e6703626cacd6d61cb6ad8eb6680/EdPageProps.js/buggy/editor/ui/dialogs/content/EdPageProps.js