Not sure if it helps, but you could try the following :
'placeholder' in document.createElement('input') && 'placeholder' in document.createElement('textarea');
It's how Modernizr do that check, and it's in most cases quite reliable.
Anyway, I don't think you should reinvent the wheel, there are some polyfills that can do that job for you.