aria-required-children does not resolved the role which set with ElementInternals
Author: woody-liCreated Sep 24, 2026Updated Sep 30, 2026
Labelsextension
Product
axe Extension
Product Version
Extension: v4.136.1 axe-core: v4.13.0
Latest Version
- I have tested the issue with the latest version of the product
Issue Description
Expectation
The ElementInternals role is resolved.
Actual
The ElementInternals role does not resolved, reported as aria-required-children.
How to Reproduce
<div role="list">
<x-item>
<a href="https://example.com">Link in listitem</a>
</x-item>
</div>customElements.define(
"x-item",
class MyButton extends HTMLElement {
constructor() {
super();
this._internals = this.attachInternals();
this._internals.role = "listitem";
}
}
);CodePen: https://codepen.io/editor/Woody-lxf/pen/01a0d100-8206-7767-b560-dbe8a22bfb7f
Source: dequelabs/axe-core