diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2011-10-24 11:33:09 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2011-10-24 11:33:09 -0400 |
commit | 09c089aac9236e9e1866d8daad2e3b61a57f7d4c (patch) | |
tree | 894252421d0d76bc01a308a1fee1795d709efa9b /src/support.js | |
parent | 84d2307e0e20e9245523731a4450314cc0de6a95 (diff) | |
download | jquery-09c089aac9236e9e1866d8daad2e3b61a57f7d4c.tar.gz jquery-09c089aac9236e9e1866d8daad2e3b61a57f7d4c.zip |
Fix 10558. Get the right element for checkClone; thanks zhengzongyi!
Diffstat (limited to 'src/support.js')
-rw-r--r-- | src/support.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/support.js b/src/support.js index f43c5b0ef..7ea85984f 100644 --- a/src/support.js +++ b/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; |