mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
IE doesn't care for boolean checks of .createElement - reverted back to using typeof instead.
This commit is contained in:
parent
d1f089952e
commit
615a4ce1b4
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user