modernizr
Version:
Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.
16 lines (15 loc) • 405 B
JavaScript
/*!
{
"name": "output Element",
"property": "outputelem",
"tags": ["elem"],
"builderAliases": ["elem_output"],
"notes": [{
"name": "WhatWG Spec",
"href": "https://html.spec.whatwg.org/multipage/forms.html#the-output-element"
}]
}
!*/
define(['Modernizr', 'createElement'], function(Modernizr, createElement) {
Modernizr.addTest('outputelem', 'value' in createElement('output'));
});