ThePacielloGroup / ARC-Toolkit

Quickly uncover and resolve accessibility issues on any web page with TPGi’s single-page, on-demand, accessibility testing tool.
https://www.tpgi.com/arc-platform/arc-toolkit/
7 stars 1 forks source link

Empty list warning for valid list markup #66

Open dabrams888 opened 5 days ago

dabrams888 commented 5 days ago

Describe the bug

ARC Toolkit reports this "Empty list" warning when role="list" is added, even though the list contains child list items.

Description: Found an <ol> ordered list or <ul> unordered list that contains no list items.

Adding an explicit role="list" to <ul> or <ol> elements is a common workaround for a known compatibility issue with Apple screen readers ignoring list semantics when list styles are removed in the CSS.

To Reproduce

Run a scan on the following markup.

<ul role="list">
  <li>test</li>
  <li>test</li>
</ul>

Expected behavior

The role="list" workaround should not trigger a warning if there are <li> child elements as immediate descendants of the list element.

Version information

ferllings commented 5 days ago

Dev note: I believe this is related to rules engine ticket #528.