[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 21:26:43 PST 2010


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





--- Comment #26 from Dai Mikurube <dmikurube at google.com>  2010-11-28 21:26:42 PST ---
(In reply to comment #24)
> Why does 2010-02-10 + huge step become 1970-01-01, which is less than the initial value?
> Why does 2010-02-10 - huge step become 275769-09-13, which is larger than the initial value?
Thank you for This was a mistake. I fixed it.


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().

FYI: The stepUp/Down DOM APIs for invalid values cause DOM Exceptions.

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