[Webkit-unassigned] [Bug 91889] New: <input type='range'> with decimal step size can have inaccurate decimal values
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jul 20 12:04:18 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=91889
Summary: <input type='range'> with decimal step size can have
inaccurate decimal values
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
URL: http://jsfiddle.net/njMhg/
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Forms
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: pchomicki at rim.com
CC: tonikitoo at webkit.org, gmak at rim.com
For example, range input has value 30.740000000000002 instead of the expected 30.74.
Test code pasted below, or available here: http://jsfiddle.net/njMhg/
<html>
<body>
<input type="range" min="0" max="50" value="0" step="0.01" onchange="showValue(this.value)" />
<span id="range">0</span>
<script type="text/javascript">
function showValue(newValue)
{
document.getElementById("range").innerHTML=newValue;
}
</script>
</body>
</html>
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list