bug 92125 - allow rowspan to be larger than 1000. sr=attinasi, r=alexsavulov

This commit is contained in:
karnaze%netscape.com 2001-08-06 14:29:55 +00:00
parent c192b01c18
commit bc3e5b595a

View File

@ -305,7 +305,10 @@ nsHTMLTableCellElement::StringToAttribute(nsIAtom* aAttribute,
}
else if ((aAttribute == nsHTMLAtoms::colspan) ||
(aAttribute == nsHTMLAtoms::rowspan)) {
if (ParseValue(aValue, -1, MAX_COLSPAN, aResult, eHTMLUnit_Integer)) {
PRBool parsed = (aAttribute == nsHTMLAtoms::colspan)
? ParseValue(aValue, -1, MAX_COLSPAN, aResult, eHTMLUnit_Integer)
: ParseValue(aValue, -1, 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))) {