-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in validating <li> in wrapped <ul> #10997
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We're currently in development of a websites that is under NDA so I cannot link to that page, removed the URL from the screenshots because of that reason.
It is a WordPress website with the The7 theme, which we use on many websites so I will link to a couple of those. They all have the same accessibility error which is not correct. They however are not optimised as much as the screenshots I will attach at the bottom of the website that we want/need to get to 100% accessibility score (government website that has accessibility demands).
Provide the steps to reproduce
We get an incorrect error when we scan for:
Categories: Accessibility
forDevice: Desktop
in Lighthouse.What is the current behavior?
We're getting the following accessibility error:
What is the expected behavior?
This is incorrect because when we click on the failing elements we see the
<li>
wrapped in a<ul>
element. We see this both in the DOM (DevTools) as well as in the original generated HTML from the server (View » Developer » View Source
)Environment Information
Related
Lighthouse screenshot
This shows the single error; Hovering the second
<li>
element in Lighthouse which highlights the element in the main navigation in the header.Axe screenshot
Shows the same error. Note that the
#primary-menu
ID is a<ul>
element...DOM screenshot
Shows the
<li>
's being wrapped in the<ul id="primary-menu">
in the DOMSource screenshot
Shows the
<li>
's being wrapped in the<ul id="primary-menu">
in the HTML sourceThe text was updated successfully, but these errors were encountered: