<main>
<header role="banner">
Hello world
</header>
</main>
This fails aria-allowed-role, in addition to failing landmark-banner-is-top-level. It's probably better for axe-core to only fail it under the top-level rule. It's a little odd to allow role=banner on a header if it's at the top, but to fail it if it's inside another landmark.
The same problem exists for other landmarks. I think the fix is to add banner to the header element in standards/html-elms.js.
This fails
aria-allowed-role, in addition to failinglandmark-banner-is-top-level. It's probably better for axe-core to only fail it under the top-level rule. It's a little odd to allow role=banner on aheaderif it's at the top, but to fail it if it's inside another landmark.The same problem exists for other landmarks. I think the fix is to add
bannerto the header element in standards/html-elms.js.