]>
git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/ex-mode/node_modules/space-pen/node_modules/jquery/src/manipulation/support.js
822a014f55e37542aaa57bae97ed761034e05dbe
3 ], function( support
) {
6 var fragment
= document
.createDocumentFragment(),
7 div
= fragment
.appendChild( document
.createElement( "div" ) ),
8 input
= document
.createElement( "input" );
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" );
18 div
.appendChild( input
);
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
;
25 // Make sure textarea (and checkbox) defaultValue is properly cloned
26 div
.innerHTML
= "<textarea>x</textarea>";
27 support
.noCloneChecked
= !!div
.cloneNode( true ).lastChild
.defaultValue
;