if (ParseEnumValue(aValue, kCaptionAlignTable, aResult)) {
if (aResult.ParseEnumValue(aValue, kCaptionAlignTable)) {
nsHTMLSharedContainerElement::StringToAttribute(nsIAtom* aAttribute,                                                const nsAString& aValue,                                                nsHTMLValue& aResult){  if (mNodeInfo->Equals(nsHTMLAtoms::dir)  ||      mNodeInfo->Equals(nsHTMLAtoms::menu) ||      mNodeInfo->Equals(nsHTMLAtoms::ol)) {    if (aAttribute == nsHTMLAtoms::type) {      if (ParseEnumValue(aValue, kListTypeTable, aResult)) {        return NS_CONTENT_ATTR_HAS_VALUE;      }      if (mNodeInfo->Equals(nsHTMLAtoms::ol)) {        if (ParseCaseSensitiveEnumValue(aValue, kOldListTypeTable, aResult)) {          return NS_CONTENT_ATTR_HAS_VALUE;        }      }    } else if (aAttribute == nsHTMLAtoms::start) {      if (ParseValue(aValue, 1, aResult, eHTMLUnit_Integer)) {        return NS_CONTENT_ATTR_HAS_VALUE;      }    } else if (mNodeInfo->Equals(nsHTMLAtoms::dir) &&               aAttribute == nsHTMLAtoms::compact) {      aResult.SetEmptyValue();      return NS_CONTENT_ATTR_NO_VALUE;    }  } else if (mNodeInfo->Equals(nsHTMLAtoms::caption)) {    if (aAttribute == nsHTMLAtoms::align) {      if (ParseEnumValue(aValue, kCaptionAlignTable, aResult)) {        return NS_CONTENT_ATTR_HAS_VALUE;      }    }  }  return nsGenericHTMLContainerElement::StringToAttribute(aAttribute, aValue,                                                          aResult);}