Posted on
I’m pretty obsessive about my HTML validating with no errors and no warnings. It bugs me that when I use Silverstripe’s incredibly convenient $Searchform in the template that it outputs an empty legend tag inside the fieldset.
There’s an easy way to fix this:
Thanks to Maksfeltrin in the Silverstripe forums for pointing this out.
Have you considered supplying a patch at open.silverstripe.com so that the product sees the improvement?
Hmm, I can understand your concern, but since when is leaving out the legend valid html (strict)?
Hi Dieter – empty legend tags are valid; my (admittedly petty) issue is that the HTML Validator add-on I use in FIrefox generates a warning that it is trimming empty elements.