diff options
author | jeresig <jeresig@gmail.com> | 2011-04-10 16:48:02 -0400 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2011-04-10 16:48:02 -0400 |
commit | 909a6ff60a88b17155bc000ab49d02c2dd6938f2 (patch) | |
tree | 9d373c91cfdf46a905ea7a473c3dfc6e35c1b7a0 /test/unit/traversing.js | |
parent | 247363b9a77281b202de7d535f356a6921a25cf5 (diff) | |
parent | a807451a23577ad04140a32f7888e6c7b26a8838 (diff) | |
download | jquery-909a6ff60a88b17155bc000ab49d02c2dd6938f2.tar.gz jquery-909a6ff60a88b17155bc000ab49d02c2dd6938f2.zip |
Merge branch 'bug_7369' of https://github.com/timmywil/jquery into timmywil-bug_7369
Diffstat (limited to 'test/unit/traversing.js')
-rw-r--r-- | test/unit/traversing.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/traversing.js b/test/unit/traversing.js index 71bc7f5d5..6228a0b98 100644 --- a/test/unit/traversing.js +++ b/test/unit/traversing.js @@ -205,6 +205,10 @@ test("closest()", function() { // Test on disconnected node equals( jQuery("<div><p></p></div>").find("p").closest("table").length, 0, "Make sure disconnected closest work." ); + + // Bug #7369 + equals( jQuery('<div foo="bar"></div>').closest('[foo]').length, 1, "Disconnected nodes with attribute selector" ); + equals( jQuery('<div>text</div>').closest('[lang]').length, 0, "Disconnected nodes with text and non-existent attribute selector" ); }); test("closest(Array)", function() { |