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
Replacing <header> with <div> or <aside> with <section> passes. Using aria-label="something" instead of aria-labelledby also passes.
Actual: landmark-unique rule is thrown: "Landmarks must have a unique role or role/label/title (i.e. accessible name) combination"
Motivation: The issue appears to be with the <header> tag. From what I understand "The header element is not a banner landmark when it is a descendant of ... HTML sectioning elements" including <aside>source. Regardless, I'm not sure why aXe will not accept it as the referenced label for its parent <aside>.
axe-core version: 3.5.3
axe-webdriver, extension or other integration version: Web Accessibility Testing Chrome Extension 4.5.0
Browser and Assistive Technology versions: Windows 10 Chrome 81
The text was updated successfully, but these errors were encountered:
Jup, you seem to be right. The issue is that axe-core still treats these header elements as landmarks; it shouldn't because they are a descendent of an aside element.
Fixing this is going to require an overhaul of our implicit role computation. That's been over due for a while so we'll try to get it prioritised for the 4.0 release in August.
Verified with axe-core3.5.5 , <aside> aria-labelledby ..<header> is not failing now and showing it in passes. Attached the screenshots describing passes and also voilations list(not having <aside>)
Expectation:
<aside>
labeled by child<header>
should pass. This fails:Replacing
<header>
with<div>
or<aside>
with<section
> passes. Usingaria-label="something"
instead ofaria-labelledby
also passes.Actual:
landmark-unique
rule is thrown: "Landmarks must have a unique role or role/label/title (i.e. accessible name) combination"Motivation: The issue appears to be with the
<header>
tag. From what I understand "The header element is not a banner landmark when it is a descendant of ... HTML sectioning elements" including<aside>
source. Regardless, I'm not sure why aXe will not accept it as the referenced label for its parent<aside>
.The text was updated successfully, but these errors were encountered: