I have read that the role
attribute was added to Bootstrap for accessibility, and I would like to know how <form role="form">
helps accessibility. See http://getbootstrap.com/css/#forms-example for an example of this specific usage.
I searched Bootstrap's repo for "role" to no avail.
My issue is that the information seems redundant. The notion that the element is a form is already expressed by the HTML tag itself (<form>
), so what does it help if we also add that the element is playing the role
of form
? It would make sense to add role="..."
if role
was going to be different than form
(I don't know what - but let's pretend); as it stands (especially without concrete reasoning / use case examples), it is puzzling at best.