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

πŸ› useSemanticElements false alarm on role="alert" #3858

Closed
1 task done
baileys-li opened this issue Sep 12, 2024 Β· 3 comments Β· Fixed by #3868 or #4078
Closed
1 task done

πŸ› useSemanticElements false alarm on role="alert" #3858

baileys-li opened this issue Sep 12, 2024 Β· 3 comments Β· Fixed by #3868 or #4078
Assignees
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug

Comments

@baileys-li
Copy link

baileys-li commented Sep 12, 2024 β€’

What happened?

βœ– The elements with the following roles can be changed to the following elements: <alert>

β€” Playground

Expected result

There is html element <alert> neither in MDN, nor in HTML Spec. So lint/a11y/useSemanticElements should do nothing with alert role tho

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@Conaclos Conaclos added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug labels Sep 12, 2024
@ematipico
Copy link
Member

It should be dialog, right?

@baileys-li
Copy link
Author

@ematipico I guess it's better not to force any tag at all.
For example it's could be any tag with popup attribute

@Conaclos
Copy link
Member

Reopening because my fix (#3868) was ineffective.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug
Projects
None yet
3 participants