rem: href = gDialog.hrefInput.value.trimString(); 
add: href = TrimString(gDialog.hrefInput.value); 
context: function ValidateData(){  href = gDialog.hrefInput.value.trimString();  if (href)  {    // Set the HREF directly on the editor document's anchor node    //  or on the newly-created node if insertNew is true    globalElement.setAttribute("href",href);  }  else if (insertNew)  {    // We must have a URL to insert a new link    //NOTE: We accept an empty HREF on existing link to indicate removing the link    ShowInputErrorMessage(GetString("EmptyHREFError"));    return false;  }  if (gDialog.linkTextInput)  {    // The text we will insert isn't really an attribute,    //  but it makes sense to validate it    newLinkText = TrimString(gDialog.linkTextInput.value);    if (!newLinkText)    {      if (href)        newLinkText = href      else      {        ShowInputErrorMessage(GetString("EmptyLinkTextError"));        SetTextboxFocus(gDialog.linkTextInput);        return false;      }    }  }  return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/52d7a93c75d49817060da61873d383063b3f87b0/EdLinkProps.js/clean/editor/ui/dialogs/content/EdLinkProps.js