mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 14:25:05 -05:00
Fixed #1419 where IE failed with .text() on an XML node. This is part of a series of tickets including #1264 where the context of the DOM manipulation was a problem in xml and iframe documents.
This commit is contained in:
@@ -917,7 +917,8 @@ jQuery.extend({
|
||||
clean: function( elems, context ) {
|
||||
var ret = [];
|
||||
context = context || document;
|
||||
if (!context.createElement)
|
||||
// !context.createElement fails in IE with an error but returns typeof 'object'
|
||||
if (typeof context.createElement == 'undefined')
|
||||
context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
|
||||
|
||||
jQuery.each(elems, function(i, elem){
|
||||
|
||||
Reference in New Issue
Block a user