dom-createElement-attrs.js 270 B

1234567891011
  1. // by james a rosen.
  2. // https://github.com/Modernizr/Modernizr/issues/258
  3. Modernizr.addTest('createelement-attrs', function() {
  4. try {
  5. return document.createElement("<input name='test' />").getAttribute('name') == 'test';
  6. } catch(e) {
  7. return false;
  8. }
  9. });