<?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>4375</bug_id>
          
          <creation_ts>2005-08-10 12:17:59 -0700</creation_ts>
          <short_desc>You are able to drag-select outside of the active editing block</short_desc>
          <delta_ts>2005-10-12 14:49:54 -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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          <dependson>4011</dependson>
          <blocked>5354</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dan Wood">dwood</reporter>
          <assigned_to name="Justin Garcia">justin.garcia</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>16371</commentid>
    <comment_count>0</comment_count>
    <who name="Dan Wood">dwood</who>
    <bug_when>2005-08-10 12:17:59 -0700</bug_when>
    <thetext>When you are editing a block that is not the entire webview (where you can see the blue glowing 
outline), you are able to drag outside of that block and extend your selection above or below the edting 
block.

This is very similar to bug 3967 and its almost-duplicate, bug 4011 ... except that I would like to 
&quot;tighten&quot; the report to consider that perhaps the current behavior is a bug, not a feature.

Steps to reproduce:

1. Start with my modified &quot;Blot&quot; sample code attached to bug 3967; I&apos;ve inserted a batch of web editing 
delegate methods in  BlotDocument.m.
2. Click in the first editable div, and drag within that block.
3. Now drag down outside of that block.

Expected results: You should not be able to select anything outside of that block, just as you are not 
able to drag-select outside of a &lt;textarea&gt; in an HTML form.

Actual results: Selection continues out of the block.

Workaround:  Assuming the patch to bug 4011 is applied, one can theoretically implement 
webView:shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting: to disallow this.

However, I would submit that this workaround is not enough -- it should be standard behavior not to 
be able to drag-select outside of an active contentEditable div.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16372</commentid>
    <comment_count>1</comment_count>
    <who name="Dan Wood">dwood</who>
    <bug_when>2005-08-10 12:18:54 -0700</bug_when>
    <thetext>I am adding this as dependent on 4011, since I&apos;m guessing that in order to fix this, we need to get the fix 
to 4011 applied.  I hope this is an accurate assessment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16388</commentid>
    <comment_count>2</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2005-08-10 15:12:17 -0700</bug_when>
    <thetext>Agreed.  The same should be true of overflow blocks as well.  In fact overflow blocks should auto-scroll.  
That should probably be a separate bug though.

It will be necessary to fix all this in order to use contenteditable to implement textfields and textareas 
using the engine.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16905</commentid>
    <comment_count>3</comment_count>
    <who name="Dan Wood">dwood</who>
    <bug_when>2005-08-17 17:21:13 -0700</bug_when>
    <thetext>Another related issue that I will add here ... if you have two editable divs, and you drag out of one and into 
the other, the other editable node will suddenly activate as the editable node.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21537</commentid>
    <comment_count>4</comment_count>
    <who name="Dan Wood">dwood</who>
    <bug_when>2005-10-06 08:41:36 -0700</bug_when>
    <thetext>Also, probably related -- when you delete or left-arrow past the beginning of an editable block, the 
selection jumps to the previous editable block.  It should stop at the start of the editable block.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21560</commentid>
    <comment_count>5</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2005-10-06 20:19:45 -0700</bug_when>
    <thetext>I think that my recent checkin fixes some or all of the problems that you mentioned here.  Please open 
new bugs for issues that remain.

Thanks</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>