fieldset element missing for accessibility?
-
Hi, we have been using your Ajax Search Lite plugin and were wondering if you could help us out with an issue we have come across.
When we were doing accessibility testing for sites using your plugin we get this accessibility error
“All fieldset elements should be labeled with legend elements.
The first child element inside a fieldset must be a legend element, which provides a label or description for the group. legend elements in other positions may be ignored.
Line 5270 WCAG 2.1 A H71 Section 508 (2017) A H71
<fieldset class=”asl_sett_scroll”>
5271 <div class=”asl_option_inner hiddend”>
5272 <input name=”customset[]” title=”Hidden option, ignore please” id=”2customset_21″ type=”checkbox” checked=”checked” value=”wpsl_stores”>
5273 <label for=”2customset_21″>Hidden</label>
5274 </div>
5275 <div class=”asl_option_label hiddend”></div>
5276 <div class=”asl_option_inner hiddend”>
5277 <input name=”customset[]” title=”Hidden option, ignore please” id=”2customset_22″ type=”checkbox” checked=”checked” value=”page”>
5278 <label for=”2customset_22″>Hidden</label>
5279 </div>
5280 <div class=”asl_option_label hiddend”></div>
5281 </fieldset>
5282 </form>
5283 </div>
5284 <div class=”vertical wpdreams_asl_results asl_w asl_r asl_r_2″ id=”ajaxsearchliteres2″ style=”opacity: 0; animation-duration: 300ms;”>
5285 <div class=”results”>
5286 <div class=”resdrg”></div>
5287 </div>
5288 <p class=”showmore”>Is there a way we can fix this by adding the legend element somewhere or would that be something you would need to change in the source code?
Thanks,
Rob
- The topic ‘fieldset element missing for accessibility?’ is closed to new replies.