EnumValueToString(aValue, kInputTypeTable, aResult);
aValue.EnumValueToString(kInputTypeTable, aResult);
nsHTMLInputElement::AttributeToString(nsIAtom* aAttribute,                                      const nsHTMLValue& aValue,                                      nsAString& aResult) const{  if (aAttribute == nsHTMLAtoms::type) {    if (eHTMLUnit_Enumerated == aValue.GetUnit()) {      // The DOM spec says that input types should be capitalized but      // AFAIK all existing browsers return the type in lower case,      // http://bugzilla.mozilla.org/show_bug.cgi?id=32369 is the bug      // about this problem.  -- jst@netscape.com      // Update.  The DOM spec will be changed to have input types be      // all-lowercase.  See      // http://bugzilla.mozilla.org/show_bug.cgi?id=113174#c12      // -- bzbarsky@mit.edu      EnumValueToString(aValue, kInputTypeTable, aResult);      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  else if (aAttribute == nsHTMLAtoms::align) {    if (eHTMLUnit_Enumerated == aValue.GetUnit()) {      AlignValueToString(aValue, aResult);      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  else if (aAttribute == nsHTMLAtoms::checked) {    aResult.Assign(NS_LITERAL_STRING("checked"));    return NS_CONTENT_ATTR_HAS_VALUE;  }  else if (IsImage() && ImageAttributeToString(aAttribute, aValue,                                               aResult)) {    return NS_CONTENT_ATTR_HAS_VALUE;  }  return nsGenericHTMLLeafFormElement::AttributeToString(aAttribute, aValue,                                                         aResult);}