aboutsummaryrefslogtreecommitdiffstats
path: root/src/traversing.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2011-04-10 16:48:02 -0400
committerjeresig <jeresig@gmail.com>2011-04-10 16:48:02 -0400
commit909a6ff60a88b17155bc000ab49d02c2dd6938f2 (patch)
tree9d373c91cfdf46a905ea7a473c3dfc6e35c1b7a0 /src/traversing.js
parent247363b9a77281b202de7d535f356a6921a25cf5 (diff)
parenta807451a23577ad04140a32f7888e6c7b26a8838 (diff)
downloadjquery-909a6ff60a88b17155bc000ab49d02c2dd6938f2.tar.gz
jquery-909a6ff60a88b17155bc000ab49d02c2dd6938f2.zip
Merge branch 'bug_7369' of https://github.com/timmywil/jquery into timmywil-bug_7369
Diffstat (limited to 'src/traversing.js')
-rw-r--r--src/traversing.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/traversing.js b/src/traversing.js
index 5b6d489a0..fb5946bba 100644
--- a/src/traversing.js
+++ b/src/traversing.js
@@ -130,7 +130,7 @@ jQuery.fn.extend({
} else {
cur = cur.parentNode;
- if ( !cur || !cur.ownerDocument || cur === context ) {
+ if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) {
break;
}
}