Accessibility-insights-web: <li> elements must be contained in a <ul> or <ol>

Created on 29 Oct 2019  路  4Comments  路  Source: microsoft/accessibility-insights-web

Describe the bug

To Reproduce
Steps to reproduce the behavior:

  1. Go to answers.microsoft.com
  2. Click on Participate and run accessibility insight tool, It is complaining about "
  3. elements must be contained in a
      or
        "

      I verified the html for this and I confirm that

    • elements are already inside

        Here is the code snippet for the same :
        image

        Expected behavior

        As it is configured as expected it should not show error for fast pass.

        Screenshots


        image

        Extension (please complete the following information)

        Are you willing to submit a PR?

        Yes

bug resolved

Most helpful comment

hi @vikasgupta18, the issue you see is a failure in the sub-list rather than the list you mentioned in the code snippet. Please find the correct snippet from below

image

This is a valid issue and as highlighted above it is caused by the empty <li> items which do not have role presentation and are interpreted as parent-less listitems by the accessibility tree

All 4 comments

hi @vikasgupta18, the issue you see is a failure in the sub-list rather than the list you mentioned in the code snippet. Please find the correct snippet from below

image

This is a valid issue and as highlighted above it is caused by the empty <li> items which do not have role presentation and are interpreted as parent-less listitems by the accessibility tree

The team requires additional author feedback; please review their replies and update this issue accordingly. Thank you for contributing to Accessibility Insights!

This issue has been automatically marked as stale because it is marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for contributing to Accessibility Insights!

Thanks for your reply. This was helpful.

Was this page helpful?
0 / 5 - 0 ratings