[Webkit-unassigned] [Bug 48221] Number values should be in the range of IEEE 754 single-precision floating point number

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 25 20:24:34 PDT 2010


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


Kent Tamura <tkent at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #71838|review?                     |review-
               Flag|                            |




--- Comment #5 from Kent Tamura <tkent at chromium.org>  2010-10-25 20:24:34 PST ---
(From update of attachment 71838)
View in context: https://bugs.webkit.org/attachment.cgi?id=71838&action=review

> WebCore/html/parser/HTMLParserIdioms.cpp:66
> +        number = -HUGE_VAL;

I don't think printing +-HUGE_VAL makes much sense, and huge values which are out of the float range should not be passed to this function if other code correctly handle minimum/maximum limits.

My concern is precision, not value range. Suppose that we have
  <input type=number step=0.005 min=4 value=5.005 >
and we call stepUp(2).  The value will be "5.015000000000001" because serializeForNumberType() handles lower bits of the double value.  The value should be "5.015".

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