nsresult rv = mInner.GetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::type, aValue);  if (rv == NS_CONTENT_ATTR_NOT_THERE) aValue.Assign(NS_LITERAL_STRING("text"));  return NS_OK;
if (aType) { *aType = mType; return NS_OK; } else { return NS_FORM_NOTOK; }
nsHTMLInputElement::GetType(nsAWritableString& aValue){  nsresult rv = mInner.GetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::type,                                    aValue);  if (rv == NS_CONTENT_ATTR_NOT_THERE)    aValue.Assign(NS_LITERAL_STRING("text"));  return NS_OK;}