[placeholder]
polyfill for better-dom
The placeholder
attribute is quite useful and despite on "optional" sense in some UIs you have to include a polyfill that adds support in old browsers. The project implements consistent support for the placeholder
attribute in browsers that do not handle it.
LIVE DEMO (open in IE < 10)
placeholder
attributeUse bower to download this extension with all required dependencies.
$ bower install better-placeholder-polyfill
This will clone the latest version of the better-placeholder-polyfill into the bower_components
directory at the root of your project.
Then append the following html elements on your page:
<script src="https://github.com/chemerisuk/better-placeholder-polyfill/raw/master/bower_components/better-dom/dist/better-dom.js"></script>
<script src="https://github.com/chemerisuk/better-placeholder-polyfill/raw/master/bower_components/better-placeholder-polyfill/dist/better-placeholder-polyfill.js"></script>