[Webkit-unassigned] [Bug 45491] when empty, clicking "down" on outer-spin-button returns "max value"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Nov 28 22:24:38 PST 2010


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





--- Comment #31 from Kent Tamura <tkent at chromium.org>  2010-11-28 22:24:37 PST ---
(In reply to comment #26)
> BTW, what do you think which is preferable stepUp/Down for <input value=(empty/invalid) step="any" /> ?
> - Not any changes after stepUp/Down.
>   (e.g. step-up from renderer for <input type="number" value="foo" step="any" /> => "foo")
> - Assuming value="0" or the current time, and no stepping due to step="any".
>   (e.g. step-up from renderer for <input type="number" value="foo" step="any" /> => "0")
> 
> I think the latter is better to avoid invalid inputs.
> In addition, the former looks complicating because value is sanitized out of stepUpFromRenderer().

I have no preference on it.
We had better add a FIXME comment that explains another choice.

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