Merge branch 'bug_7369' of https://github.com/timmywil/jquery into timmywil-bug_7369
This commit is contained in:
commit
909a6ff60a
2 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue