Closed
Bug 556009
Opened 15 years ago
Closed 13 years ago
Implement step attribute for <input type='number'>
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: mounir, Assigned: mounir)
References
(Blocks 2 open bugs, )
Details
(Keywords: doc-bug-filed, html5)
Attachments
(3 files, 2 obsolete files)
4.43 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
22.00 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
2.86 KB,
patch
|
Details | Diff | Splinter Review |
"The step attribute indicates the granularity that is expected (and required) of the value, by limiting the allowed values. The section that defines the type attribute's current state also defines the default step and the step scale factor, which are used in processing the attribute as described below."
Assignee | ||
Comment 1•14 years ago
|
||
I'm going to use this bug for <input type='number'> implementation of the step attribute.
Assignee | ||
Comment 2•14 years ago
|
||
Assignee | ||
Comment 3•14 years ago
|
||
Some refactoring could be done by adding GetMin() and GetMax() but it's not really trivial given that we sometimes already have the string representation. I might do that in a separate bug.
Attachment #514960 -
Flags: review?(jonas)
Assignee | ||
Updated•14 years ago
|
Keywords: dev-doc-needed,
html5
Assignee | ||
Updated•14 years ago
|
Assignee | ||
Comment 4•14 years ago
|
||
Oups, I missed that 'any' comparaison had to be case-insensitive...
Attachment #514960 -
Attachment is obsolete: true
Attachment #514962 -
Flags: review?(jonas)
Attachment #514960 -
Flags: review?(jonas)
Assignee | ||
Comment 5•14 years ago
|
||
(In reply to comment #3)
> Created attachment 514960 [details] [diff] [review]
> Part 2 - Constraint validation
>
> Some refactoring could be done by adding GetMin() and GetMax() but it's not
> really trivial given that we sometimes already have the string representation.
> I might do that in a separate bug.
I've open bug 636634.
Assignee | ||
Updated•14 years ago
|
Whiteboard: [needs review]
Assignee | ||
Comment 6•14 years ago
|
||
Use double instead of float.
Attachment #514962 -
Attachment is obsolete: true
Attachment #515637 -
Flags: review?(jonas)
Attachment #514962 -
Flags: review?(jonas)
Attachment #514959 -
Flags: review?(jonas) → review+
Comment on attachment 515637 [details] [diff] [review]
Part 2 - Constraint validation
Get rid of GetDefaultStep and just use 1 for now, also get rid of GetDefaultStepScaleFactor. We can always add them later if they make sense then.
Attachment #515637 -
Flags: review?(jonas) → review+
Assignee | ||
Comment 8•14 years ago
|
||
Attaching the changes I've made to apply the review comments. Just for information. I'm not asking a review on them given (sounds useless).
Assignee | ||
Updated•14 years ago
|
Whiteboard: [needs review] → [ready to land][waits for dependencies]
Assignee | ||
Comment 9•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c85133eac60b
https://hg.mozilla.org/mozilla-central/rev/e8a4a2497b71
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [ready to land][waits for dependencies]
Target Milestone: --- → mozilla16
You need to log in
before you can comment on or make changes to this bug.
Description
•