scratch – Blame information for rev 125

Subversion Repositories:
Rev:
Rev Author Line No. Line
125 office 1 define([
58 office 2 "../var/support"
125 office 3 ], function( support ) {
58 office 4  
125 office 5 (function() {
58 office 6 var input = document.createElement( "input" ),
7 select = document.createElement( "select" ),
8 opt = select.appendChild( document.createElement( "option" ) );
9  
10 input.type = "checkbox";
11  
125 office 12 // Support: iOS<=5.1, Android<=4.2+
58 office 13 // Default value for a checkbox should be "on"
14 support.checkOn = input.value !== "";
15  
125 office 16 // Support: IE<=11+
58 office 17 // Must access selectedIndex to make default options select
18 support.optSelected = opt.selected;
19  
125 office 20 // Support: Android<=2.3
21 // Options inside disabled selects are incorrectly marked as disabled
22 select.disabled = true;
23 support.optDisabled = !opt.disabled;
24  
25 // Support: IE<=11+
58 office 26 // An input loses its value after becoming a radio
27 input = document.createElement( "input" );
28 input.value = "t";
29 input.type = "radio";
30 support.radioValue = input.value === "t";
125 office 31 })();
58 office 32  
33 return support;
34  
125 office 35 });