Skip to content
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

Empty list warning for valid list markup #66

Open
dabrams888 opened this issue Oct 23, 2024 · 1 comment
Open

Empty list warning for valid list markup #66

dabrams888 opened this issue Oct 23, 2024 · 1 comment

Comments

@dabrams888
Copy link

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

  • Browser and version: Chrome Version 130.0.6723.69 (Official Build) (x86_64)
  • ARC Toolkit version: 5.7.5
@ferllings
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants