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: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 523.x (Safari 3)
Hardware: Macintosh 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: 2011-09-19 10:18 PDT (History)
4 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. ***