[Webkit-unassigned] [Bug 80009] New: Setting '0.6' to the value of a range input makes the value 0.6000000000000001

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 29 23:35:46 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=80009

           Summary: Setting '0.6' to the value of a range input makes the
                    value 0.6000000000000001
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: tkent at chromium.org
                CC: keishi at webkit.org, jonlee at apple.com,
                    yosin at chromium.org
            Blocks: 76198


Try:
data:text/html,<input type=range step=0.1 value=0.6 ><script>document.write(document.getElementsByTagName('input')[0].value);</script>

It should show '0.6', not '0.6000000000000001'


This was found by IE Test Center:
http://samples.msdn.microsoft.com/ietestcenter/#html5Range
"Set the 'value' to any numeric value in markup"

-- 
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