You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the following markup, lighthouse reports a few errors, I believe due to not being able to validate both roles in <span role="tab button"> at once
The attribute, if specified, must have a value that is a set of space-separated tokens; each token must be a non-abstract role defined in the WAI-ARIA specification [wai-aria-1.1].
The Chrome accessibility tree also computes the role correctly as tab
[aria-*] attributes do not match their roles.
Each ARIA role supports a specific subset of aria-* attributes. Mismatching these invalidates the aria-* attributes. Learn more. <span role="tab button" tabindex="0" aria-selected="false">Header</span>
Elements with [role] that require specific children [role]s, are missing.
Some ARIA parent roles must contain specific child roles to perform their intended accessibility functions. <ul role="tablist">
[role] values are not valid.
ARIA roles must have valid values in order to perform their intended accessibility functions. Learn more. <span role="tab button" tabindex="0" aria-selected="false">Header</span>
The text was updated successfully, but these errors were encountered:
Given the following markup, lighthouse reports a few errors, I believe due to not being able to validate both roles in
<span role="tab button">
at onceCodepen: https://codepen.io/anon/pen/mXRPJJ
From the HTML spec https://www.w3.org/TR/html52/dom.html#aria-role-attribute
The Chrome accessibility tree also computes the role correctly as
tab
Errors:
[aria-*] attributes do not match their roles.
Each ARIA
role
supports a specific subset ofaria-*
attributes. Mismatching these invalidates thearia-*
attributes. Learn more.<span role="tab button" tabindex="0" aria-selected="false">Header</span>
Elements with [role] that require specific children [role]s, are missing.
Some ARIA parent roles must contain specific child roles to perform their intended accessibility functions.
<ul role="tablist">
[role] values are not valid.
ARIA roles must have valid values in order to perform their intended accessibility functions. Learn more.
<span role="tab button" tabindex="0" aria-selected="false">Header</span>
The text was updated successfully, but these errors were encountered: