diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-30 19:56:09 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-30 19:56:09 +0200 |
commit | 0679b939f3a74f8d5b50b55927068e7a0414a4c7 (patch) | |
tree | 7949684ea01a564f2adbfd2e658c5a386159943b /dom/html/HTMLInputElement.cpp | |
parent | a77308735f50fb1735bca82ffd0ffaf12a5c9f62 (diff) | |
download | uxp-0679b939f3a74f8d5b50b55927068e7a0414a4c7.tar.gz |
Bug 1310079 - Implement the min and max attribute for <input type=datetime-local>
Diffstat (limited to 'dom/html/HTMLInputElement.cpp')
-rw-r--r-- | dom/html/HTMLInputElement.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/dom/html/HTMLInputElement.cpp b/dom/html/HTMLInputElement.cpp index b9efa0066f..af70945e3a 100644 --- a/dom/html/HTMLInputElement.cpp +++ b/dom/html/HTMLInputElement.cpp @@ -7848,8 +7848,7 @@ HTMLInputElement::HasPatternMismatch() const bool HTMLInputElement::IsRangeOverflow() const { - // TODO: this is temporary until bug 888331 is fixed. - if (!DoesMinMaxApply() || mType == NS_FORM_INPUT_DATETIME_LOCAL) { + if (!DoesMinMaxApply()) { return false; } @@ -7869,8 +7868,7 @@ HTMLInputElement::IsRangeOverflow() const bool HTMLInputElement::IsRangeUnderflow() const { - // TODO: this is temporary until bug 888331 is fixed. - if (!DoesMinMaxApply() || mType == NS_FORM_INPUT_DATETIME_LOCAL) { + if (!DoesMinMaxApply()) { return false; } @@ -8878,8 +8876,7 @@ HTMLInputElement::UpdateHasRange() mHasRange = false; - // TODO: this is temporary until bug 888331 is fixed. - if (!DoesMinMaxApply() || mType == NS_FORM_INPUT_DATETIME_LOCAL) { + if (!DoesMinMaxApply()) { return; } |