Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

legend tags causing a bug in IE


Go to End


2 Posts   1178 Views

Avatar
patjnr

Community Member, 102 Posts

8 April 2010 at 11:09pm

Hi

why are there legend in Form.ss template yet they are not being used.

here is an extract of Form.ss

<legend>$Legend</legend>

because Page.ss is n xhtml it changes this to <legend /> and this will create a a blank legend with a height of about 20px in IE.
It pushes the the action button down a bit.
It will be nice to change this to

<% if  Legend %><legend>$Legend</legend><% end_if %>

to block them if they are not available.

in SearchForm.ss its even worse, its just

<legend></legend>

are these "Legends" really necessary

ta

PAt

Avatar
Willr

Forum Moderator, 5523 Posts

11 April 2010 at 1:25pm

AFAIK legend tags are needed for some levels of section 508 / WCAG validation. If your form has no legend then you could just set legend { display: none; } in your css.