nsAutoString tmp(aValue); tmp.StripWhitespace(); aResult.SetStringValue(tmp);
aResult.SetStringValue(aValue);
nsHTMLImageElement::StringToAttribute(nsIAtom* aAttribute,                                      const nsString& aValue,                                      nsHTMLValue& aResult){  if (aAttribute == nsHTMLAtoms::align) {    if (nsGenericHTMLElement::ParseAlignValue(aValue, aResult)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  else if (aAttribute == nsHTMLAtoms::ismap) {    aResult.SetEmptyValue();    return NS_CONTENT_ATTR_HAS_VALUE;  }  if ((aAttribute == nsHTMLAtoms::usemap) ||      (aAttribute == nsHTMLAtoms::src) ||      (aAttribute == nsHTMLAtoms::lowsrc)) {    nsAutoString tmp(aValue);    tmp.StripWhitespace();    aResult.SetStringValue(tmp);    return NS_CONTENT_ATTR_HAS_VALUE;  }  else if (nsGenericHTMLElement::ParseImageAttribute(aAttribute,                                                     aValue, aResult)) {    return NS_CONTENT_ATTR_HAS_VALUE;  }  return NS_CONTENT_ATTR_NOT_THERE;}