-
-
Notifications
You must be signed in to change notification settings - Fork 627
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
prefer-tag-over-role
causing warnings on valid a11y patterns
#920
Comments
I'd suggest never referring to w3schools - it's not a good resource. MDN doesn't indicate in any way that it's primarily for forms: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output Certainly there's a |
@ljharb Regardless, I still think the |
I've tagged in @jessebeach on that one :-) |
prefer-tag-over-role
causing warnings on valid usageprefer-tag-over-role
causing warnings on valid a11y patterns
I've been updating a few pieces of code after updating to include this rule, and I'm finding that certain usages are flagged possibly incorrectly?
For e.g., I have code like so that is used as a global page alert element:
And gives the following output:
Another example for SVGs:
With similar warning:
Which is strange because(this isn't accurate)<output>
is primarily used in forms, unlike alert and status containers which are often treated as live regions or focus trapped containers.I did some digging and both live regions and SVG images appear to be valid in these contexts.
The text was updated successfully, but these errors were encountered: