mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 10:25:01 +00:00
bug 92125 - allow rowspan to be larger than 1000. sr=attinasi, r=alexsavulov
This commit is contained in:
parent
c192b01c18
commit
bc3e5b595a
@ -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))) {
|
||||
|
Loading…
Reference in New Issue
Block a user