summaryrefslogtreecommitdiffstats
path: root/dom/html/HTMLInputElement.cpp
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-30 19:56:09 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-30 19:56:09 +0200
commit0679b939f3a74f8d5b50b55927068e7a0414a4c7 (patch)
tree7949684ea01a564f2adbfd2e658c5a386159943b /dom/html/HTMLInputElement.cpp
parenta77308735f50fb1735bca82ffd0ffaf12a5c9f62 (diff)
downloadUXP-0679b939f3a74f8d5b50b55927068e7a0414a4c7.tar
UXP-0679b939f3a74f8d5b50b55927068e7a0414a4c7.tar.gz
UXP-0679b939f3a74f8d5b50b55927068e7a0414a4c7.tar.lz
UXP-0679b939f3a74f8d5b50b55927068e7a0414a4c7.tar.xz
UXP-0679b939f3a74f8d5b50b55927068e7a0414a4c7.zip
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.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/dom/html/HTMLInputElement.cpp b/dom/html/HTMLInputElement.cpp
index b9efa0066..af70945e3 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;
}