Skip to content

focusgroup attribute #171

Open
Open

Description

@lukewarlow

WebKittens

No response

Title of the spec

focusgroup attribute

URL to the spec

whatwg/html#11723

URL to the spec's repository

https://github.com/whatwg/html/

Issue Tracker URL

No response

Explainer URL

https://open-ui.org/components/scoped-focusgroup.explainer/

TAG Design Review URL

w3ctag/design-reviews#1152

Mozilla standards-positions issue URL

mozilla/standards-positions#631

WebKit Bugzilla URL

https://bugs.webkit.org/show_bug.cgi?id=255482

Radar URL

rdar://108403002

Description

A new HTML attribute that allows for creating focusgroups that are navigable using arrow keys without needing to use JavaScript. (See explainer for a far better explanation)

Activity

  1. moved this from Unscreened to Needs assignees in Standards Positions Review Backlogon Apr 18, 2023
  2. moved this from Needs assignees to Unscreened in Standards Positions Review Backlogon Apr 18, 2023
  3. added
    topic: accessibility
    topic: html
    topic: markup
    topic: forms
    concerns: venue
    on Apr 26, 2023
  4. hober commented on Apr 26, 2023

    @hober
    Member

    Added concerns: venue because this should be discussed in the HTML Workstream at WHATWG.

  5. moved this from Unscreened to Needs position in Standards Positions Review Backlogon Apr 26, 2023
  6. cookiecrook commented on May 9, 2023

    @cookiecrook

    Overall I think the focusgroup proposal is a good idea, will be useful to authors, and will be more accessible to users. I'd like to see an example of this non-goal issue.

    Stated under "Non-Goals" heading:

    For this proposed standard, we decouple selection from focus and only focus (cough) on the focus aspect: moving focus using the keyboard among eligible focus targets. Adding selection state, e.g., tracking the currently selected option in a list, will be a separate feature. To handle selection-based scenarios, we defer to the CSS proposal Toggles which can work nicely with focusgroups.

    This intended decoupling of focus and selection may require AT changes (e.g. VoiceOver) in addition to User Agent (WebKit) additions. As such, I think we would need to see an example of the Toggles+FocusGroup combo example that is alluded to here. Especially for an interactive ARIA grid, with multiple selection and multi-directional focus via focus-group-direction: horizontal; perhaps including the wrap options.

  7. 4 remaining items

  8. janewman commented on Sep 17, 2025

    @janewman

    Hi folks, the focusgroup explainer has evolved since this was last visited, and I recently created a new, "Scoped" version of that explainer that takes all of these advancements and then scopes the behavior in a few different ways:

    • Moves 2D grid navigation to a future consideration.
    • Moves CSS support to a future consideration.
    • Requires a new "behavior" attribute that will be used to compute a minimum aria role, ensuring that focusgroups are accessible-by-default.

    I would love to get feedback on the approach; I intended for this to resolve the biggest remaining points of contention.
    https://open-ui.org/components/scoped-focusgroup.explainer/

  9. janewman commented on Jan 20, 2026

    @janewman

    Friendly ping to please take a look at the latest explainer and re-review and update your position if needed.
    https://open-ui.org/components/scoped-focusgroup.explainer/

  10. added and removed
    concerns: venue
    on Jan 21, 2026
  11. lukewarlow commented on Jan 21, 2026

    @lukewarlow
    MemberAuthor

    Removing venue concerns because it's now being progressed through the WHATWG stages.

    PR: whatwg/html#11723
    Issue: whatwg/html#11641

  12. janewman commented on Apr 2, 2026

    @janewman

    Friendly ping for a position, let me know if you have any questions or need any additional information!

  13. annevk commented on Apr 7, 2026

    @annevk
    Contributor

    Apologies for the long delay here. We like the general idea, but we have some concerns about the specific user interaction model.

    We don't expect that all platforms will use arrow keys to navigate between the focusable elements. That should be abstracted, also at the test level. And the tests assume that keyboard navigation is enabled, which it isn't by default on macOS. That should also have some kind of WebDriver toggle that is standardized and the tests use.

  14. added
    concerns: device independence
    on Apr 7, 2026
  15. janewman commented on Apr 15, 2026

    @janewman

    Apologies for the long delay here. We like the general idea, but we have some concerns about the specific user interaction model.

    We don't expect that all platforms will use arrow keys to navigate between the focusable elements. That should be abstracted, also at the test level. And the tests assume that keyboard navigation is enabled, which it isn't by default on macOS. That should also have some kind of WebDriver toggle that is standardized and the tests use.

    Appreciate this feedback, and I couldn't be more aligned that this feature should not be limited to standard keyboard arrow keys. I've refactored the tentative tests to abstract away this except in a utility. Ideally, I'd like this utility to take in a preference given by the user agent, but I'll need to spend some more time here to see what our options are to have user agents specify such a preference to WebDriver. Regardless, this would not result in an API change.

    As for respecting the keyboard navigation setting in MacOS, it doesn't look to me like WebDriver currently has the ability to toggle MacOS settings, in the meantime I've adjusted all tests to be agnostic of this setting by using an author-specified tab index of 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

concerns: device independencetopic: accessibilitytopic: formstopic: htmltopic: markupvenue: Open UI CGvenue: WHATWG HTML Workstream

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions