Skip to content

Commit

Permalink
Since .getAttribute() returns strings, we should check for them.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmethvin committed Oct 1, 2012
1 parent 9ced027 commit 631fbc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/attributes.js
Expand Up @@ -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() {
Expand Down

0 comments on commit 631fbc7

Please sign in to comment.