Skip to content

Commit

Permalink
Fix 10558. Get the right element for checkClone; thanks zhengzongyi!
Browse files Browse the repository at this point in the history
  • Loading branch information
dmethvin committed Oct 24, 2011
1 parent 84d2307 commit 09c089a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/support.js
Expand Up @@ -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;
Expand Down

0 comments on commit 09c089a

Please sign in to comment.