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:
parent
74a132d944
commit
1be5582039
2 changed files with 17 additions and 4 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue