<?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>52986</bug_id>
          
          <creation_ts>2011-01-23 15:52:07 -0800</creation_ts>
          <short_desc>Selecting text inside contenteditable tags is problematic</short_desc>
          <delta_ts>2012-04-30 22:37:48 -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>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>56213</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>55552</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Quinn-Graham">patrick</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>kalman</cc>
    
    <cc>leviw</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>338782</commentid>
    <comment_count>0</comment_count>
      <attachid>79881</attachid>
    <who name="Patrick Quinn-Graham">patrick</who>
    <bug_when>2011-01-23 15:52:07 -0800</bug_when>
    <thetext>Created attachment 79881
Testcase

When users select text using a rapid mouse movement that extends outside of the contenteditable tag the selection behaviour is not always what a user expects: ie. the click mid way through text, drag (to select) all the way beyond the left (start) of the contenteditable, selection stops several characters before the start of the contenteditable contents. 

Attached test case includes three content editable areas: h1 that contains a &lt;div&gt;, an h1 that contains only text and a p tag.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>338808</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-01-23 19:14:53 -0800</bug_when>
    <thetext>Interesting that this doesn&apos;t happen with non-editable text - or even if position:absolute is added to contenteditable in the attached example. This also doesn&apos;t happen in Bugzilla textarea (where you&apos;re writing your comment).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>366217</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-03-11 12:13:07 -0800</bug_when>
    <thetext>See also: bug 56213.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>378503</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-04-03 00:41:53 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Interesting that this doesn&apos;t happen with non-editable text - or even if position:absolute is added to contenteditable in the attached example. This also doesn&apos;t happen in Bugzilla textarea (where you&apos;re writing your comment).

This bug is to do with the way we avoid selection extending across editing boundary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>379347</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-04-04 23:02:24 -0700</bug_when>
    <thetext>This is a duplicate of the bug 55552. I&apos;m closing this one since the bug 55552 has patches posted.

*** This bug has been marked as a duplicate of bug 55552 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>383243</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-04-11 10:23:50 -0700</bug_when>
    <thetext>Okay, let&apos;s make this bug depend on the bug 55552 and add a layout test separately. I&apos;ve already uploaded a DRT test on the bug 55552 so I&apos;ll upload a patch as soon as the bug 55552 is fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>613243</commentid>
    <comment_count>6</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-04-30 22:37:48 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 56213 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>79881</attachid>
            <date>2011-01-23 15:52:07 -0800</date>
            <delta_ts>2011-01-23 15:52:07 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>317</size>
            <attacher name="Patrick Quinn-Graham">patrick</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuLXVzIj4KICA8aGVhZD4KICAgIDxtZXRhIGh0
dHAtZXF1aXY9IkNvbnRlbnQtVHlwZSIgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PXV0Zi04
Ij4KICAgIDx0aXRsZT5CYXNpYyB0ZW1wbGF0ZTwvdGl0bGU+CiAgPC9oZWFkPgogIDxib2R5Pgog
ICAgPGgxIGNvbnRlbnRlZGl0YWJsZT48ZGl2PlRlc3QgKGgxLCBkaXYpPC9kaXY+PC9oMT4KICAg
IDxoMSBjb250ZW50ZWRpdGFibGU+VGVzdCAoaDEpPC9oMT4KICAgIDxwIGNvbnRlbnRlZGl0YWJs
ZT5UZXN0IChwKTwvcD4KICA8L2JvZHk+CjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>