Bug 1241840 - Set table cell colspan=0 to 1 instead per the HTML spec. r=bz
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user