-
Notifications
You must be signed in to change notification settings - Fork 849
Open
Labels
coreIssues in the core code (lib/core)Issues in the core code (lib/core)fixBug fixesBug fixesrulesIssue or false result from an axe-core ruleIssue or false result from an axe-core rule
Description
Product
axe-core
Product Version
4.10.3
Latest Version
- I have tested the issue with the latest version of the product
Issue Description
Expectation
Get ariaLabelledByElements value if possible for label value as well.
Actual
Only get aria-labelledby attribute, and don't parse ariaLabelledByElements value.
How to Reproduce
<p>Test label</p>
<input type="text" />document.querySelector('input').ariaLabelledByElements = [document.querySelector('p')];Additional context
When using custom element with shadow dom, it's the only way to refer to outer element.
Metadata
Metadata
Assignees
Labels
coreIssues in the core code (lib/core)Issues in the core code (lib/core)fixBug fixesBug fixesrulesIssue or false result from an axe-core ruleIssue or false result from an axe-core rule