From 09c089aac9236e9e1866d8daad2e3b61a57f7d4c Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Mon, 24 Oct 2011 11:33:09 -0400 Subject: [PATCH] Fix 10558. Get the right element for checkClone; thanks zhengzongyi! --- src/support.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support.js b/src/support.js index f43c5b0ef6..7ea85984f6 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;