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
@caugner thanks for confirming and adding those pieces of information.
For now, we could add a note on the Safari support statement for api.HTMLElement.focus:
I have never contributed to MDN. Since this is a trivial change, I'd prefer if you'd went ahead and created a PR. Otherwise, I'd need to get acquainted with the project and the contribution process.
What type of issue is this?
Browser bug (a bug with a feature that may impact site compatibility)
What information was incorrect, unhelpful, or incomplete?
I've noticed that on WebKitGTK calling
focus
also selects the value ofinput
elements. On Firefox, you're required to callfocus
andselect
.What browsers does this problem apply to, if applicable?
Safari
What did you expect to see?
As per the spec, it seems that
focus
shouldn't select.Did you test this? If so, how?
Tested on WebKitGTK and Firefox.
Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
No response
Do you have anything more you want to share?
No response
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus
MDN metadata
MDN page report details
api.HTMLElement.focus
The text was updated successfully, but these errors were encountered: