Bug 39193

Summary: Repeated copy/paste can lead to deeply nested <p> tags
Product: WebKit Reporter: Tony Chang <tony>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ojan, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: OS X 10.5   

Tony Chang
Reported 2010-05-16 19:04:55 PDT
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).
Attachments
Tony Chang
Comment 1 2010-05-27 23:52:02 PDT
*** This bug has been marked as a duplicate of bug 24009 ***
Note You need to log in before you can comment on or make changes to this bug.