Closed Bug 1004327 Opened 8 years ago Closed 8 years ago
input type=number limited to 3 digits of precision
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 (Beta/Release) Build ID: 20140428193603 Steps to reproduce: See: http://jsfiddle.net/LAk5C/ Create an Input control of type=number with greater than 3 decimal digits step & value <input type="number" name="test" step="0.0001" value="1.1111"> Actual results: Only shows 3 digits of precision, regardless of step or initial value precision: Above example shows: 1.111 Internal value steps correctly but display changes only every 10 steps because of rounding to 3 decimal places Expected results: Not sure what the HTML5 spec says but I think if display value must be rounded then it should never be truncated to a lower precision than the step value.
Status: UNCONFIRMED → NEW
Component: DOM: Core & HTML → Layout: Form Controls
Ever confirmed: true
OS: Linux → All
Hardware: x86_64 → All
Version: 29 Branch → Trunk
Assignee: nobody → jwatt
Attachment #8415826 - Flags: review?(bzbarsky)
Comment on attachment 8415826 [details] [diff] [review] patch r=me
Attachment #8415826 - Flags: review?(bzbarsky) → review+
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
Will this be uplifted to Aurora & Beta?
Comment on attachment 8415826 [details] [diff] [review] patch [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 844744 User impact if declined: some site's use of <input type=number> will be broken Testing completed (on m-c, etc.): landed on m-i Risk to taking this patch (and alternatives if risky): very low String or IDL/UUID changes made by this patch: none
Verified as fixed on Firefox 30 beta 2 (20140505140302), Aurora 31.0a2 (20140505004003) and Nightly 32.0a1 (20140505030202) under Win 7 64-bit, Ubuntu 12.10 32-bit and Mac OSX 10.7.5
Chances are probably very slim and maybe it's already too late, but I give it a try anyway. There is going to be a maintenance update of Firefox 29. Any chance to get this included?
It is indeed too late, sorry. The next version is not too far anyway.
Duplicate of this bug: 1012446
Duplicate of this bug: 1012976
You need to log in before you can comment on or make changes to this bug.