git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure that we don't try to use a detached node (that was in a fragment) as a...
[jquery.git]
/
src
/
manipulation.js
diff --git
a/src/manipulation.js
b/src/manipulation.js
index
1453f98
..
a10feae
100644
(file)
--- a/
src/manipulation.js
+++ b/
src/manipulation.js
@@
-321,7
+321,7
@@
jQuery.fn.extend({
parent = value && value.parentNode;
// If we're in a fragment, just use that instead of building a new one
parent = value && value.parentNode;
// If we're in a fragment, just use that instead of building a new one
- if ( parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
+ if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
results = { fragment: parent };
} else {
results = { fragment: parent };
} else {