Skip to content

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

Merged
straker merged 2 commits intodevelopfrom
fix-no-duplicate
Jul 26, 2023
Merged

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

Conversation

@straker
Copy link
Copy Markdown
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
Copy Markdown
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