Fixes #7369 - Using an attribute selector for a non-existent attribute raised an exception on disconnected nodes
This commit is contained in:
parent
6c28a394c2
commit
a807451a23
2 changed files with 6 additions and 2 deletions
|
@ -112,7 +112,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