1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 13:58:49 +00:00

Bug 1310079 - Implement the min and max attribute for <input type=datetime-local>

This commit is contained in:
janekptacijarabaci
2018-03-30 19:56:09 +02:00
committed by Roy Tam
parent 344ea39e20
commit c140ca5b67
9 changed files with 88 additions and 112 deletions
+3 -6
View File
@@ -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;
}