summaryrefslogtreecommitdiff
path: root/source/bower_components/modernizr/feature-detects/forms-placeholder.js
blob: e68014bf97206bf257c7ab7f554a03d75417a244 (plain)
1
2
3
4
5
6
7
8
9
10
// testing for placeholder attribute in inputs and textareas
// re-using Modernizr.input if available

Modernizr.addTest('placeholder', function(){

  return !!( 'placeholder' in ( Modernizr.input    || document.createElement('input')    ) && 
             'placeholder' in ( Modernizr.textarea || document.createElement('textarea') )
           );

});