Plato on Github
Report Home
src/attributes/support.js
Maintainability
67.60
Lines of code
33
Difficulty
9.00
Estimated Errors
0.15
Function weight
By Complexity
By SLOC
define( [ "../var/document", "../var/support" ], function( document, support ) { "use strict"; ( function() { var input = document.createElement( "input" ), select = document.createElement( "select" ), opt = select.appendChild( document.createElement( "option" ) ); input.type = "checkbox"; // Support: Android <=4.3 only // Default value for a checkbox should be "on" support.checkOn = input.value !== ""; // Support: IE <=11 only // Must access selectedIndex to make default options select support.optSelected = opt.selected; // Support: IE <=11 only // An input loses its value after becoming a radio input = document.createElement( "input" ); input.value = "t"; input.type = "radio"; support.radioValue = input.value === "t"; } )(); return support; } );