Bug 32232

Summary: Unnecessary nesting of divs after copy and pasting certain kinds of selections
Product: WebKit Reporter: Justin Garcia <justin.garcia>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ddkilzer, enrica, rniwa
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   

Justin Garcia
Reported 2009-12-07 11:20:51 PST
Open the attached testcase ("<body contentEditable="true"><div><br></div></body>"). Type "test", <return>, Select All, Copy, put the caret at the end of the document and Paste. Examine the DOM, and you'll see: <body contentEditable="true"> <div>test</div> <div><div>test</div></div> <div><br></div> </body> It would be nice to avoid the unnecessary nesting, since the divs don't have any properties worth preserving like a border. <rdar://problem/6759298>
Attachments
David Kilzer (:ddkilzer)
Comment 1 2009-12-11 11:13:10 PST
Removing InRadar keyword since that one has been closed.
David Kilzer (:ddkilzer)
Comment 2 2009-12-11 11:14:58 PST
Ryosuke Niwa
Comment 3 2010-08-17 20:03:18 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.