| 14217 |
anikendra |
1 |
define([
|
|
|
2 |
"../var/support"
|
|
|
3 |
], function( support ) {
|
|
|
4 |
|
|
|
5 |
(function() {
|
|
|
6 |
var fragment = document.createDocumentFragment(),
|
|
|
7 |
div = fragment.appendChild( document.createElement( "div" ) ),
|
|
|
8 |
input = document.createElement( "input" );
|
|
|
9 |
|
|
|
10 |
// Support: Safari<=5.1
|
|
|
11 |
// Check state lost if the name is set (#11217)
|
|
|
12 |
// Support: Windows Web Apps (WWA)
|
|
|
13 |
// `name` and `type` must use .setAttribute for WWA (#14901)
|
|
|
14 |
input.setAttribute( "type", "radio" );
|
|
|
15 |
input.setAttribute( "checked", "checked" );
|
|
|
16 |
input.setAttribute( "name", "t" );
|
|
|
17 |
|
|
|
18 |
div.appendChild( input );
|
|
|
19 |
|
|
|
20 |
// Support: Safari<=5.1, Android<4.2
|
|
|
21 |
// Older WebKit doesn't clone checked state correctly in fragments
|
|
|
22 |
support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
|
|
|
23 |
|
|
|
24 |
// Support: IE<=11+
|
|
|
25 |
// Make sure textarea (and checkbox) defaultValue is properly cloned
|
|
|
26 |
div.innerHTML = "<textarea>x</textarea>";
|
|
|
27 |
support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
|
|
|
28 |
})();
|
|
|
29 |
|
|
|
30 |
return support;
|
|
|
31 |
|
|
|
32 |
});
|