<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>15695</bug_id>
          
          <creation_ts>2007-10-25 16:33:34 -0700</creation_ts>
          <short_desc>focusing a textarea moves input cursor to beginning of textarea instead of end</short_desc>
          <delta_ts>2023-05-25 14:38:20 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kevin Decker">kdecker</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>akeerthi</cc>
    
    <cc>andri</cc>
    
    <cc>ap</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>karlcow</cc>
    
    <cc>mkwst</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59472</commentid>
    <comment_count>0</comment_count>
    <who name="Kevin Decker">kdecker</who>
    <bug_when>2007-10-25 16:33:34 -0700</bug_when>
    <thetext>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.

&lt;textarea id=&quot;test&quot;&gt;Click the button below&lt;/textarea&gt;

&lt;input type=&quot;button&quot; value=&quot;Click me&quot; onclick=&quot;document.getElementById(&apos;test&apos;).focus();&quot;&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59473</commentid>
    <comment_count>1</comment_count>
      <attachid>16867</attachid>
    <who name="Kevin Decker">kdecker</who>
    <bug_when>2007-10-25 16:34:20 -0700</bug_when>
    <thetext>Created attachment 16867
test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59495</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-10-25 21:59:36 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59534</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-10-26 05:16:18 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; We match MSIE here. IIRC, we have tried to switch to Firefox behavior a while
&gt; ago, but this has caused problems with Outlook Web Access.

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

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>469482</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-09-19 10:18:32 -0700</bug_when>
    <thetext>*** Bug 68322 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1958036</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-25 14:38:20 -0700</bug_when>
    <thetext>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 &apos;RESOLVED WONTFIX&apos;.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>16867</attachid>
            <date>2007-10-25 16:34:20 -0700</date>
            <delta_ts>2007-10-25 16:34:20 -0700</delta_ts>
            <desc>test case</desc>
            <filename>textarea.html</filename>
            <type>text/html</type>
            <size>146</size>
            <attacher name="Kevin Decker">kdecker</attacher>
            
              <data encoding="base64">Cgo8dGV4dGFyZWEgaWQ9InRlc3QiPkNsaWNrIHRoZSBidXR0b24gYmVsb3c8L3RleHRhcmVhPgoK
PGlucHV0IHR5cGU9ImJ1dHRvbiIgdmFsdWU9IkNsaWNrIG1lIiBvbmNsaWNrPSJkb2N1bWVudC5n
ZXRFbGVtZW50QnlJZCgndGVzdCcpLmZvY3VzKCk7Ij4=
</data>

          </attachment>
      

    </bug>

</bugzilla>