diff options
Diffstat (limited to 'node_modules/jquery/src/attributes/support.js')
-rw-r--r-- | node_modules/jquery/src/attributes/support.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/node_modules/jquery/src/attributes/support.js b/node_modules/jquery/src/attributes/support.js new file mode 100644 index 0000000000..e8d02b5c90 --- /dev/null +++ b/node_modules/jquery/src/attributes/support.js @@ -0,0 +1,36 @@ +define( [ + "../var/document", + "../var/support" +], function( document, support ) { + +( function() { + var input = document.createElement( "input" ), + select = document.createElement( "select" ), + opt = select.appendChild( document.createElement( "option" ) ); + + input.type = "checkbox"; + + // Support: iOS<=5.1, Android<=4.2+ + // Default value for a checkbox should be "on" + support.checkOn = input.value !== ""; + + // Support: IE<=11+ + // Must access selectedIndex to make default options select + support.optSelected = opt.selected; + + // Support: Android<=2.3 + // Options inside disabled selects are incorrectly marked as disabled + select.disabled = true; + support.optDisabled = !opt.disabled; + + // Support: IE<=11+ + // 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; + +} ); |