Blame view
app/bower_components/jquery/src/manipulation/support.js
1.01 KB
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 fragment = document.createDocumentFragment(), div = fragment.appendChild( document.createElement( "div" ) ), input = document.createElement( "input" ); |
f986e111b
|
12 |
|
87c93a029
|
13 14 15 16 17 18 19 |
// Support: Android 4.0 - 4.3 only // 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" ); |
f986e111b
|
20 |
|
87c93a029
|
21 |
div.appendChild( input ); |
f986e111b
|
22 |
|
87c93a029
|
23 24 25 |
// Support: Android <=4.1 only // Older WebKit doesn't clone checked state correctly in fragments support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; |
f986e111b
|
26 |
|
87c93a029
|
27 |
// Support: IE <=11 only |
f986e111b
|
28 |
// Make sure textarea (and checkbox) defaultValue is properly cloned |
f986e111b
|
29 30 |
div.innerHTML = "<textarea>x</textarea>"; support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; |
87c93a029
|
31 |
} )(); |
f986e111b
|
32 33 |
return support; |
87c93a029
|
34 |
} ); |