Skip to content

Commit

Permalink
Add id attribute to HTML label tag (W3C validator fix).
Browse files Browse the repository at this point in the history
  • Loading branch information
racke committed Sep 1, 2010
1 parent b572eea commit d646e92
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 d646e92

Please sign in to comment.