[Webkit-unassigned] [Bug 106456] <input type='date'> rounds the step attribute for stepUp() and stepDown()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Mar 15 16:07:51 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=106456
--- Comment #2 from Mounir Lamouri <mounir at lamouri.fr> 2013-03-15 16:10:17 PST ---
(In reply to comment #1)
> From the spec, default step value is 1 day. *When it is set to 1.5 days, step is rounded to 2, therefore next value is + 2 days.*
Rounding 1.5 to 2 isn't per spec.
> "When the element is suffering from a step mismatch, the user agent may round the element's value to the nearest date for which the element would not suffer from a step mismatch."
Indeed and this is the behaviour of stepUp() per spec too: change the value to the next valid value. However, there is a significant difference between going to the next valid value and rounding the step as my test case shows.
--
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