Skip to content
Permalink
Browse files

Fix 10558. Get the right element for checkClone; thanks zhengzongyi!

  • Loading branch information...
dmethvin committed Oct 24, 2011
1 parent 84d2307 commit 09c089aac9236e9e1866d8daad2e3b61a57f7d4c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/support.js
@@ -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;

0 comments on commit 09c089a

Please sign in to comment.
You can’t perform that action at this time.