From: John Resig Date: Sat, 29 Nov 2008 01:14:02 +0000 (+0000) Subject: IE doesn't care for boolean checks of .createElement - reverted back to using typeof... X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=615a4ce1b4c20e5b538332d0a6e19157243a9471;p=jquery.git IE doesn't care for boolean checks of .createElement - reverted back to using typeof instead. --- diff --git a/src/core.js b/src/core.js index b731eb8..1d27616 100644 --- a/src/core.js +++ b/src/core.js @@ -945,7 +945,7 @@ jQuery.extend({ context = context || document; // !context.createElement fails in IE with an error but returns typeof 'object' - if ( context.createElement === undefined ) + if ( typeof context.createElement === "undefined" ) context = context.ownerDocument || context[0] && context[0].ownerDocument || document; jQuery.each(elems, function(i, elem){