Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The definition of focus is not specified here #1519

Open
k7z45 opened this issue Jun 2, 2020 · 0 comments
Open

The definition of focus is not specified here #1519

k7z45 opened this issue Jun 2, 2020 · 0 comments

Comments

@k7z45
Copy link
Contributor

k7z45 commented Jun 2, 2020

In chapter 12. Elements, section 12.4 Interaction:

focus

How is focus defined, is it document.activeDocument == target element of send keys?
Say if we have a content editable body element, according to https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/activeElement, "When there is no selection, the active element is the page's 'body' or null.". If the activeDocument is the body element, should we consider this a focus? From user's perspective, it may be more reasonable to treat this as not focus, then we will need to move the caret to the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant