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

Fix wai-aria rule's validation #673

Open
kagankan opened this issue Jan 9, 2023 · 0 comments
Open

Fix wai-aria rule's validation #673

kagankan opened this issue Jan 9, 2023 · 0 comments
Assignees
Labels

Comments

@kagankan
Copy link
Sponsor Collaborator

kagankan commented Jan 9, 2023

  • Markuplint version: 3.0.1
  • Parser lang: HTML
  • Node.js version: 16.16.0
  • OS: Windows 11

Describe the bug

wai-aria rule warns role="radiogroup" that has role="radio" as grandchildren elements.

Code Example

<ul role="radiogroup">
    <li role="presentation"><button role="radio" aria-checked="true">A</button></li>
    <li role="presentation"><button role="radio" aria-checked="false">B</button></li>
    <li role="presentation"><button role="radio" aria-checked="false">C</button></li>
</ul>

Steps To Reproduce

  1. Lint the code above.
  2. Markuplint shows message below:
ロール「radiogroup」にはロール「radio」が必要です

The current behavior

wai-aria warns the code.

The expected behavior

wai-aria doesn't warn the code.

(Sorry if I'm wrong.)

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

No branches or pull requests

2 participants