Implement the max attribute for <input type='number'>

RESOLVED FIXED in mozilla16

Status

()

Core
DOM: Core & HTML
RESOLVED FIXED
6 years ago
4 years ago

People

(Reporter: mounir, Assigned: mounir)

Tracking

(Blocks: 1 bug, {doc-bug-filed, html5})

Trunk
mozilla16
doc-bug-filed, html5
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments, 1 obsolete attachment)

Comment hidden (empty)
(Assignee)

Updated

6 years ago
Blocks: 635553
(Assignee)

Updated

6 years ago
Blocks: 635554
(Assignee)

Comment 1

6 years ago
Created attachment 514043 [details] [diff] [review]
Part 1 - Add the attribute
Assignee: nobody → mounir.lamouri
Status: NEW → ASSIGNED
Attachment #514043 - Flags: review?(jonas)
(Assignee)

Comment 2

6 years ago
Created attachment 514044 [details] [diff] [review]
Part 2 - Constraint validation
Attachment #514044 - Flags: review?(jonas)
(Assignee)

Updated

6 years ago
Whiteboard: [needs review]
(Assignee)

Comment 3

6 years ago
Created attachment 515625 [details] [diff] [review]
Part 2 - Constraint validation

Use with double instead of float.
Attachment #514044 - Attachment is obsolete: true
Attachment #514044 - Flags: review?(jonas)
Attachment #515625 - Flags: review?(jonas)
(Assignee)

Updated

6 years ago
Depends on: 636750
(Assignee)

Updated

6 years ago
Blocks: 563637
Attachment #514043 - Flags: review?(jonas) → review+
Attachment #515625 - Flags: review?(jonas) → review+
(Assignee)

Comment 4

5 years ago
https://hg.mozilla.org/mozilla-central/rev/dab3703c3245
https://hg.mozilla.org/mozilla-central/rev/9d82cf442db1
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [needs review]
Target Milestone: --- → mozilla16
Depends on: 802455
I know this is per the current spec, but I'm wondering why this IDL attribute is a DOMString rather than double.
(Assignee)

Comment 6

4 years ago
(In reply to Jonathan Watt [:jwatt] from comment #5)
> I know this is per the current spec, but I'm wondering why this IDL
> attribute is a DOMString rather than double.

Because some input types (like time, date, datetime, week, month, etc.) will define something else than numbers in max (and min).
See bug 866457 for documentation.
Keywords: dev-doc-needed → doc-bug-filed
You need to log in before you can comment on or make changes to this bug.