title | key |
---|---|
Owned by |
owned-by |
An element A is owned by element B if both elements exist within the same document tree or shadow tree and either:
- Element A is the first element within the tree, in tree order, whose ID is included within the
aria-owns
attribute of element B. - Element B is the closest ancestor of element A that is included in the accessibility tree.
Nodes that are not included in the accessibility tree cannot be owned by other elements.
Note: When using
aria-owns
, hiding the owner element through WAI-ARIA (aria-hidden="true"
) or CSS (display:none
orvisibility:hidden
) will not change the ownership, but should instead hide all elements owned by the element.
Note: This definition is diverging from the definition of "owned element" in WAI-ARIA. The reason is that the WAI-ARIA definition was found to provide too little guidance on how to handle specific edge cases where several elements compete about the ownership, and it seem that browser implementations of this are diverging a lot. This definition seeks to find a reasonable middle ground, but will have to be updated if the WAI-ARIA definition changes.