Bug 1296929 - Match spec for col/colgroup.span, textarea.rows/cols; r=jst
The spec recently changed to match browsers better. There's currently not much interop in exact details of how this work. This brings us in line with the spec except for the limit of 1000 on the span attribute. The added textarea failures are spurious, because I'm not updating our local tests in this commit. The new tests are submitted upstream at <https://github.com/w3c/web-platform-tests/pull/3518>. MozReview-Commit-ID: 1L8aUtF47Qi
This commit is contained in:
@@ -402,9 +402,12 @@ HTMLTextAreaElement::ParseAttribute(int32_t aNamespaceID,
|
||||
if (aAttribute == nsGkAtoms::maxlength ||
|
||||
aAttribute == nsGkAtoms::minlength) {
|
||||
return aResult.ParseNonNegativeIntValue(aValue);
|
||||
} else if (aAttribute == nsGkAtoms::cols ||
|
||||
aAttribute == nsGkAtoms::rows) {
|
||||
return aResult.ParsePositiveIntValue(aValue);
|
||||
} else if (aAttribute == nsGkAtoms::cols) {
|
||||
aResult.ParseIntWithFallback(aValue, DEFAULT_COLS);
|
||||
return true;
|
||||
} else if (aAttribute == nsGkAtoms::rows) {
|
||||
aResult.ParseIntWithFallback(aValue, DEFAULT_ROWS_TEXTAREA);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return nsGenericHTMLElement::ParseAttribute(aNamespaceID, aAttribute, aValue,
|
||||
|
||||
Reference in New Issue
Block a user