]> source.dussan.org Git - jquery.git/commitdiff
Since .getAttribute() returns strings, we should check for them.
authorDave Methvin <dave.methvin@gmail.com>
Mon, 1 Oct 2012 02:19:31 +0000 (22:19 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Mon, 1 Oct 2012 02:19:31 +0000 (22:19 -0400)
test/unit/attributes.js

index 7ff55aa1813d163fc1a5f65ef83b8b6890b97589..40c81a37cc8624b48869105fe4c9b6da1b969082 100644 (file)
@@ -693,7 +693,7 @@ test("prop('tabindex', value)", 10, function() {
 
        clone = element.clone();
        clone.prop( "tabindex", 1 );
-       equal( clone[ 0 ].getAttribute("tabindex"), 1, "set tabindex on cloned element" );
+       equal( clone[ 0 ].getAttribute("tabindex"), "1", "set tabindex on cloned element" );
 });
 
 test("removeProp(String)", function() {