[Webkit-unassigned] [Bug 29752] New: Copying and pasting into contenteditable div with font-family+span causes selection to be misplaced

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 25 15:24:50 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=29752

           Summary: Copying and pasting into contenteditable div with
                    font-family+span causes selection to be misplaced
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows Vista
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: chase at chromium.org
                CC: jparent at google.com, ojan at chromium.org


STEPS TO REPRODUCE:
1. Create a web page and enter the following HTML:
    <div style="font-family: times new roman;"
         contentEditable>
      <span>
        <div>foo</div>
        <div>bar</div>
        <div>baz</div>
      </span>
    </div>
2. Select the line bar from the content editable section, copy with CTRL-C, and
paste with CTRL-V.
4. The line bar is appended to the content editable section rather than pasted
in at the cursor's position.

If the HTML in step 1 has either the font-family style or the <span> removed,
the process works as expected, eg:
    <div contentEditable>
      <span>
        <div>foo</div>
        <div>bar</div>
        <div>baz</div>
      </span>
    </div>

Verified with WebKit nightly r48454 and Chromium dev channel 4.0.213.1.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list