<?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>37474</bug_id>
          
          <creation_ts>2010-04-12 16:29:25 -0700</creation_ts>
          <short_desc>Using arrow keys does not always move text cursor through CSS-generated content in editable div</short_desc>
          <delta_ts>2011-11-03 13:47:45 -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>10123</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nate Whetsell">nathan.whetsell</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>enrica</cc>
    
    <cc>morrita</cc>
    
    <cc>rniwa</cc>
    
    <cc>tkent</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>211756</commentid>
    <comment_count>0</comment_count>
      <attachid>53194</attachid>
    <who name="Nate Whetsell">nathan.whetsell</who>
    <bug_when>2010-04-12 16:29:25 -0700</bug_when>
    <thetext>Created attachment 53194
Test document

Attached is a test HTML document with two tests related to editable divs that enclose a span that generates content with CSS.

The first test renders the following text:

xxx before span after yyy

Placing the text cursor before the first x and pressing the right arrow key will move the cursor to the right until it reaches the &quot;b&quot; in &quot;before&quot;. If the cursor is placed in the word &quot;span&quot;, pressing the right arrow key will move the cursor to the right until it reaches (the space before) the &quot;a&quot; in &quot;after&quot;. Placing the text cursor after the last y and pressing the left arrow key does move the cursor fluidly through all text. Using [command + right arrow] or [shift + right arrow] will move the text cursor through the CSS-generated content. (However, when using shift the CSS content is selected as if it could be copied, which may be a separate issue.)

The second test renders the following text:

xxx
before span after yyy
 
The only difference is the line break after &quot;xxx&quot;. In this case, placing the the text cursor before the first x and pressing the right arrow key will move the cursor onto the next line and into &quot;span&quot;. However, using the left arrow key will not move the text cursor back into the previous line. Continuing to press the right arrow key will again move the cursor to the right until it reaches &quot;after&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>495712</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Whetsell">nathan.whetsell</who>
    <bug_when>2011-11-03 12:19:25 -0700</bug_when>
    <thetext>The last Mac OS X nightly build on which I can reproduce this issue is r97583.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>495772</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-11-03 13:47:45 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 10123 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>53194</attachid>
            <date>2010-04-12 16:29:25 -0700</date>
            <delta_ts>2010-04-12 16:29:25 -0700</delta_ts>
            <desc>Test document</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>374</size>
            <attacher name="Nate Whetsell">nathan.whetsell</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+Cgo8aHRtbCBsYW5nPSJlbiI+CjxoZWFkPgoJPHRpdGxlPlRlc3Q8L3Rp
dGxlPgoJPG1ldGEgaHR0cC1lcXVpdj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0L2h0bWw7
IGNoYXJzZXQ9dXRmLTgiPgoJPHN0eWxlPgoJc3BhbjpiZWZvcmUge2NvbnRlbnQ6ImJlZm9yZSAi
O30KCXNwYW46YWZ0ZXIge2NvbnRlbnQ6IiBhZnRlciI7fQoJPC9zdHlsZT4KPC9oZWFkPgoKPGJv
ZHk+Cgk8ZGl2IGNvbnRlbnRlZGl0YWJsZT0idHJ1ZSI+IHh4eCA8c3Bhbj5zcGFuPC9zcGFuPiB5
eXk8L2Rpdj4KCTxkaXYgY29udGVudGVkaXRhYmxlPSJ0cnVlIj4geHh4PGJyPjxzcGFuPnNwYW48
L3NwYW4+IHl5eTwvZGl2Pgo8L2JvZHk+CjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>