-
Notifications
You must be signed in to change notification settings - Fork 779
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
"aria-required-parent" check to use the composed tree in getAriaOwners #422
Comments
This check has functionality for detecting missing roles with For example:
Any thoughts on this? Otherwise, I'm focusing on the hierarchal DOM tests. |
@marcysutton Just add a test to verity that aria-owns doesn't reach outside it's context. The rest of the shadow DOM stuff for this one is about getting parents from the composed tree rather than from the |
@marcysutton as @WilcoFiers said - and ID references stay within the same document context i.e. if it is the light DOM of the document, the ID refs only dereference within that light DOM. If it is the shadow DOM, the ID refs only dereference within that shadow DOM. I have an example here http://dylanb.github.io/shadowDOM/aria_shadow.html (not aria-owns but it gets the point across) |
The hierarchal code in this check uses
I'm trying to wrap my mind around how you'd look up the flattened tree for a match (i.e. |
I think there's a bug in find up. I build your example, and with findUp I'm unable to get the list element. <div role="list">
<div class="someStyleContainer"></div>
</div>
<script src="/axe.js"></script>
<script>
var shadow = document.querySelector('.someStyleContainer').attachShadow({ mode: 'open' })
shadow.innerHTML = '<div role="listitem">item 1</div>';
var listItem = shadow.querySelector('[role=listitem]')
var list = axe.commons.dom.findUp(listItem, '[role=list]');
console.log(list, listItem); // null, <div role="listitem">
</script> I'll work on a patch for this. |
Closed with #451. |
…ibility * feat(aria.label): Works without a virtualNode * feat: Add hasContentVirtual method * feat(is-offscreen): Add shadow DOM support * chore: Some code cleanup * feat(text.visible): Created text.visibleVirtual for shadowDOM * fix: Pass all tests that use accessibleText * feat: add shadow support to aria-required-children Closes #421 * test: use abstracted checkSetup from testutils * fix: get virtualNode with getNodeFromTree * test: More testing for accessibleText() # Conflicts: # lib/commons/dom/find-elms-in-context.js # lib/commons/text/accessible-text.js # test/checks/keyboard/focusable-no-name.js # test/checks/tables/same-caption-summary.js # test/commons/text/accessible-text.js * feat(aria-required-parent): add Shadow DOM support Closes #422 * fix: Rename text.label to text.labelVirtual * fix: Create aria.labelVirtual method
…s#423) Closes dequelabs#422 Ref dequelabs#421 Ref dequelabs#387 Ref dequelabs#308 (somewhat) Ref dequelabs#207
"aria-required-parent" check to use the composed tree in getAriaOwners
The text was updated successfully, but these errors were encountered: