You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The description of H71 says "The first element inside the fieldset must be a legend element" but the test procedure doesn't mention this and passes no matter where the legend is positioned:
For groups of related controls where the individual labels for each control do not provide a sufficient description, and an additional group level description is needed:
Check that the group of logically related input or select elements are contained within fieldset elements.
Check that each fieldset has a legend element that includes a description for that group.
Modify test section to include the requirement that legend is first
child in fieldset, as is technically required
Closes#3090
---------
Co-authored-by: Francis Storr <francis.storr@intel.com>
Co-authored-by: Patrick H. Lauke <redux@splintered.co.uk>
The description of H71 says "The first element inside the fieldset must be a legend element" but the test procedure doesn't mention this and passes no matter where the legend is positioned:
https://www.w3.org/WAI/WCAG21/Techniques/html/H71
The HTML Standard specifies that legend must be the first element in the fieldset if present:
https://html.spec.whatwg.org/multipage/form-elements.html#the-legend-element
If the legend is the first child the fieldset is mapped to a group named "First child" in Chrome/Firefox/Safari:
If the legend is embedded in some divs, it passes the H71 test procedure, but the fieldset is mapped to an unnamed group in Chrome/Firefox/Safari:
Suggested fix - change:
to
or
The text was updated successfully, but these errors were encountered: