Input polyfill.
The polyfill will add unique classes to an input field when it is focused
focus
. Also allows the placeholder attribute to work on browsers that
do not support the attribute. Adds js-input-placeholder
so styling can be done to
the placeholder attribute.
Example
The script is initialized on page load, but if new <input type="text" />
added to the page dynamically. Use the line below:
ML.InputControl();