Commit 09c089aa authored by Dave Methvin's avatar Dave Methvin

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

parent 84d2307e
...@@ -135,7 +135,7 @@ jQuery.support = (function() { ...@@ -135,7 +135,7 @@ jQuery.support = (function() {
input.setAttribute("checked", "checked"); input.setAttribute("checked", "checked");
div.appendChild( input ); div.appendChild( input );
fragment = document.createDocumentFragment(); fragment = document.createDocumentFragment();
fragment.appendChild( div.firstChild ); fragment.appendChild( div.lastChild );
// WebKit doesn't clone checked state correctly in fragments // WebKit doesn't clone checked state correctly in fragments
support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked; support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment