Commit 1e5b14a1 authored by Dave Methvin's avatar Dave Methvin

Remove appendChecked detect and stranded markup.

parent 9a32f12b
jQuery.support = (function() { jQuery.support = (function() {
var support, all, a, select, opt, input, fragment, var support, a, select, opt, input, fragment,
div = document.createElement("div"); div = document.createElement("div");
// Setup div.innerHTML = "<a>a</a><input type='checkbox'/>";
div.setAttribute( "className", "t" );
div.innerHTML = " <link/><table></table><a>a</a><input type='checkbox'/>";
// Support tests won't run in some limited or non-browser environments // Support tests won't run in some limited or non-browser environments
all = div.getElementsByTagName("*");
a = div.getElementsByTagName("a")[ 0 ]; a = div.getElementsByTagName("a")[ 0 ];
if ( !all || !a || !all.length ) { if ( !a ) {
return {}; return {};
} }
...@@ -59,10 +56,6 @@ jQuery.support = (function() { ...@@ -59,10 +56,6 @@ jQuery.support = (function() {
fragment = document.createDocumentFragment(); fragment = document.createDocumentFragment();
fragment.appendChild( input ); fragment.appendChild( input );
// Check if a disconnected checkbox will retain its checked
// value of true after appended to the DOM (IE6/7)
support.appendChecked = input.checked;
// 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;
...@@ -117,7 +110,7 @@ jQuery.support = (function() { ...@@ -117,7 +110,7 @@ jQuery.support = (function() {
}); });
// Null elements to avoid leaks in IE // Null elements to avoid leaks in IE
all = select = fragment = opt = a = input = null; select = fragment = opt = a = input = null;
return support; return support;
})(); })();
......
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