Blame view

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