aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-10-24 11:33:09 -0400
committerDave Methvin <dave.methvin@gmail.com>2011-10-24 11:33:09 -0400
commit09c089aac9236e9e1866d8daad2e3b61a57f7d4c (patch)
tree894252421d0d76bc01a308a1fee1795d709efa9b /src/support.js
parent84d2307e0e20e9245523731a4450314cc0de6a95 (diff)
downloadjquery-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.js2
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;