Skip to content

fix(landmark-complementary-is-top-level): allow aside inside main#2740

Merged
straker merged 3 commits intodevelopfrom
aside-in-main
Jan 11, 2021
Merged

fix(landmark-complementary-is-top-level): allow aside inside main#2740
straker merged 3 commits intodevelopfrom
aside-in-main

Conversation

@straker
Copy link
Copy Markdown
Contributor

@straker straker commented Jan 7, 2021

Closes issue: #2651

@straker straker requested a review from a team as a code owner January 7, 2021 21:31
WilcoFiers
WilcoFiers previously approved these changes Jan 8, 2021
function landmarkIsTopLevelEvaluate(node) {
var landmarks = getAriaRolesByType('landmark');
var parent = getComposedParent(node);
var nodeRole = node.getAttribute('role') || implicitRole(node);
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.

If we're going to mess with this, why not use aria.getRole?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I wondered that myself but didn't know if there was a specific reason why we didn't before.

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