Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add id attribute to HTML label tag (W3C validator fix).
  • Loading branch information
racke committed Sep 15, 2010
1 parent 17a796d commit dc638fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/theme_form_element_label.sub
Expand Up @@ -7,6 +7,6 @@
Sub theme_form_element_label <<EOS
sub {
my ($name, $label) = @_;
return qq{<label for="$name">$label</label>};
return qq{<label for="$name" id="$name">$label</label>};
}
EOS

0 comments on commit dc638fa

Please sign in to comment.