Permalink
Browse files

Workaround for buggy input type="date" in WebKit.

Webkit type="date" is a text input with tiny spinner arrows and no
datepicker.  Values are entered by the user by typing and optionally
using the spinner but are not validated. Thus, the UI does not req
ISO-8601 fmt. A feature check makes sure that ISO-8601 fmt is required
by setting non-ISO-8601 fmt and asserting that value is reset to "".
If the buggy input is there, then the type is reset. This causes a
problem, however, in that upon page refresh, the input type="date" is
restored and the user input is lost.
  • Loading branch information...
1 parent 23d194a commit 4031c2bc08af50afb4834ba31ae171f31869f2a5 @GarrettS committed Sep 16, 2011
Showing with 31 additions and 9 deletions.
  1. +1 −1 build/widget/Calendar/Calendar-min.js
  2. +15 −4 build/widget/Calendar/Calendar.js
  3. +15 −4 src/widget/calendar/Calendar.js

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 4031c2b

Please sign in to comment.