aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2013-01-02 21:55:56 -0500
committerDave Methvin <dave.methvin@gmail.com>2013-01-03 20:57:00 -0500
commit1e5b14a131fca29b97830168a1d743d007d1d761 (patch)
tree96d8a3759f63c1f356706651d1ffd2e072eb1193 /src
parent9a32f12bdfcc9b7d27cd5907d838c638e5c735f7 (diff)
downloadjquery-1e5b14a131fca29b97830168a1d743d007d1d761.tar.gz
jquery-1e5b14a131fca29b97830168a1d743d007d1d761.zip
Remove appendChecked detect and stranded markup.
Diffstat (limited to 'src')
-rw-r--r--src/support.js15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/support.js b/src/support.js
index 25b2fd883..f1de07d45 100644
--- a/src/support.js
+++ b/src/support.js
@@ -1,16 +1,13 @@
jQuery.support = (function() {
- var support, all, a, select, opt, input, fragment,
+ var support, a, select, opt, input, fragment,
div = document.createElement("div");
- // Setup
- div.setAttribute( "className", "t" );
- div.innerHTML = " <link/><table></table><a>a</a><input type='checkbox'/>";
+ div.innerHTML = "<a>a</a><input type='checkbox'/>";
// Support tests won't run in some limited or non-browser environments
- all = div.getElementsByTagName("*");
a = div.getElementsByTagName("a")[ 0 ];
- if ( !all || !a || !all.length ) {
+ if ( !a ) {
return {};
}
@@ -59,10 +56,6 @@ jQuery.support = (function() {
fragment = document.createDocumentFragment();
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
support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
@@ -117,7 +110,7 @@ jQuery.support = (function() {
});
// Null elements to avoid leaks in IE
- all = select = fragment = opt = a = input = null;
+ select = fragment = opt = a = input = null;
return support;
})();