nsHTMLValue value; if (aContent->GetHTMLAttribute(atom, value) == NS_CONTENT_ATTR_HAS_VALUE) { if (eHTMLUnit_Enumerated == value.GetUnit()) { *aValue = value.GetIntValue(); }
const nsAttrValue* value = aContent->GetParsedAttr(atom); if (value && value->Type() == nsAttrValue::eEnum) { *aValue = value->GetEnumValue();
nsFormSubmission::GetEnumAttr(nsGenericHTMLElement* aContent,                              nsIAtom* atom, PRInt32* aValue){  nsHTMLValue value;  if (aContent->GetHTMLAttribute(atom, value) == NS_CONTENT_ATTR_HAS_VALUE) {    if (eHTMLUnit_Enumerated == value.GetUnit()) {      *aValue = value.GetIntValue();    }  }}