This is far from a good implementation (at least the vanilla
implementation) - eg- it has the following bit:
var elems = document.getElementsByTagName("*"),
n = elems.length;
for(var i=0;i<n;i++){
if(elems[i].nodeName.toLowerCase() == 'input' || elems[i].
nodeName.toLowerCase() == 'textarea') {
now - that's plain wrong (eg solution = getElementsByTagName('input'),
getElementsByTagName('textarea') - send both to an iterate function.
Also - it lacks support for styling, since it simply replaces the value
On Mon, Nov 21, 2011 at 4:16 PM, Adrian Statescu <[email protected]>wrote:
> Brings HTML5 placeholder attribute into all modern browsers.
>
> Check this out: https://github.com/thinkphp/placeholder.js
>
> cheers!
>
--
Arieh Glazer
אריה גלזר
052-5348-561
http://www.arieh.co.il
http://www.link-wd.co.il