Description
Example violation reported when validating WCAG:
<ul> and <ol> must only directly contain <li>, <script> or <template> elements
Description: Ensures that lists are structured correctly
Help URL: https://dequeuniversity.com/rules/axe/4.6/list?application=axeAPI
Help: <ul> and <ol> must only directly contain <li>, <script> or <template> elements
Impact: serious
Tags: cat.structure, wcag2a, wcag131
HTML element:
<ul class="nav navbar-nav navbar-left">
<li class="divider" role="separator"></li>
</ul>
Selector: [.navbar-left]
Fix all of the following:
List element has direct children that are not allowed: [role=separator]