Skip to content

Commit 631fbc7

Browse files
committed
Since .getAttribute() returns strings, we should check for them.
1 parent 9ced027 commit 631fbc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ test("prop('tabindex', value)", 10, function() {
693693

694694
clone = element.clone();
695695
clone.prop( "tabindex", 1 );
696-
equal( clone[ 0 ].getAttribute("tabindex"), 1, "set tabindex on cloned element" );
696+
equal( clone[ 0 ].getAttribute("tabindex"), "1", "set tabindex on cloned element" );
697697
});
698698

699699
test("removeProp(String)", function() {

0 commit comments

Comments
 (0)