mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Bug 1310079 - Implement the min and max attribute for <input type=datetime-local>
This commit is contained in:
parent
344ea39e20
commit
c140ca5b67
9 changed files with 88 additions and 112 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue