nsAutoString href(aValue); href.StripWhitespace(); aResult.SetStringValue(href);
aResult.SetStringValue(aValue);
nsHTMLAnchorElement::StringToAttribute(nsIAtom* aAttribute,                                       const nsString& aValue,                                       nsHTMLValue& aResult){  if (aAttribute == nsHTMLAtoms::tabindex) {    nsGenericHTMLElement::ParseValue(aValue, 0, 32767, aResult,                                     eHTMLUnit_Integer);    return NS_CONTENT_ATTR_HAS_VALUE;  }  if (aAttribute == nsHTMLAtoms::href) {    nsAutoString href(aValue);    href.StripWhitespace();    aResult.SetStringValue(href);    return NS_CONTENT_ATTR_HAS_VALUE;  }  if (aAttribute == nsHTMLAtoms::suppress) {    if (aValue.EqualsIgnoreCase("true")) {      aResult.SetEmptyValue();      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  return NS_CONTENT_ATTR_NOT_THERE;}