Bug 1295402 - Implement the min and max attribute for <input type=week>. r=smaug

This commit is contained in:
Jessica Jong
2016-09-25 19:33:00 -04:00
parent 648decc755
commit 6bb901a5d7
8 changed files with 82 additions and 59 deletions

View File

@@ -7359,8 +7359,7 @@ HTMLInputElement::HasPatternMismatch() const
bool
HTMLInputElement::IsRangeOverflow() const
{
// TODO: this is temporary until bug 888316 is fixed.
if (!DoesMinMaxApply() || mType == NS_FORM_INPUT_WEEK) {
if (!DoesMinMaxApply()) {
return false;
}
@@ -7380,8 +7379,7 @@ HTMLInputElement::IsRangeOverflow() const
bool
HTMLInputElement::IsRangeUnderflow() const
{
// TODO: this is temporary until bug 888316 is fixed.
if (!DoesMinMaxApply() || mType == NS_FORM_INPUT_WEEK) {
if (!DoesMinMaxApply()) {
return false;
}
@@ -8386,8 +8384,7 @@ HTMLInputElement::UpdateHasRange()
mHasRange = false;
// TODO: this is temporary until bug 888316 is fixed.
if (!DoesMinMaxApply() || mType == NS_FORM_INPUT_WEEK) {
if (!DoesMinMaxApply()) {
return;
}