[Webkit-unassigned] [Bug 39193] New: Repeated copy/paste can lead to deeply nested <p> tags

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 16 19:04:56 PDT 2010


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

           Summary: Repeated copy/paste can lead to deeply nested <p> tags
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: tony at chromium.org
                CC: ojan at chromium.org, rniwa at webkit.org


This is a variant of bug 25002.  Steps to repro:
In midasdemo, set the HTML to:
<p>a</p><p>b</p>

Switch back to the RTE and select all and copy + paste.  The resulting html is:
<p><p>a</p><p>b</p></p>

We might be able to expand the code in highestVisuallyEquivalentDiv to handle other node types.  It's tricky because sometimes there's a different meaning for nested elements and we might want to allow those (e.g., if you copy a blockquote and paste it into another blockquote, maybe it should nest a second blockquote, maybe not).

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