Blame view

bower_components/jquery/src/attributes/support.js 927 Bytes
a1a3bc73   Luigi Serra   graphs updates
1
2
  define( [
  	"../var/document",
74249687   Luigi Serra   Cross browser con...
3
  	"../var/support"
a1a3bc73   Luigi Serra   graphs updates
4
  ], function( document, support ) {
74249687   Luigi Serra   Cross browser con...
5
  
a1a3bc73   Luigi Serra   graphs updates
6
  ( function() {
74249687   Luigi Serra   Cross browser con...
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  	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";
a1a3bc73   Luigi Serra   graphs updates
32
  } )();
74249687   Luigi Serra   Cross browser con...
33
34
35
  
  return support;
  
a1a3bc73   Luigi Serra   graphs updates
36
  } );