? ParseValue(aValue, -1, MAX_COLSPAN, aResult, eHTMLUnit_Integer) : ParseValue(aValue, -1, MAX_ROWSPAN, aResult, eHTMLUnit_Integer);
? aResult.ParseIntWithBounds(aValue, eHTMLUnit_Integer, -1, MAX_COLSPAN) : aResult.ParseIntWithBounds(aValue, eHTMLUnit_Integer, -1, MAX_ROWSPAN);
nsHTMLTableCellElement::StringToAttribute(nsIAtom* aAttribute,                                          const nsAString& aValue,                                          nsHTMLValue& aResult){  /* ignore these attributes, stored simply as strings     abbr, axis, ch, headers   */  if (aAttribute == nsHTMLAtoms::charoff) {    /* attributes that resolve to integers with a min of 0 */    if (ParseValue(aValue, 0, aResult, eHTMLUnit_Integer)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  else if ((aAttribute == nsHTMLAtoms::colspan) ||           (aAttribute == nsHTMLAtoms::rowspan)) {    PRBool parsed = (aAttribute == nsHTMLAtoms::colspan)      ? ParseValue(aValue, -1, MAX_COLSPAN, aResult, eHTMLUnit_Integer)      : ParseValue(aValue, -1, MAX_ROWSPAN, aResult, eHTMLUnit_Integer);    if (parsed) {      PRInt32 val = aResult.GetIntValue();      // quirks mode does not honor the special html 4 value of 0      if ((val < 0) || ((0 == val) && InNavQuirksMode(mDocument))) {        nsHTMLUnit unit = aResult.GetUnit();        aResult.SetIntValue(1, unit);      }      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  else if (aAttribute == nsHTMLAtoms::height) {    /* attributes that resolve to integers or percents */    if (ParseValueOrPercent(aValue, aResult, eHTMLUnit_Pixel)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  else if (aAttribute == nsHTMLAtoms::width) {    /* attributes that resolve to integers or percents */    if (ParseValueOrPercent(aValue, aResult, eHTMLUnit_Pixel)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  else if (aAttribute == nsHTMLAtoms::align) {    /* other attributes */    if (ParseTableCellHAlignValue(aValue, aResult)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  else if (aAttribute == nsHTMLAtoms::bgcolor) {    if (ParseColor(aValue, mDocument, aResult)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  else if (aAttribute == nsHTMLAtoms::scope) {    if (ParseEnumValue(aValue, kCellScopeTable, aResult)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  else if (aAttribute == nsHTMLAtoms::valign) {    if (ParseTableVAlignValue(aValue, aResult)) {      return NS_CONTENT_ATTR_HAS_VALUE;    }  }  return NS_CONTENT_ATTR_NOT_THERE;}