Focusgroup V2 currently has two explicit topology paths:
focusgroup="grid" discovers native HTML table structure.
focusgroup="grid manual" discovers direct-child rows marked with focusgrouprow.
Native tables provide an unambiguous automatic case. Simple generic markup may also contain enough structural information to infer rows and cells:
<div focusgroup="grid" aria-label="Palette">
<div focusgrouprow>
<div tabindex="0">Bold</div>
<div tabindex="0">Italic</div>
</div>
<div focusgrouprow>
<div tabindex="0">Left</div>
<div tabindex="0">Right</div>
</div>
</div>
Inference becomes less reliable when markup contains wrappers or multiple plausible row levels:
<div focusgroup="grid" aria-label="Palette">
<div class="scrollport">
<div focusgrouprow>
<div tabindex="0">Bold</div>
<div tabindex="0">Italic</div>
</div>
</div>
</div>
We should determine how much topology user agents can infer safely and where authors must provide explicit signals.
Questions to resolve:
- Is the presence of
focusgrouprow sufficient to select generic topology?
- Which structural wrappers, if any, can be transparent to row discovery?
- What happens when multiple plausible row levels exist?
- How should mixed native and generic structures behave?
- Can mutations change the inferred topology mode?
- Is
manual still useful as an explicit override or disambiguation signal?
When topology is ambiguous, invalidating the grid may be safer than selecting a plausible structure that can change unexpectedly. Authored ARIA roles should not select or alter focus topology.
Related:
Focusgroup V2 currently has two explicit topology paths:
focusgroup="grid"discovers native HTML table structure.focusgroup="grid manual"discovers direct-child rows marked withfocusgrouprow.Native tables provide an unambiguous automatic case. Simple generic markup may also contain enough structural information to infer rows and cells:
Inference becomes less reliable when markup contains wrappers or multiple plausible row levels:
We should determine how much topology user agents can infer safely and where authors must provide explicit signals.
Questions to resolve:
focusgrouprowsufficient to select generic topology?manualstill useful as an explicit override or disambiguation signal?When topology is ambiguous, invalidating the grid may be safer than selecting a plausible structure that can change unexpectedly. Authored ARIA roles should not select or alter focus topology.
Related: