Bug 1370835 - Match new standard for span IDL property; r=mystor

https://github.com/whatwg/html/issues/2705
https://github.com/whatwg/html/pull/2734

MozReview-Commit-ID: 7Sso9sO8f7y
This commit is contained in:
Aryeh Gregor
2017-08-03 21:24:56 +03:00
parent a4c539f207
commit 7827cd2dfb
3 changed files with 2 additions and 35 deletions

View File

@@ -44,7 +44,7 @@ HTMLTableColElement::ParseAttribute(int32_t aNamespaceID,
}
if (aAttribute == nsGkAtoms::span) {
/* protection from unrealistic large colspan values */
aResult.ParseIntWithFallback(aValue, 1, MAX_COLSPAN);
aResult.ParseClampedNonNegativeInt(aValue, 1, 1, MAX_COLSPAN);
return true;
}
if (aAttribute == nsGkAtoms::width) {