Bug 15695 - focusing a textarea moves input cursor to beginning of textarea instead of end
Summary: focusing a textarea moves input cursor to beginning of textarea instead of end
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
: 68322 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-25 16:33 PDT by Kevin Decker
Modified: 2023-05-25 14:38 PDT (History)
7 users (show)

See Also:


Attachments
test case (146 bytes, text/html)
2007-10-25 16:34 PDT, Kevin Decker
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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'.