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

feat(page-no-duplicate-banner/contentinfo): deprecate options.nativeScopeFilter, take into ancestors with sectioning roles #4105

Merged
merged 2 commits into from
Jul 26, 2023

Conversation

straker
Copy link
Contributor

@straker straker commented Jul 25, 2023

Our nativeScopeFilter selector only accounted for native elements and not elements with sectioning roles. Instead of adding sectioning roles to the selector, I decided to add the new role option to let the check look at the role of the element, which computes the implicit html role based on sectioning ancestors. That way our selectors can't become out-of-sync and cause issues in the future.

I also deprecated the nativeScopeFilter option since we shouldn't be using it over the role option.

Closes: #3943

@straker straker requested a review from a team as a code owner July 25, 2023 17:41
Copy link
Contributor

@WilcoFiers WilcoFiers left a comment

Choose a reason for hiding this comment

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

Can you add integration tests plz.

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.

"Document should not have more than one banner landmark" when page has no banners
2 participants