Bug 32232 - Unnecessary nesting of divs after copy and pasting certain kinds of selections
Summary: Unnecessary nesting of divs after copy and pasting certain kinds of selections
Status: RESOLVED DUPLICATE of bug 24009
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2009-12-07 11:20 PST by Justin Garcia
Modified: 2010-08-17 20:03 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Garcia 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>
Comment 1 David Kilzer (:ddkilzer) 2009-12-11 11:13:10 PST
Removing InRadar keyword since that one has been closed.
Comment 2 David Kilzer (:ddkilzer) 2009-12-11 11:14:58 PST
<rdar://problem/7464871>
Comment 3 Ryosuke Niwa 2010-08-17 20:03:18 PDT

*** This bug has been marked as a duplicate of bug 24009 ***