]>
git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/ex-mode/node_modules/space-pen/node_modules/jquery/src/attributes/support.js
5db5c521213a189916ad7656fb90e7c1d8973561
3 ], function( support
) {
6 var input
= document
.createElement( "input" ),
7 select
= document
.createElement( "select" ),
8 opt
= select
.appendChild( document
.createElement( "option" ) );
10 input
.type
= "checkbox";
12 // Support: iOS<=5.1, Android<=4.2+
13 // Default value for a checkbox should be "on"
14 support
.checkOn
= input
.value
!== "";
17 // Must access selectedIndex to make default options select
18 support
.optSelected
= opt
.selected
;
20 // Support: Android<=2.3
21 // Options inside disabled selects are incorrectly marked as disabled
22 select
.disabled
= true;
23 support
.optDisabled
= !opt
.disabled
;
26 // An input loses its value after becoming a radio
27 input
= document
.createElement( "input" );
30 support
.radioValue
= input
.value
=== "t";