Bug 15695

Summary: focusing a textarea moves input cursor to beginning of textarea instead of end
Product: WebKit Reporter: Kevin Decker <kdecker>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: ahmad.saleem792, akeerthi, andri, ap, ddkilzer, karlcow, mkwst
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
test case none

Description Kevin Decker 2007-10-25 16:33:34 PDT
In other browsers, modifying/focusing a textarea places the input cursor at the end of the textarea.  Safari puts it at the beginning.  

* STEPS TO REPRODUCE
1. Open the attached test case in Safari.

* RESULTS
Safari places the input cursor at the beginning of the textarea, instead of the end of the text area as Firefox does.

<textarea id="test">Click the button below</textarea>

<input type="button" value="Click me" onclick="document.getElementById('test').focus();">
Comment 1 Kevin Decker 2007-10-25 16:34:20 PDT
Created attachment 16867 [details]
test case
Comment 2 Alexey Proskuryakov 2007-10-25 21:59:36 PDT
We match MSIE here. IIRC, we have tried to switch to Firefox behavior a while ago, but this has caused problems with Outlook Web Access.
Comment 3 David Kilzer (:ddkilzer) 2007-10-26 05:16:18 PDT
(In reply to comment #2)
> We match MSIE here. IIRC, we have tried to switch to Firefox behavior a while
> ago, but this has caused problems with Outlook Web Access.

See Bug 11746, specifically Bug 11746 Comment #15 and Bug 11746 Comment #16.

Comment 4 Alexey Proskuryakov 2011-09-19 10:18:32 PDT
*** Bug 68322 has been marked as a duplicate of this bug. ***
Comment 5 Ahmad Saleem 2023-05-25 14:38:20 PDT
All browsers (Safari 16.5, Chrome Canary 115 and Firefox Nightly 115) now place caret / cursor at the beginning / start rather than like previous behavior of Firefox to place it at end of sentence.

Since Firefox changed here.

Marking this as 'RESOLVED WONTFIX'.