Bug 1295402 - Implement the min and max attribute for <input type=week>. r=smaug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user