winmarkltd/BootstrapFormHelpers — pull request #209 by cllns (2014-02-07 16:56:05+00:00)
Title: Phone - add support for placeholder attributes (with a test)

HTML5 added support for the "placeholder" attribute on inputs. It acts as a default value (greyed out by default) that is shown until the user adds their own input.

Previously, the phone input BFH would ignore the placeholder, and set the value (attribute of the input) to be the formattedNumber (typically nothing or "+1", if the format called for it).

Now, if there is no value set, this looks to see if it can format the placeholder instead.

Let me know if more tests are needed!