Closed Bug 1033400 Opened 7 years ago Closed 7 years ago

html input number spinners not working properly when initial value is empty and min/max are set

Categories

(Core :: DOM: Core & HTML, defect)

30 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1028712
Tracking Status
firefox30 --- affected
firefox31 --- affected
firefox32 --- affected
firefox33 --- affected

People

(Reporter: trungbkk, Unassigned)

References

()

Details

(Keywords: html5, testcase)

User Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36

Steps to reproduce:

Create an input type number with a min/max value <input type="number" min="10" max="20" >


Actual results:

If we click on arrow up or down when the value is empty, the first number that appears is 1 and we cannot click the arrow up or down anymore.


Expected results:

The behaviour should be like Google Chrome :
- if the initial value is empty, click up or down will display min=10
- if the initial value is <min, the final value is min=10
- if the initial value is >max, the final value is max=20
- if the initial value is in the range, the final value is increased or decreased depends on the arrow
Version: 33 Branch → 30 Branch
Component: Untriaged → General
Keywords: html5
Status: UNCONFIRMED → NEW
Component: General → DOM: Core & HTML
Ever confirmed: true
Keywords: testcase
OS: Windows XP → All
Product: Firefox → Core
Hardware: x86 → All
Blocks: 344616
Flags: needinfo?(jwatt)
Summary: html input number not working properly → html input number spinners not working properly when initial value is empty and min/max are set
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1028712
Clearing old needinfo.
Flags: needinfo?(jwatt)
You need to log in before you can comment on or make changes to this bug.