summaryrefslogtreecommitdiff
path: root/source/bower_components/modernizr/feature-detects/dom-createElement-attrs.js
blob: d9a3b113312fe16541c82e3d216f37cd299cf5cd (plain)
1
2
3
4
5
6
7
8
9
10
11
// by james a rosen.
// https://github.com/Modernizr/Modernizr/issues/258

Modernizr.addTest('createelement-attrs', function() {
  try {
    return document.createElement("<input name='test' />").getAttribute('name') == 'test';
  } catch(e) {
    return false;
  }
});