1define([
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 // #11217 - WebKit loses check when the name is after the checked attribute
11 // Support: Windows Web Apps (WWA)
12 // `name` and `type` need .setAttribute for WWA
13 input.setAttribute( "type", "radio" );
14 input.setAttribute( "checked", "checked" );
15 input.setAttribute( "name", "t" );
16
17 div.appendChild( input );
18
19 // Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3
20 // old WebKit doesn't clone checked state correctly in fragments
21 support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
22
23 // Make sure textarea (and checkbox) defaultValue is properly cloned
24 // Support: IE9-IE11+
25 div.innerHTML = "<textarea>x</textarea>";
26 support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
27})();
28
29return support;
30
31});