Node#tag_name should return lower case

This commit is contained in:
Jason Morrison 2011-02-26 15:04:34 -05:00
parent ba3f0b1a18
commit b9ecd40191
2 changed files with 2 additions and 2 deletions

View File

@ -127,6 +127,6 @@ describe Capybara::Driver::Webkit do
end end
it "returns a node's tag name" do 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
end end

View File

@ -27,7 +27,7 @@ Capybara = {
}, },
tagName: function(index) { tagName: function(index) {
return this.nodes[index].tagName; return this.nodes[index].tagName.toLowerCase();
} }
}; };