I’m doing a 508/WCAG scan of my site and using the W3C Nu HTML checker. I’m getting two errors both related to unallowed attributes on div elements related to Better Exposed Filters.
- Attribute novalidate not allowed on element div at this point.
<div class="views-exposed-form bef-exposed-form search-form block block-views block-views-exposed-filter-blocksearch-resources-page-1" novalidate="novalidate" data-drupal-selector="views-exposed-form-search-resources-page-1" id="block-exposedformsearch-resourcespage-1-2">
- Attribute name not allowed on element div at this point.
<div data-drupal-selector="edit-sort-bef-combine" id="edit-sort-bef-combine--2" name="sort_bef_combine" class="form-select bef-links">
<ul>
<li><a href="/technical-assistance-resources" id="edit-sort-bef-combine-search-api-relevance-desc" name="sort_bef_combine[search_api_relevance_DESC]" class="bef-link bef-link--selected">Relevance</a> </li>
<li><a href="/technical-assistance-resources?sort_bef_combine=field_posted_date_DESC" id="edit-sort-bef-combine-field-posted-date-desc" name="sort_bef_combine[field_posted_date_DESC]" class="bef-link">Posted date (newest first)</a> </li>
<li><a href="/technical-assistance-resources?sort_bef_combine=field_posted_date_ASC" id="edit-sort-bef-combine-field-posted-date-asc" name="sort_bef_combine[field_posted_date_ASC]" class="bef-link">Posted date (oldest first)</a></li>
</ul>
</div>
I’m not certain these are actually coming from BEF, I couldn’t find any references to these when searching the BEF code or the issues queue on the project page.
Any ideas? And should I consider this a failure for the WCAG parsing requirement?