HTML5 Placeholder are awesome for the user and helps on many places to understand what's needed. Often they even replace the label all in all. But what's with all the old browsers (http://caniuse.com/#search=placeholder)? Even in newer browsers (e.g. IE10) placeholders are hidden on focus.
- placeholder read from attribute
- is hidden on first typed character (not on focus)
- works only on rendered elements within the dom
- does it also if the normal placeholder is available
Tested in IE 7 - 10
<input type="text" placeholder="Enter some text"/>
<script>
$("input").polyfill_placeholder();
</script>
Thats all the magic.
Working example here: http://codepen.io/deFux/full/JKxog
RequestAnimationFrame from Paul Irish https://gist.github.com/1579671