Bug 1241840 - Set table cell colspan=0 to 1 instead per the HTML spec. r=bz

This commit is contained in:
Mats Palmgren
2016-01-27 17:02:12 +01:00
parent a18803a6b1
commit e69230933d
4 changed files with 32 additions and 5 deletions

View File

@@ -1193,7 +1193,7 @@ nsMathMLmtdFrame::GetColSpan()
if (!value.IsEmpty()) {
nsresult error;
colspan = value.ToInteger(&error);
if (NS_FAILED(error) || colspan < 0 || colspan > MAX_COLSPAN)
if (NS_FAILED(error) || colspan <= 0 || colspan > MAX_COLSPAN)
colspan = 1;
}
}