aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/traversing.js
diff options
context:
space:
mode:
authortimmywil <timmywillisn@gmail.com>2012-06-20 11:19:24 -0400
committerTimmy Willison <timmywillisn@gmail.com>2012-12-13 15:31:02 -0500
commit05531fc4080ae24070930d15ae0cea7ae056457d (patch)
treeffd960db1001af31bbcaa1a785beea0c8f7fbe40 /test/unit/traversing.js
parent452e32769d514d835988c544492e4083df2bc1d6 (diff)
downloadjquery-05531fc4080ae24070930d15ae0cea7ae056457d.tar.gz
jquery-05531fc4080ae24070930d15ae0cea7ae056457d.zip
Adjust jQuery('html') detection to only match when html starts with '<' (not counting space characters). Fixes #11290.
Diffstat (limited to 'test/unit/traversing.js')
-rw-r--r--test/unit/traversing.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/traversing.js b/test/unit/traversing.js
index 9388089b2..fa945365c 100644
--- a/test/unit/traversing.js
+++ b/test/unit/traversing.js
@@ -114,7 +114,7 @@ test("is() with positional selectors", function() {
"<p id='posp'><a class='firsta' href='#'><em>first</em></a><a class='seconda' href='#'><b>test</b></a><em></em></p>"
).appendTo( "body" ),
isit = function(sel, match, expect) {
- equal( jQuery( sel ).is( match ), expect, "jQuery( " + sel + " ).is( " + match + " )" );
+ equal( jQuery( sel ).is( match ), expect, "jQuery('" + sel + "').is('" + match + "')" );
};
isit( "#posp", "#posp:first", true );