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

View File

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