Node#tag_name should return lower case
This commit is contained in:
parent
ba3f0b1a18
commit
b9ecd40191
|
@ -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
|
||||||
|
|
|
@ -27,7 +27,7 @@ Capybara = {
|
||||||
},
|
},
|
||||||
|
|
||||||
tagName: function(index) {
|
tagName: function(index) {
|
||||||
return this.nodes[index].tagName;
|
return this.nodes[index].tagName.toLowerCase();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue