Bug 32232
Summary: | Unnecessary nesting of divs after copy and pasting certain kinds of selections | ||
---|---|---|---|
Product: | WebKit | Reporter: | Justin Garcia <justin.garcia> |
Component: | HTML Editing | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
David Kilzer (:ddkilzer)
Removing InRadar keyword since that one has been closed.
David Kilzer (:ddkilzer)
<rdar://problem/7464871>
Ryosuke Niwa
*** This bug has been marked as a duplicate of bug 24009 ***