Blame view
app/bower_components/jquery/src/attributes/support.js
786 Bytes
87c93a029
|
1 2 |
define( [ "../var/document", |
f986e111b
|
3 |
"../var/support" |
87c93a029
|
4 |
], function( document, support ) { |
f986e111b
|
5 |
|
87c93a029
|
6 |
"use strict"; |
f986e111b
|
7 |
|
87c93a029
|
8 9 10 11 |
( function() { var input = document.createElement( "input" ), select = document.createElement( "select" ), opt = select.appendChild( document.createElement( "option" ) ); |
f986e111b
|
12 |
|
87c93a029
|
13 |
input.type = "checkbox"; |
f986e111b
|
14 |
|
87c93a029
|
15 16 17 |
// Support: Android <=4.3 only // Default value for a checkbox should be "on" support.checkOn = input.value !== ""; |
f986e111b
|
18 |
|
87c93a029
|
19 20 |
// Support: IE <=11 only // Must access selectedIndex to make default options select |
f986e111b
|
21 |
support.optSelected = opt.selected; |
87c93a029
|
22 23 |
// Support: IE <=11 only // An input loses its value after becoming a radio |
f986e111b
|
24 |
input = document.createElement( "input" ); |
f986e111b
|
25 |
input.value = "t"; |
87c93a029
|
26 |
input.type = "radio"; |
f986e111b
|
27 |
support.radioValue = input.value === "t"; |
87c93a029
|
28 |
} )(); |
f986e111b
|
29 30 |
return support; |
87c93a029
|
31 |
} ); |