Closed
Bug 1209766
Opened 11 years ago
Closed 10 years ago
When <input type="number"> changes from one invalid state to a different invalid state, the validation message should update
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla48
People
(Reporter: arni2033, Assigned: stone)
References
Details
(Whiteboard: [tw-dom] btpp-active)
Attachments
(2 files)
|
1.74 KB,
text/html
|
Details | |
|
1.50 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
STR: (Win7_64, Nightly 44, 32bit, ID 20150926030216, new profile, safe mode)
1. Open attached testcase (just an input with styling)
2. Type "4.56." (four-dot-five-six-dot) in input, press Enter
[You'll get "4.56." in the input. Notification "Please enter a number" will appear] [OK]
3. Delete last symbol, press Enter
[You'll get "4.56" in the input. Notification "Please enter a number" will appear] [BAD]
4. Click outside the input. Click the input again to focus it
5. Press Enter
[The value of input is still "4.56". Notification "Please select a valid value. The two nearest
valid values are 4.55 and 4.65" will appear] [OK]
6. Delete last symbol, press Enter
[You'll get "4.5" in the input. Notification "Please select a valid value. The two nearest
valid values are 4.55 and 4.65" will appear] [BAD]
7. Click outside the input. Click the input again to focus it
8. Press Enter
[The value of input is still "4.5". Notification "Please select a value that is no less than 4.55"
will appear] [OK]
Expectations:
3. [Notification "Please select a valid value. The two nearest valid values are 4.55 and 4.65"
should appear]
6. [Notification "Please select a value that is no less than 4.55" should appear]
Updated•11 years ago
|
Summary: <input type="number">s provide wrong notification second user submits the form time if he modifies wrong string → When <input type="number"> changes from one invalid state to a different invalid state, the validation message should update
Whiteboard: [tw-dom]
| Assignee | ||
Comment 1•10 years ago
|
||
I would like to try on this bug.
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → sshih
| Assignee | ||
Comment 2•10 years ago
|
||
The validation message is only updated after the focused element changed. Always updating the validation message before popping notification can fix it.
Attachment #8729323 -
Flags: review?(khuey)
Comment on attachment 8729323 [details] [diff] [review]
Always updates the validation message before showing notification
Review of attachment 8729323 [details] [diff] [review]:
-----------------------------------------------------------------
Nice catch!
Attachment #8729323 -
Flags: review?(khuey) → review+
Updated•10 years ago
|
Whiteboard: [tw-dom] → [tw-dom] btpp-active
| Assignee | ||
Comment 4•10 years ago
|
||
Keywords: checkin-needed
Keywords: checkin-needed
Comment 6•10 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox48:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
You need to log in
before you can comment on or make changes to this bug.
Description
•