]> source.dussan.org Git - jquery.git/commitdiff
Resolve a763ae72 test failures
authorRichard Gibson <richard.gibson@gmail.com>
Sun, 16 Dec 2012 04:42:24 +0000 (23:42 -0500)
committerRichard Gibson <richard.gibson@gmail.com>
Sun, 16 Dec 2012 04:42:24 +0000 (23:42 -0500)
test/unit/manipulation.js

index fe9f6c203abf6b19ba60d09674f7366def0a7043..35beb52673bf1bb98cff484a8c6bf5f8a550da1d 100644 (file)
@@ -475,10 +475,7 @@ var testAppend = function( valueObj ) {
        d.remove();
        equal( jQuery("#nonnodes").contents().length, 3, "Check node,textnode,comment append cleanup worked" );
 
-       $input = jQuery("<input />").attr({
-               "type": "checkbox",
-               "checked": true
-       }).appendTo("#testForm");
+       $input = jQuery("<input type='checkbox'/>").prop( "checked", true ).appendTo("#testForm");
        equal( $input[ 0 ].checked, true, "A checked checkbox that is appended stays checked" );
 
        $radioChecked = jQuery("input:radio[name='R1']").eq( 1 );