nsresult rv = GetAttr(kNameSpaceID_None, nsHTMLAtoms::type, aValue);  if (rv == NS_CONTENT_ATTR_NOT_THERE) aValue.Assign(NS_LITERAL_STRING("text"));
NS_ASSERTION(aType, "aType must not be null!"); *aType = mType;
nsHTMLInputElement::GetType(nsAString& aValue){  nsresult rv = GetAttr(kNameSpaceID_None, nsHTMLAtoms::type, aValue);  if (rv == NS_CONTENT_ATTR_NOT_THERE)    aValue.Assign(NS_LITERAL_STRING("text"));  return NS_OK;}