Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
35 lines (27 sloc)
1.01 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define( [ | |
| "../var/document", | |
| "../var/support" | |
| ], function( document, support ) { | |
| "use strict"; | |
| ( function() { | |
| var fragment = document.createDocumentFragment(), | |
| div = fragment.appendChild( document.createElement( "div" ) ), | |
| input = document.createElement( "input" ); | |
| // 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" ); | |
| div.appendChild( input ); | |
| // Support: Android <=4.1 only | |
| // Older WebKit doesn't clone checked state correctly in fragments | |
| support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; | |
| // Support: IE <=11 only | |
| // Make sure textarea (and checkbox) defaultValue is properly cloned | |
| div.innerHTML = "<textarea>x</textarea>"; | |
| support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; | |
| } )(); | |
| return support; | |
| } ); |