Fixed #1763 by checking to see if .createElement() is available on the context and if isn't default to other contexts.

This commit is contained in:
David Serduke 2007-12-04 19:37:03 +00:00
parent d938c6bbd6
commit 76e3a90153
2 changed files with 19 additions and 4 deletions

View file

@ -917,6 +917,8 @@ jQuery.extend({
clean: function( elems, context ) {
var ret = [];
context = context || document;
if (!context.createElement)
context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
jQuery.each(elems, function(i, elem){
if ( !elem )