aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/support.js')
-rw-r--r--src/support.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/support.js b/src/support.js
index 201591893..d35dbed2d 100644
--- a/src/support.js
+++ b/src/support.js
@@ -13,16 +13,15 @@
div.innerHTML = " <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
var all = div.getElementsByTagName("*"),
- a = div.getElementsByTagName("a")[0];
+ a = div.getElementsByTagName("a")[0],
+ select = document.createElement("select"),
+ opt = select.appendChild( document.createElement("option") );
// Can't get basic test support
if ( !all || !all.length || !a ) {
return;
}
- var select = document.createElement("select");
- var opt = select.appendChild( document.createElement("option") );
-
jQuery.support = {
// IE strips leading whitespace when .innerHTML is used
leadingWhitespace: div.firstChild.nodeType === 3,