]> source.dussan.org Git - jquery.git/commitdiff
Fix 10558. Get the right element for checkClone; thanks zhengzongyi!
authorDave Methvin <dave.methvin@gmail.com>
Mon, 24 Oct 2011 15:33:09 +0000 (11:33 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Mon, 24 Oct 2011 15:33:09 +0000 (11:33 -0400)
src/support.js

index f43c5b0ef6a27fd4909c79a79a22d6d59fbaba3f..7ea85984f69939d7b7480907f005b3d0e8373e23 100644 (file)
@@ -135,7 +135,7 @@ jQuery.support = (function() {
        input.setAttribute("checked", "checked");
        div.appendChild( input );
        fragment = document.createDocumentFragment();
-       fragment.appendChild( div.firstChild );
+       fragment.appendChild( div.lastChild );
 
        // WebKit doesn't clone checked state correctly in fragments
        support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;