Use `htmlFor` on IE.

[#317 state:resolved]
This commit is contained in:
Damian Janowski 2010-04-15 15:40:03 -03:00
parent 06bb72d24f
commit 1979a7fc7f
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ candidateLabels = candidateLabels.sortBy(function(s) {
}); });
var locatedLabel = candidateLabels.first(); var locatedLabel = candidateLabels.first();
var labelFor = locatedLabel.getAttribute('for'); var labelFor = locatedLabel.getAttribute('for') || locatedLabel.htmlFor;
if ((labelFor == null) && (locatedLabel.hasChildNodes())) { if ((labelFor == null) && (locatedLabel.hasChildNodes())) {
return locatedLabel.getElementsByTagName('button')[0] return locatedLabel.getElementsByTagName('button')[0]