<?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>209736</bug_id>
          
          <creation_ts>2020-03-30 05:38:53 -0700</creation_ts>
          <short_desc>textarea selectionDirection returns &apos;none&apos; for mouse selection</short_desc>
          <delta_ts>2020-03-30 14:51:03 -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>HTML Editing</component>
          <version>Safari 13</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=60403</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bing Wang">wangbing.imail</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>megan_gardner</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1635467</commentid>
    <comment_count>0</comment_count>
    <who name="Bing Wang">wangbing.imail</who>
    <bug_when>2020-03-30 05:38:53 -0700</bug_when>
    <thetext>Steps to reproduce the problem:
1. Select some text inside a textarea in backward/forward direction
2. get selectionDirection property on that textarea via javascript

What is the expected behavior?
Expected to get value &apos;backward/forward&apos;

What went wrong?
Always get &apos;none&apos;

Did this work before? N/A 

Here&apos;s jsFiddle that demonstrates the behavior:
http://jsfiddle.net/7Mhqy/1/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1635686</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-03-30 13:41:02 -0700</bug_when>
    <thetext>&lt;rdar://problem/61070960&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1635694</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-03-30 13:45:28 -0700</bug_when>
    <thetext>This property only works for keyboard selection (Shift+Right/Left) in WebKit and in Chrome. It does work for mouse selection in Firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1635753</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-03-30 14:51:03 -0700</bug_when>
    <thetext>(In reply to Bing Wang from comment #0)
&gt; Steps to reproduce the problem:
&gt; 1. Select some text inside a textarea in backward/forward direction
&gt; 2. get selectionDirection property on that textarea via javascript
&gt; 
&gt; What is the expected behavior?
&gt; Expected to get value &apos;backward/forward&apos;
&gt; 
&gt; What went wrong?
&gt; Always get &apos;none&apos;

This is expected. On macOS, mouse selection is directionless. The selection extends backwards or forwards depending on user&apos;s input, at which point the direction will be determined.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>