Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(multiple-label): considers explicit labels in the same shadow tree #1584

Merged
merged 1 commit into from May 24, 2019

Conversation

AutoSponge
Copy link
Contributor

@AutoSponge AutoSponge commented May 22, 2019

If the node is not contained in the ownerDocument it must be in shadow (open). Therefore, we climb the parentNode path to the first document fragment. Closed shadow is not supported. This fixes an issue where a single shadow tree held an input and valid label(s). Crossing shadow tree/document boundaries can not produce an accessible name.

Closes issue: #1559

Reviewer checks

Required fields, to be filled out by PR reviewer(s)

  • Follows the commit message policy, appropriate for next version
  • Has documentation updated, a DU ticket, or requires no documentation change
  • Includes new tests, or was unnecessary
  • Code is reviewed for security by: @WilcoFiers

@AutoSponge AutoSponge force-pushed the fix-1559 branch 7 times, most recently from 6fd0915 to 4426f49 Compare May 23, 2019 16:56
test/checks/label/multiple-label.js Outdated Show resolved Hide resolved
test/checks/label/multiple-label.js Show resolved Hide resolved
@WilcoFiers WilcoFiers merged commit b9a324a into develop May 24, 2019
@WilcoFiers WilcoFiers deleted the fix-1559 branch May 24, 2019 15:08
@chandana7393
Copy link

Verified behaving as expected.
image
Tested Environment:
Axe-coconut - 3.8.0.14704v
Chrome - 74v
OS - Windows 10 64 bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants