Skip to content

Commit

Permalink
Node#tag_name should return lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Morrison committed Feb 26, 2011
1 parent ba3f0b1 commit b9ecd40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/driver_spec.rb
Expand Up @@ -127,6 +127,6 @@
end

it "returns a node's tag name" do
subject.find("//p").first.tag_name.should == "P"
subject.find("//p").first.tag_name.should == "p"
end
end
2 changes: 1 addition & 1 deletion src/capybara.js
Expand Up @@ -27,7 +27,7 @@ Capybara = {
},

tagName: function(index) {
return this.nodes[index].tagName;
return this.nodes[index].tagName.toLowerCase();
}
};

0 comments on commit b9ecd40

Please sign in to comment.