Skip to content

Commit

Permalink
* correct incompatibility with IE selecting for attribute with getAt…
Browse files Browse the repository at this point in the history
…tribute
  • Loading branch information
raldred committed Dec 17, 2009
1 parent a2d1bc7 commit b4c03de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webrat/selenium/location_strategy_javascript/label.js
Expand Up @@ -30,7 +30,7 @@ candidateLabels = candidateLabels.sortBy(function(s) {
});

var locatedLabel = candidateLabels.first();
var labelFor = locatedLabel.getAttribute('for');
var labelFor = locatedLabel.htmlFor;

if ((labelFor == null) && (locatedLabel.hasChildNodes())) {
return locatedLabel.getElementsByTagName('button')[0]
Expand Down

0 comments on commit b4c03de

Please sign in to comment.