[Webkit-unassigned] [Bug 110610] New: Empty list items after drag&drop in contentEditable divs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 22 07:55:32 PST 2013


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

           Summary: Empty list items after drag&drop in contentEditable
                    divs
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: svillar at igalia.com
                CC: mjs at apple.com, rniwa at webkit.org, enrica at apple.com


Let's consider a very simple example like this one:

<div contenteditable="true">
<ol><li>first</li><li>second</li><li>third</li></ol>
</div>

If we select the first and two items, and then drag&drop the selection to the end of the third one, we'll end up with something like:

1.
2. third
3. first
4. second

The first <li> is not really empty but contains a <br> inside (because the code considers that it needs a placeholder). That's exactly the behaviour of IE but in the same use case Firefox outcome seems more logical to me:

1. third
2. first
3. second

I have created a test case that reproduces this behaviour and have some patch that fixes it. The question is, is this the desired behaviour for webkit?

-- 
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