Bug 39193
Summary: | Repeated copy/paste can lead to deeply nested <p> tags | ||
---|---|---|---|
Product: | WebKit | Reporter: | Tony Chang <tony> |
Component: | HTML Editing | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Tony Chang
*** This bug has been marked as a duplicate of bug 24009 ***