[Webkit-unassigned] [Bug 92495] New: Change HTMLInputElement::setValueAsNumber to throw NOT_SUPPORTED_ERR only when the given value is NaN

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 27 05:20:01 PDT 2012


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

           Summary: Change HTMLInputElement::setValueAsNumber to throw
                    NOT_SUPPORTED_ERR only when the given value is NaN
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: skyul at company100.net


Currently, HTMLInputElement::setValueAsNumber throws NOT_SUPPORTED_ERR if newValue is infinity. This behavior is wrong because infinity is a valid number. Each input type additionally checks if the number is infinity or not. For example, NumberInputType::setValueAsDouble compares newValue to +floatMax and -floatMax and throws INVALID_STATE_ERR.

Changed HTMLInputElement::setValueAsNumber to check isnan(newValue) instead of !isfinite(newValue).

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