forms-placeholder.js 354 B

12345678910
  1. // testing for placeholder attribute in inputs and textareas
  2. // re-using Modernizr.input if available
  3. Modernizr.addTest('placeholder', function(){
  4. return !!( 'placeholder' in ( Modernizr.input || document.createElement('input') ) &&
  5. 'placeholder' in ( Modernizr.textarea || document.createElement('textarea') )
  6. );
  7. });