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.
Describe the bug
ARC Toolkit reports this "Empty list" warning when
role="list"
is added, even though the list contains child 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.
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