GoogleChrome / accessibility-developer-tools

This is a library of accessibility-related testing and utility code.
Apache License 2.0
2.28k stars 363 forks source link

`axs.dom.composedParentNode` broken in Shadow DOM v1 #312

Closed bicknellr closed 7 years ago

bicknellr commented 8 years ago

axs.dom.composedParentNode should use .assignedSlot instead of .getDestinationInsertionPoints() when in Shadow DOM v1.

I noticed an element I was working on kept failing AX_FOCUS_01 and found that elementIsVisible was returning false because it wasn't able to figure out that an element it found above the one passed to it was actually a descendant and not just arbitrarily obscuring it.