You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like step 2 might want to be "Return the focus delegate for focus target's shadow root given focus trigger.", rather than the current thing? That'd make way more sense to me, and seems to more closely match what implementations actually do.
smaug----
changed the title
autfocus + delegateFocus handling doesn't make much sense to me
autofocus + delegateFocus handling doesn't make much sense to me
Aug 4, 2022
So, looking at https://html.spec.whatwg.org/#focus-processing-model I have a couple questions:
Where https://html.spec.whatwg.org/#focus-delegate iterates over descendants of focus target for autofocus. That doesn't seem intentional?
In particular, per spec,
document.querySelector(".focus-me").focus()
behaves differently in these two examples, unless I'm misreading something:It seems like step 2 might want to be "Return the focus delegate for focus target's shadow root given focus trigger.", rather than the current thing? That'd make way more sense to me, and seems to more closely match what implementations actually do.
cc @sefeng211 @domenic
The text was updated successfully, but these errors were encountered: