Development

#3941 (fieldset, legend and p by default on forms)

You must first sign up to be able to contribute.

Ticket #3941 (new enhancement)

Opened 5 years ago

fieldset, legend and p by default on forms

Reported by: diogobaeder Assigned to: fabien
Priority: minor Milestone:
Component: view Version: 1.1.0
Keywords: form, view, accessibility Cc:
Qualification: Unreviewed

Description

I'd like to suggest the use of <fieldset></fieldset>, <legend></legend> and <p></p> for default as the sfForm markup for 1.2 version (or even 1.1.x, if possible), since it's the correct markup for (X)HTML forms, and it complies to accessibility requirements for screen readers. <table /> is for tabular data, but is wrongly used for formatting the layout of web pages.

Also, using the legend tag helps to clarify the content of the form, not to mention it's used for screen readers.

Thanks!