diff options
author | timmywil <tim.willison@thisismedium.com> | 2011-03-30 23:39:19 -0400 |
---|---|---|
committer | timmywil <tim.willison@thisismedium.com> | 2011-03-30 23:39:19 -0400 |
commit | a807451a23577ad04140a32f7888e6c7b26a8838 (patch) | |
tree | b77f245d7e11f2d83c8907de3182346d0a1b9f88 /src/traversing.js | |
parent | 6c28a394c2174c51196cd9ac073b819fc79adb3b (diff) | |
download | jquery-a807451a23577ad04140a32f7888e6c7b26a8838.tar.gz jquery-a807451a23577ad04140a32f7888e6c7b26a8838.zip |
Fixes #7369 - Using an attribute selector for a non-existent attribute raised an exception on disconnected nodes
Diffstat (limited to 'src/traversing.js')
-rw-r--r-- | src/traversing.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/traversing.js b/src/traversing.js index fe2e33d88..468aa097f 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -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; } } |