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