Skip to content

fix(prohibited-attr): always report incomplete if there is text in the subtree#3347

Merged
WilcoFiers merged 3 commits intodevelopfrom
aria-prohibited-fix
Jan 14, 2022
Merged

fix(prohibited-attr): always report incomplete if there is text in the subtree#3347
WilcoFiers merged 3 commits intodevelopfrom
aria-prohibited-fix

Conversation

@WilcoFiers
Copy link
Copy Markdown
Contributor

Subtree text wasn't computed for elements that are not named from content. To force this, subtreeDescendant: true had to be passed.

This PR also significantly improves the messages of the prohibited-attr check, which was the cause of some confusion.

Closes issue: #3346

@WilcoFiers WilcoFiers requested a review from a team as a code owner January 12, 2022 12:37
…e subtree

Subtree text wasn't computed for elements that are not named from content. To force this, subtreeDescendant: true had to be passed.

This PR also significantly improves the messages of the prohibited-attr check, which was the cause of some confusion.
@@ -9,39 +9,79 @@ describe('aria-prohibited-attr', function() {
checkContext.reset();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need tests for checking when the messageKey is set to noRoleSingular when returned as false and undefined

straker
straker previously approved these changes Jan 13, 2022
@WilcoFiers WilcoFiers merged commit 2e27dca into develop Jan 14, 2022
@WilcoFiers WilcoFiers deleted the aria-prohibited-fix branch January 14, 2022 09:35
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.

2 participants