|
define( [ |
|
"../var/document", |
|
"../var/support" |
|
], function( document, support ) { |
|
|
|
( function() { |
|
var fragment = document.createDocumentFragment(), |
|
div = fragment.appendChild( document.createElement( "div" ) ), |
|
input = document.createElement( "input" ); |
|
|
|
|
|
|
|
|
|
|
|
input.setAttribute( "type", "radio" ); |
|
input.setAttribute( "checked", "checked" ); |
|
input.setAttribute( "name", "t" ); |
|
|
|
div.appendChild( input ); |
|
|
|
|
|
|
|
support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; |
|
|
|
|
|
|
|
div.innerHTML = "<textarea>x</textarea>"; |
|
support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; |
|
} )(); |
|
|
|
return support; |
|
|
|
} ); |
|
|