scratch – Diff between revs 58 and 125

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 58 Rev 125
Line 1... Line 1...
1 define( [ 1 define([
2 "../var/document", -  
3 "../var/support" 2 "../var/support"
4 ], function( document, support ) { 3 ], function( support ) {
Line 5... Line -...
5   -  
6 "use strict"; -  
7   4  
8 ( function() { 5 (function() {
9 var fragment = document.createDocumentFragment(), 6 var fragment = document.createDocumentFragment(),
10 div = fragment.appendChild( document.createElement( "div" ) ), 7 div = fragment.appendChild( document.createElement( "div" ) ),
Line 11... Line 8...
11 input = document.createElement( "input" ); 8 input = document.createElement( "input" );
12   9  
13 // Support: Android 4.0 - 4.3 only 10 // Support: Safari<=5.1
14 // Check state lost if the name is set (#11217) 11 // Check state lost if the name is set (#11217)
15 // Support: Windows Web Apps (WWA) 12 // Support: Windows Web Apps (WWA)
16 // `name` and `type` must use .setAttribute for WWA (#14901) 13 // `name` and `type` must use .setAttribute for WWA (#14901)
17 input.setAttribute( "type", "radio" ); 14 input.setAttribute( "type", "radio" );
Line 18... Line 15...
18 input.setAttribute( "checked", "checked" ); 15 input.setAttribute( "checked", "checked" );
Line 19... Line 16...
19 input.setAttribute( "name", "t" ); 16 input.setAttribute( "name", "t" );
20   17  
21 div.appendChild( input ); 18 div.appendChild( input );
Line 22... Line 19...
22   19  
23 // Support: Android <=4.1 only 20 // Support: Safari<=5.1, Android<4.2
24 // Older WebKit doesn't clone checked state correctly in fragments 21 // Older WebKit doesn't clone checked state correctly in fragments
25 support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; 22 support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
26   23  
Line 27... Line 24...
27 // Support: IE <=11 only 24 // Support: IE<=11+
Line 28... Line 25...
28 // Make sure textarea (and checkbox) defaultValue is properly cloned 25 // Make sure textarea (and checkbox) defaultValue is properly cloned