nsHTMLValue value; aAttributes->GetAttribute(nsHTMLAtoms::align, value); if (value.GetUnit() == eHTMLUnit_Enumerated) aData->mTableData->mCaptionSide.SetIntValue(value.GetIntValue(), eCSSUnit_Enumerated);
const nsAttrValue* value = aAttributes->GetAttr(nsHTMLAtoms::align); if (value && value->Type() == nsAttrValue::eEnum) aData->mTableData->mCaptionSide.SetIntValue(value->GetEnumValue(), eCSSUnit_Enumerated);
void MapAttributesIntoRule(const nsMappedAttributes* aAttributes, nsRuleData* aData){  if (aData->mSID == eStyleStruct_TableBorder) {    if (aData->mTableData->mCaptionSide.GetUnit() == eCSSUnit_Null) {      nsHTMLValue value;      aAttributes->GetAttribute(nsHTMLAtoms::align, value);      if (value.GetUnit() == eHTMLUnit_Enumerated)        aData->mTableData->mCaptionSide.SetIntValue(value.GetIntValue(), eCSSUnit_Enumerated);    }  }  nsGenericHTMLElement::MapCommonAttributesInto(aAttributes, aData);}