aFarkas/webshim — pull request #146 by mathieul (2012-08-01 23:47:44+00:00)
Title: Add a placeholder to the date field shims

When replacing the date field implementation with webshim forms-ext and the jQueryUI datepicker widget, the text field shim doesn't have a placeholder like the native implementation in Chrome for instance.

Having a placeholder is convenient as it tells the user that this is a date field and what is its format with just a quick glance at the form.

The goal of this pull request is to set a placeholder on all the date fields using the datepicker dateFormat option to figure out its content.

I implemented it for our specific needs, so it is not much configurable. It has the following shortcomings:

* the placeholders can't be unset or overridden
* it only works if using the datepicker widget
* it's English only

I can work on improving the pull request if you're interested in this feature. What do you think?