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
Родитель c192b01c18
Коммит bc3e5b595a
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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))) {