-
Notifications
You must be signed in to change notification settings - Fork 744
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
'landmark-no-duplicate-banner' & 'landmark-no-duplicate-contentinfo' return incorrect element source #978
Comments
This is the same issue as #878. |
Proposal to use the after function to turn the related nodes into matched nodes, so that the result would go from look like this: [{
target: 'html'
relatedNode: [{
target: '#div1'
}, {
target: '#div2'
}, {
target: '#div3'
}]
}] to looking like this: [{
target: '#div1',
relatedNodes: [{
target: 'html'
}]
}, {
target: '#div2',
relatedNodes: [{
target: 'html'
}]
}, {
target: '#div3',
relatedNodes: [{
target: 'html'
}]
}] |
We also talked about limiting results to common ancestors, so we don't get a bunch of extra noise. This will take the region rule from one result to many, to make it easier to understand. |
Me and Jey have been looking into this, and it isn't as simple as tweaking the data in "after". Unfortunately axe-core doesn't let you flip related nodes and selected nodes. We'd have to rewrite these rules to do this I think, which is a bummer. I do think that's probably the right way to do it. |
new rule landmark-no-duplicate-main infrastructure created 1/27/2020 |
landmark-no-duplicate-main rule create in axe-core rule help and release notes 2/03/2020 |
All the elements that fail these two rules are return as related nodes unlike in the case of duplicate-id failures, where the first matching node is returned as a failure node and the rest of the nodes are returned as related nodes
The text was updated successfully, but these errors were encountered: