open-ui icon indicating copy to clipboard operation
open-ui copied to clipboard

[Popup spec] Make get the focusable area steps edits describe the correct behavior

Open melanierichards opened this issue 2 years ago • 1 comments

#355 lands a first editor's draft of <popup> in Open UI, and is intended to be brought to various parts of the HTML spec in WHATWG.

Of the edits to the "get the focusable area steps", @domenic mentioned:

Interesting. This allows autofocus to focus elements which are not normally focusable (as long as they are not inert). Is that intended behavior?

The normal autofocus behavior does not do this. It performs "getting the focusable area" on the element where autofocus is specified, which might return the element itself, or might return null. If it returns null, then the attribute does nothing.

We should review the edits in that section and make sure all implications are intentional, or correct them.

melanierichards avatar Aug 27 '21 00:08 melanierichards

There hasn't been any discussion on this issue for a while, so we're marking it as stale. If you choose to kick off the discussion again, we'll remove the 'stale' label.

github-actions[bot] avatar Mar 04 '22 00:03 github-actions[bot]

My current popover HTML PR uses GetFocusDelegate rather than defining its own focusing steps, so it should not focus elements which are not normally focusable. This issue can be closed

josepharhar avatar Nov 30 '22 22:11 josepharhar