RESOLVED INVALID193775
Calling focus() on a text field selects all of its contents
https://bugs.webkit.org/show_bug.cgi?id=193775
Summary Calling focus() on a text field selects all of its contents
Wenson Hsieh
Reported 2019-01-24 11:40:30 PST
This is different from behavior in Chrome/FF. In the attached test case, tap the "Click here…" text.
Attachments
Test case (677 bytes, text/html)
2019-01-24 11:41 PST, Wenson Hsieh
no flags
Wenson Hsieh
Comment 1 2019-01-24 11:41:12 PST
Created attachment 360023 [details] Test case
Wenson Hsieh
Comment 2 2019-01-24 15:09:49 PST
After writing a macOS test app, it seems that this was done to mirror the behavior when becoming first responder on an NSTextField in macOS.
Note You need to log in before you can comment on or make changes to this bug.